Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

crc16_ccitt Class Reference

crc16_ccitt Class Reference

CRC16 CCITT. More...

#include <crc16_ccitt.h>

Inherits frame_check_sequence< etl::crc_policy_16_ccitt >.

Public Member Functions

 crc16_ccitt ()
 Default constructor.
template<typename TIterator >
 crc16_ccitt (TIterator begin, const TIterator end)
 Constructor from range.
void reset ()
 Resets the FCS to the initial state.
void add (TIterator begin, const TIterator end)
 Adds a range.
void add (uint8_t value_)
value_type value ()
 Gets the FCS value.
 operator value_type ()
 Conversion operator to value_type.

Detailed Description

CRC16 CCITT.

Definition at line 82 of file crc16_ccitt.h.


Constructor & Destructor Documentation

crc16_ccitt (  )

Default constructor.

Definition at line 89 of file crc16_ccitt.h.

crc16_ccitt ( TIterator  begin,
const TIterator  end 
)

Constructor from range.

Parameters:
beginStart of the range.
endEnd of the range.

Definition at line 100 of file crc16_ccitt.h.


Member Function Documentation

void add ( TIterator  begin,
const TIterator  end 
) [inherited]

Adds a range.

Parameters:
begin
end

Definition at line 95 of file frame_check_sequence.h.

void add ( uint8_t  value_ ) [inherited]
Parameters:
valueThe uint8_t to add to the FCS.

Definition at line 108 of file frame_check_sequence.h.

operator value_type (  ) [inherited]

Conversion operator to value_type.

Definition at line 124 of file frame_check_sequence.h.

void reset (  ) [inherited]

Resets the FCS to the initial state.

Definition at line 84 of file frame_check_sequence.h.

value_type value (  ) [inherited]

Gets the FCS value.

Definition at line 116 of file frame_check_sequence.h.