DA module library for MCU Gear with LPC1114FN28. This library contains wiring setting function.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DAmoduleLPC1114.h Source File

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 };