MCUGear 12bit AD 8ch module for LPC1114. It contains wiring data.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers AD8chModuleLPC1114.h Source File

AD8chModuleLPC1114.h

00001 
00002 #include "commonALPC1114.h"
00003 
00004 class AD8chModule
00005 {   
00006     public:
00007         AD8chModule(SPI _spi, PinName _cs, MCUGear *mcugear);
00008         void IODAmodule(MCUGear *mcugear);
00009         int readADm(MCUGear *mcugear, char ch);//manual connection
00010         int readADa(MCUGear *mcugear, char ch);//automatic connection
00011         void initAD8ch(MCUGear *mcugear);
00012     protected:
00013         SPI spi;
00014         DigitalOut cs;
00015 };