Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
Diff: OneWire_Masters/DS2465/DS2465.hpp
- Revision:
- 71:562f5c702094
- Parent:
- 69:f915c4c59a69
- Child:
- 72:6892702709ee
diff -r 7db8ff74bcbe -r 562f5c702094 OneWire_Masters/DS2465/DS2465.hpp --- a/OneWire_Masters/DS2465/DS2465.hpp Mon May 09 08:31:53 2016 -0500 +++ b/OneWire_Masters/DS2465/DS2465.hpp Mon May 09 15:04:23 2016 -0500 @@ -51,26 +51,26 @@ public: /// @{ /// 1-Wire Speed - bool c1WS() const { return m_c1WS; } - void setC1WS(bool c1WS) { m_c1WS = c1WS; } + bool get1WS() const { return m_1WS; } + void set1WS(bool new1WS) { m_1WS = new1WS; } /// @} /// @{ /// Strong Pullup - bool cSPU() const { return m_cSPU; } - void setCSPU(bool cSPU) { m_cSPU = cSPU; } + bool getSPU() const { return m_SPU; } + void setSPU(bool newSPU) { m_SPU = newSPU; } /// @} /// @{ /// 1-Wire Power Down - bool cPDN() const { return m_cPDN; } - void setCPDN(bool cPDN) { m_cPDN = cPDN; } + bool getPDN() const { return m_PDN; } + void setPDN(bool newPDN) { m_PDN = newPDN; } /// @} /// @{ /// Active Pullup - bool cAPU() const { return m_cAPU; } - void setCAPU(bool cAPU) { m_cAPU = cAPU; } + bool getAPU() const { return m_APU; } + void setAPU(bool newAPU) { m_APU = newAPU; } /// @} /// Byte representation that is read from the DS2465. @@ -83,7 +83,7 @@ Config() { reset(); } private: - bool m_c1WS, m_cSPU, m_cPDN, m_cAPU; + bool m_1WS, m_SPU, m_PDN, m_APU; }; /// @param I2C_interface Configured I2C communication interface for DS2465.