ATtiny85 Template Code
Code snippets for the ATtiny85
|
Go to the source code of this file.
Functions | |
uint16_t | crcInit () |
uint16_t | crcByte (uint16_t crc, uint8_t data) |
uint16_t | crcData (uint16_t crc, const uint8_t *pData, uint8_t length) |
uint16_t | crcDataP (uint16_t crc, const uint8_t *pData, uint8_t length) |
uint16_t crcByte | ( | uint16_t | crc, |
uint8_t | data | ||
) |
uint16_t crcData | ( | uint16_t | crc, |
const uint8_t * | pData, | ||
uint8_t | length | ||
) |
Add a block of data to an ongoing CRC calculation
Add a sequence of bytes from a buffer in RAM. Note that this function can process up to 255 bytes in a single call (which is usually enough for a microcontroller application).
crc | the current CRC value |
pData | pointer to the memory buffer |
length | the number of bytes to process. |
Definition at line 74 of file crc16.c.
uint16_t crcDataP | ( | uint16_t | crc, |
const uint8_t * | pData, | ||
uint8_t | length | ||
) |
Add a block of data to an ongoing CRC calculation
Add a sequence of bytes from a buffer in PROGMEM. Note that this function can process up to 255 bytes in a single call (which is usually enough for a microcontroller application).
crc | the current CRC value |
pData | pointer to the memory location. |
length | the number of bytes to process. |
Definition at line 92 of file crc16.c.