Driver for National Semiconductor ADC128Sxxx family of analog to digital converters

Committer:
shimniok
Date:
Fri Feb 18 20:52:59 2011 +0000
Revision:
0:28addf1f4c26
Child:
1:0edd6142cd67
Initial version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shimniok 0:28addf1f4c26 1 // ADC128S a library for the National Semiconductor ADC128S family of ADCs
shimniok 0:28addf1f4c26 2 //
shimniok 0:28addf1f4c26 3 // by Michael Shimniok - http://www.bot-thoughts.com/
shimniok 0:28addf1f4c26 4 //
shimniok 0:28addf1f4c26 5 class ADC128S {
shimniok 0:28addf1f4c26 6 public:
shimniok 0:28addf1f4c26 7 ADC128S(PinName cs, PinName mosi, PinName miso, PinName sck);
shimniok 0:28addf1f4c26 8 unsigned int read(int channel);
shimniok 0:28addf1f4c26 9
shimniok 0:28addf1f4c26 10 private:
shimniok 0:28addf1f4c26 11 SPI _adc;
shimniok 0:28addf1f4c26 12 DigitalOut _cs;
shimniok 0:28addf1f4c26 13 };