1-Wire® library for mbed. Complete 1-Wire library that supports our silicon masters along with a bit-bang master on the MAX32600MBED platform with one common interface for mbed. Slave support has also been included and more slaves will be added as time permits.
Dependents: MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more
Superseded by MaximInterface.
Diff: Slaves/Switches/DS2413/DS2413.h
- Revision:
- 93:e496a45ce796
- Parent:
- 86:2ce08ca58b9e
- Child:
- 94:d2dea35b25ea
diff -r aa40c49b8563 -r e496a45ce796 Slaves/Switches/DS2413/DS2413.h --- a/Slaves/Switches/DS2413/DS2413.h Mon Jun 20 20:02:28 2016 +0000 +++ b/Slaves/Switches/DS2413/DS2413.h Fri Jun 24 21:06:46 2016 +0000 @@ -38,9 +38,24 @@ namespace OneWire { + /** + * @brief DS2413 1-Wire Dual Channel Addressable Switch + * + * @details The DS2413 is a dual-channel programmable I/O 1-Wire® + * chip. The PIO outputs are configured as open-drain and provide up + * to 20mA continuous sink capability and off-state operating voltage + * up to 28V. Control and sensing of the PIO pins is performed with + * a dedicated device-level command protocol. To provide a high level + * of fault tolerance in the end application, the 1-Wire I/O and PIO + * pins are all capable of withstanding continuous application of + * voltages up to 28V max. Communication and operation of the DS2413 + * is performed with the single contact Maxim 1-Wire serial interface. + */ class DS2413 : public OneWireSlave { public: + + ///Result of operations enum CmdResult { Success,