Driver for National Semiconductor ADC128Sxxx family of analog to digital converters

Revision:
2:f6c4a79f2ee0
Parent:
1:0edd6142cd67
Child:
3:e304ec6ed416
--- a/ADC128S.h	Wed Mar 02 05:50:24 2011 +0000
+++ b/ADC128S.h	Wed Apr 27 19:07:26 2011 +0000
@@ -37,10 +37,30 @@
      */
     ADC128S(PinName mosi, PinName miso, PinName sck, PinName cs);
 
+
+    /** Get the next channel to be converted with next call to read()
+     *
+     * @returns an integer representing the adc channel about to be converted
+     */ 
+    int getChannel(void);
+
+    /** Set channel to be used for the next conversion.
+     *
+     * @param channel is the adc channel you want to read with next call to read()
+     */
+    void setChannel(int channel);
+
+    /** Set channel to be used for the next conversion.
+     *
+     * @param channel is the adc channel you want to read with next call to read()
+     */
+    void setChannel(int channel);
+
+
     /** Read in analog value from the specified ADC channel
      *
      * @param channel  The ADC channel to read
-     * @param returns the analog to digital conversion result
+     * @returns the analog to digital conversion result
      */
     unsigned int read(int channel);