1-Wire® library for mbed. Complete 1-Wire library that supports our silicon masters along with a bit-bang master on the MAX32600MBED platform with one common interface for mbed. Slave support has also been included and more slaves will be added as time permits.

Dependents:   MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more

Embed: (wiki syntax)

« Back to documentation index

RomId Struct Reference

RomId Struct Reference

Standard container for a 1-Wire ROM ID. More...

#include <RomId.h>

Public Member Functions

bool valid () const
 Check if the ROM ID is valid (Family Code and CRC8 are both valid).
uint8_t & familyCode ()
uint8_t & crc8 ()

Data Fields

Buffer buffer
 Direct access to the buffer.

Detailed Description

Standard container for a 1-Wire ROM ID.

Definition at line 42 of file RomId.h.


Member Function Documentation

uint8_t& crc8 (  )

Access the CRC8 byte.

Definition at line 58 of file RomId.h.

uint8_t& familyCode (  )

Access the Family Code byte.

Definition at line 52 of file RomId.h.

bool valid (  ) const

Check if the ROM ID is valid (Family Code and CRC8 are both valid).

Returns:
True if the ROM ID is valid.

Definition at line 64 of file RomId.h.


Field Documentation

Direct access to the buffer.

Definition at line 47 of file RomId.h.