Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#
DS2482_DS2484::Config Class Reference
Represents a device configuration. More...
#include <DS2482_DS2484.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 device. | |
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 device configuration.
Definition at line 48 of file DS2482_DS2484.hpp.
Constructor & Destructor Documentation
| Config | ( | uint_least8_t | readByte = optionAPU ) |
[explicit] |
Default construct with power-on config.
Definition at line 51 of file DS2482_DS2484.hpp.
Member Function Documentation
| bool get1WS | ( | ) | const |
Get 1WS bit.
Definition at line 59 of file DS2482_DS2484.hpp.
| bool getAPU | ( | ) | const |
Get APU bit.
Definition at line 116 of file DS2482_DS2484.hpp.
| bool getPDN | ( | ) | const |
Get PDN bit.
Definition at line 97 of file DS2482_DS2484.hpp.
| bool getSPU | ( | ) | const |
Get SPU bit.
Definition at line 78 of file DS2482_DS2484.hpp.
| uint_least8_t readByte | ( | ) | const |
Byte representation that is read from the device.
Definition at line 131 of file DS2482_DS2484.hpp.
| Config& set1WS | ( | bool | new1WS ) |
Set 1WS bit.
Definition at line 62 of file DS2482_DS2484.hpp.
| Config& setAPU | ( | bool | newAPU ) |
Set APU bit.
Definition at line 119 of file DS2482_DS2484.hpp.
| Config& setPDN | ( | bool | newPDN ) |
Set PDN bit.
Definition at line 100 of file DS2482_DS2484.hpp.
| Config& setSPU | ( | bool | newSPU ) |
Set SPU bit.
Definition at line 81 of file DS2482_DS2484.hpp.
Generated on Tue Jul 12 2022 11:13:20 by
1.7.2