Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TCTF_Control_Main by
Diff: LTC2487/LTC2487.h
- Revision:
- 17:5098d8fbb298
- Parent:
- 0:a28a1035c31b
--- a/LTC2487/LTC2487.h Thu Jun 14 18:28:52 2018 +0000
+++ b/LTC2487/LTC2487.h Fri Jun 15 00:50:47 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
*
