|
IQRF SPI library for Arduino
Version 1.2
|
#include <IQRFCRC.h>
Public Member Functions | |
| uint8_t | calculate (uint8_t *buffer, uint8_t dataLength) |
| bool | check (uint8_t *buffer, uint8_t dataLength, uint8_t type) |
IQRF CRC class
| uint8_t IQRFCRC::calculate | ( | uint8_t * | buffer, |
| uint8_t | dataLength | ||
| ) |
Calculate CRC before master's send
| buffer | SPI Tx buffer |
| dataLength | Data length |
| bool IQRFCRC::check | ( | uint8_t * | buffer, |
| uint8_t | dataLength, | ||
| uint8_t | type | ||
| ) |
Confirm CRC from SPI slave upon received data
| buffer | SPI Rx buffer |
| dataLength | Data length |
| type | Type |