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: Bridge/DS28E17/DS28E17.h
- Revision:
- 75:8b627804927c
- Parent:
- 74:23be10c32fa3
- Child:
- 76:84e6c4994e29
--- a/Bridge/DS28E17/DS28E17.h Fri May 13 07:48:35 2016 -0500 +++ b/Bridge/DS28E17/DS28E17.h Fri May 13 14:52:50 2016 -0500 @@ -46,22 +46,6 @@ class DS28E17 : public OneWireSlave { public: - - enum DS28E17_CMDS - { - CMD_I2C_WRITE_W_STOP = 0x4B, - CMD_I2C_WRITE_NO_STOP = 0x5A, - CMD_I2C_WRITE_ONLY = 0x69, - CMD_I2C_WRITE_ONLY_W_STOP = 0x78, - CMD_I2C_READ_W_STOP = 0x87, - CMD_I2C_WRITE_READ_W_STOP = 0x2D, - CMD_WRITE_CONFIG_REG = 0xD2, - CMD_READ_CONFIG_REG = 0xE1, - CMD_DISABLE_OW_MODE = 0x96, - CMD_ENABLE_SLEEP_MODE = 0x1E, - CMD_READ_DEVICE_REV = 0xC3 - }; - enum CmdResult { Success, @@ -75,8 +59,6 @@ OperationFailure }; - static const size_t POLL_LIMIT = 10000; - /**********************************************************//** * @brief DS28E17 constructor * @@ -363,24 +345,6 @@ /**********************************************************//** - * @brief Disable 1-Wire Mode DS28E17 and activates the input detection pin. - * Immediately after the command, all 1-Wire signaling will be ignored - * until the 1W_DET pin is high for more than 3ms. - * - * @details - * - * On Entry: - * - * On Exit: - * - * @return - * true if device selected and written @n - * false if failed device select - **************************************************************/ - CmdResult DisableOWMode(); - - - /**********************************************************//** * @brief The Enable Sleep Mode command puts the device into a low current mode. * All 1-Wire communication is ignored until woken up. Immediately after * the command, the device monitors the WAKEUP input pin and @@ -430,6 +394,7 @@ uint16_t _crc16; uint8_t _i2c_speed; + static const size_t pollLimit = 10000; static const uint16_t _oddparity[16]; uint16_t docrc16(uint16_t data);