C Library for mbedWSE project based single board computer for hardware peripherals

Fork of mbedWSEsbc by Joseph Bradshaw

Revision:
7:740d112d934d
Parent:
4:1aa4a75f6885
Child:
9:56c77746e6a8
--- a/mbedWSEsbc.h	Thu Oct 16 17:37:56 2014 +0000
+++ b/mbedWSEsbc.h	Wed Oct 22 19:09:00 2014 +0000
@@ -3,6 +3,7 @@
  20140912
  20140918 J Bradshaw - Found CS mistake in Encoder routines
     Added comments in Init function, encoder functions
+ 20141021 J Bradshaw - Added comments for ADC function
 */
 
 
@@ -65,6 +66,10 @@
 void write_max522(int chan, float volts);
 
 //---- Function Listing -------------------------------
+// return integer - 12 bit ADC result
+// chan - integer from 0 - 7
+// range - 0: 0 - 5 volts, 1: 0 - 10V
+// bipol - 0: 0 - 5 volts, 0 - 10V, 1 for +/- 5 volts, +/- 10 volts
 int read_max1270(int chan, int range, int bipol){
     int cword=0x80;     //set the start bit