Device interface library for multiple platforms including Mbed.
Dependents: DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#
DS2465::Config Class Reference
Represents a DS2465 configuration. More...
#include <DS2465.hpp>
Public Member Functions | |
Config (uint_least8_t readByte=optionAPU) | |
Default construct with power-on config. | |
uint_least8_t | readByte () const |
Byte representation that is read from the DS2465. | |
1WS | |
1-Wire Speed | |
bool | get1WS () const |
Get 1WS bit. | |
Config & | set1WS (bool new1WS) |
Set 1WS bit. | |
SPU | |
Strong Pullup | |
bool | getSPU () const |
Get SPU bit. | |
Config & | setSPU (bool newSPU) |
Set SPU bit. | |
PDN | |
1-Wire Power Down | |
bool | getPDN () const |
Get PDN bit. | |
Config & | setPDN (bool newPDN) |
Set PDN bit. | |
APU | |
Active Pullup | |
bool | getAPU () const |
Get APU bit. | |
Config & | setAPU (bool newAPU) |
Set APU bit. |
Detailed Description
Represents a DS2465 configuration.
Definition at line 86 of file DS2465.hpp.
Constructor & Destructor Documentation
Config | ( | uint_least8_t | readByte = optionAPU ) |
[explicit] |
Default construct with power-on config.
Definition at line 89 of file DS2465.hpp.
Member Function Documentation
bool get1WS | ( | ) | const |
Get 1WS bit.
Definition at line 97 of file DS2465.hpp.
bool getAPU | ( | ) | const |
Get APU bit.
Definition at line 154 of file DS2465.hpp.
bool getPDN | ( | ) | const |
Get PDN bit.
Definition at line 135 of file DS2465.hpp.
bool getSPU | ( | ) | const |
Get SPU bit.
Definition at line 116 of file DS2465.hpp.
uint_least8_t readByte | ( | ) | const |
Byte representation that is read from the DS2465.
Definition at line 169 of file DS2465.hpp.
Config& set1WS | ( | bool | new1WS ) |
Set 1WS bit.
Definition at line 100 of file DS2465.hpp.
Config& setAPU | ( | bool | newAPU ) |
Set APU bit.
Definition at line 157 of file DS2465.hpp.
Config& setPDN | ( | bool | newPDN ) |
Set PDN bit.
Definition at line 138 of file DS2465.hpp.
Config& setSPU | ( | bool | newSPU ) |
Set SPU bit.
Definition at line 119 of file DS2465.hpp.
Generated on Tue Jul 12 2022 11:13:20 by 1.7.2