![]() |
OneWire Library for Arduino
version: 1.0.0
|
Standard container for a 1-Wire ROM ID. More...
#include <RomId.h>
Public Types | |
typedef array< uint8_t, byteLen >::Buffer | ByteBuffer |
Built-in array representation. More... | |
Public Member Functions | |
RomId () | |
RomId (const RomId &romId) | |
RomId (const ByteBuffer &romIdBytes) | |
const RomId & | operator= (const RomId &rhs) |
bool | operator== (const RomId &rhs) const |
bool | operator!= (const RomId &rhs) const |
operator ByteBuffer & () | |
Conversion to array reference. More... | |
operator const ByteBuffer & () const | |
Conversion to const array reference. More... | |
void | reset () |
Reset to the default starting value. More... | |
uint8_t | familyCode () const |
Read the Family Code byte. More... | |
void | setFamilyCode (uint8_t familyCode) |
Set the family code byte. More... | |
uint8_t | crc8 () const |
Read the CRC8 byte. More... | |
void | setCrc8 (uint8_t crc8) |
Set the CRC8 byte. More... | |
bool | crc8Valid () const |
void | setValidCrc8 () |
Calculate and set the CRC8 for the ROM ID. More... | |
bool | valid () const |
Static Public Attributes | |
static const size_t | byteLen = 8 |
Length of the buffer in bytes. More... | |
Standard container for a 1-Wire ROM ID.
typedef array<uint8_t, byteLen>::Buffer OneWire::RomId::ByteBuffer |
Built-in array representation.
|
inline |
|
inline |
|
inline |
|
inline |
Read the CRC8 byte.
|
inline |
Check if the CRC8 is valid for the ROM ID.
|
inline |
Read the Family Code byte.
|
inline |
Conversion to array reference.
|
inline |
Conversion to const array reference.
|
inline |
|
inline |
|
inline |
Reset to the default starting value.
|
inline |
Set the CRC8 byte.
|
inline |
Set the family code byte.
|
inline |
Calculate and set the CRC8 for the ROM ID.
|
inline |
Check if the ROM ID is valid (Family Code and CRC8 are both valid).
|
static |
Length of the buffer in bytes.