MCUGear 12bit AD 8ch module for LPC1114. It contains wiring data.
Diff: AD8chModuleLPC1114.h
- Revision:
- 0:7a613ce304cd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AD8chModuleLPC1114.h Tue May 06 13:39:10 2014 +0000 @@ -0,0 +1,15 @@ + +#include "commonALPC1114.h" + +class AD8chModule +{ + public: + AD8chModule(SPI _spi, PinName _cs, MCUGear *mcugear); + void IODAmodule(MCUGear *mcugear); + int readADm(MCUGear *mcugear, char ch);//manual connection + int readADa(MCUGear *mcugear, char ch);//automatic connection + void initAD8ch(MCUGear *mcugear); + protected: + SPI spi; + DigitalOut cs; +}; \ No newline at end of file