Device interface library for multiple platforms including Mbed.

Dependents:   DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#

Embed: (wiki syntax)

« Back to documentation index

DS2482_DS2484::Config Class Reference

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.
Configset1WS (bool new1WS)
 Set 1WS bit.
SPU

Strong Pullup

bool getSPU () const
 Get SPU bit.
ConfigsetSPU (bool newSPU)
 Set SPU bit.
PDN

1-Wire Power Down

bool getPDN () const
 Get PDN bit.
ConfigsetPDN (bool newPDN)
 Set PDN bit.
APU

Active Pullup

bool getAPU () const
 Get APU bit.
ConfigsetAPU (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.