|
openthread-br
0.3.0-72c0388
|
#include <src/utils/crc16.hpp>
Public Types | |
| enum | Polynomial { kCcitt = 0x1021, kAnsi = 0x8005 } |
Public Member Functions | |
| Crc16 (Polynomial aPolynomial) | |
| void | Init (void) |
| void | Update (uint8_t aByte) |
| uint16_t | Get (void) const |
This class implements CRC16 computations.
| otbr::Crc16::Crc16 | ( | Polynomial | aPolynomial | ) |
This constructor initializes the object.
| [in] | aPolynomial | The polynomial value. |
|
inline |
This method gets the current CRC16 value.
|
inline |
This method initializes the CRC16 computation.
| void otbr::Crc16::Update | ( | uint8_t | aByte | ) |
This method feeds a byte value into the CRC16 computation.
| [in] | aByte | The byte value. |
1.8.17