DA module library for MCU Gear with LPC1114FN28. This library contains wiring setting function.
Embed:
(wiki syntax)
Show/hide line numbers
DAmoduleLPC1114.h
00001 00002 #include "commonALPC1114.h" 00003 00004 class DAmodule 00005 { 00006 public: 00007 DAmodule(SPI _spi, PinName _cs, PinName _dout1, MCUGear *mcugear); 00008 void IODAmodule(MCUGear *mcugear); 00009 void writeDAm(MCUGear *mcugear, int data);//manual connection 00010 void writeDAa(MCUGear *mcugear, int data);//automatic connection 00011 void initDA(MCUGear *mcugear); 00012 protected: 00013 SPI spi; 00014 DigitalOut cs; 00015 DigitalOut dout1; 00016 };
Generated on Sun Jul 17 2022 17:45:35 by 1.7.2