AD2ch Module library for MCU Gear with LPC1114. It contains wiring data.

Committer:
Info
Date:
Tue May 06 07:14:31 2014 +0000
Revision:
0:0050ff39b5f7
AD2ch Module library for MCU Gear with LPC1114.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Info 0:0050ff39b5f7 1
Info 0:0050ff39b5f7 2 #include "commonALPC1114.h"
Info 0:0050ff39b5f7 3
Info 0:0050ff39b5f7 4 class AD2chModule
Info 0:0050ff39b5f7 5 {
Info 0:0050ff39b5f7 6 public:
Info 0:0050ff39b5f7 7 AD2chModule(SPI _spi, PinName _cs, MCUGear *mcugear);
Info 0:0050ff39b5f7 8 void IODAmodule(MCUGear *mcugear);
Info 0:0050ff39b5f7 9 int readADm(MCUGear *mcugear, char ch);//manual connection
Info 0:0050ff39b5f7 10 int readADa(MCUGear *mcugear, char ch);//automatic connection
Info 0:0050ff39b5f7 11 void initAD2ch(MCUGear *mcugear);
Info 0:0050ff39b5f7 12 protected:
Info 0:0050ff39b5f7 13 SPI spi;
Info 0:0050ff39b5f7 14 DigitalOut cs;
Info 0:0050ff39b5f7 15 };