EepromSecureData
CRC-controlled EEPROM memory storage
CrcIButton< T >

iButton CRC template class More...

#include <CrcIButton.h>

Collaboration diagram for CrcIButton< T >:

Public Member Functions

 CrcIButton ()
 Construct a new Crc I Button object.
 
void reset ()
 Reset CRC value.
 
uint8_t value () const
 Get the value of CRC. More...
 
void update (const T &value)
 Update CRC with a T value. More...
 

Static Public Attributes

static const uint8_t InitValue = 0x5A
 Initial value of CRC.
 

Detailed Description

template<class T>
class CrcIButton< T >

iButton CRC template class

Template Parameters
TType of data to calculate CRC

Definition at line 15 of file CrcIButton.h.

Member Function Documentation

◆ update()

template<class T >
void CrcIButton< T >::update ( const T &  value)
inline

Update CRC with a T value.

Parameters
valueValue to update CRC

Definition at line 47 of file CrcIButton.h.

References CrcIButton< T >::value().

Here is the call graph for this function:

◆ value()

template<class T >
uint8_t CrcIButton< T >::value ( ) const
inline

Get the value of CRC.

Returns
uint8_t

Definition at line 38 of file CrcIButton.h.

Referenced by CrcIButton< T >::update().