Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
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,