Robox Library for Cpp: tools module 1.0.0
RLibCpp utilities toolset
|
CRC16 checksums computation tool. More...
#include <crc16.h>
Public Member Functions | |
Crc16 () | |
Class constructor. | |
Crc16 (uint16_t crcBase) | |
Class constructor. | |
uint16_t | compute (uint8_t data, uint16_t crcBase=Crc16::polySeed) |
Compute the CRC16 value for the specified byte. | |
uint16_t | compute (const uint8_t *data, uint32_t count, uint16_t crcBase=Crc16::polySeed) |
Compute the CRC16 value for the specified buffer, starting from the specified offset for the number of byte. | |
uint16_t | compute (const ByteVector &data, uint16_t crcBase=Crc16::polySeed) |
Compute the CRC16 value for the specified VyteVect. | |
CRC16 checksums computation tool.
Crc16 | ( | ) |
Class constructor.
Crc16 | ( | uint16_t | crcBase | ) |
Class constructor.
crcBase | Base CRC16 value. |
uint16_t compute | ( | const ByteVector & | data, |
uint16_t | crcBase = Crc16::polySeed ) |
Compute the CRC16 value for the specified VyteVect.
data | Source ByteVector. |
crcBase | CRC16 base value. |
uint16_t compute | ( | const uint8_t * | data, |
uint32_t | count, | ||
uint16_t | crcBase = Crc16::polySeed ) |
Compute the CRC16 value for the specified buffer, starting from the specified offset for the number of byte.
data | Source buffer. |
count | Number of byte to compute. |
crcBase | CRC16 base value. |
uint16_t compute | ( | uint8_t | data, |
uint16_t | crcBase = Crc16::polySeed ) |
Compute the CRC16 value for the specified byte.
data | Source byte. |
crcBase | CRC16 base value. |