Control Code with I/O and ADC working

Dependencies:   MODSERIAL mbed

Revision:
16:82d941b1ef21
Parent:
0:a28a1035c31b
Child:
20:cdeed4dad690
--- a/LTC2487/LTC2487.h	Mon Jun 11 21:10:14 2018 +0000
+++ b/LTC2487/LTC2487.h	Wed Jun 20 00:30:48 2018 +0000
@@ -15,15 +15,23 @@
      LTC2487(PinName sda, PinName scl, uint8_t address, int freq);
      
     
-    /** Write to the output pins.
+    /** Write to LTC chip to select port to read from
      *
-     * This function is used to set output pins on or off.
+     * This function is used select the LTC2487 channel we would like to read from
      *
-     * @param chnl The GPIO pin to set
-     * @param values A bitmask indicating whether a pin should be on or off.
+     * @param channel The channel we would like to read from
      */
      
-     float readOutput(int address);
+     float writePort(int channel);
+     
+     /** Read value from LTC2487
+     *
+     * This function is used to read data from LTC2487 from channel selected in writePort()
+     *
+     * @param N/A
+     */
+     
+     float read();
      
      /** Sets I2C address
      *