Provides APIs for Cyclic Redundancy Check.
More...
|
uint8_t | crc8part (FAR const uint8_t *src, size_t len, uint8_t crc8val) |
| Continue CRC calculation on a part of the buffer. More...
|
|
uint8_t | crc8 (FAR const uint8_t *src, size_t len) |
| Return an 8-bit CRC of the contents of the 'src' buffer, length 'len' using the polynomial x^8+x^6+x^3+x^2+1 (Koopman, et al. "0xA6" poly). More...
|
|
uint16_t | crc16part (FAR const uint8_t *src, size_t len, uint16_t crc16val) |
| Continue CRC calculation on a part of the buffer. More...
|
|
uint16_t | crc16 (FAR const uint8_t *src, size_t len) |
| Return a 16-bit CRC of the contents of the 'src' buffer, length 'len'. More...
|
|
uint32_t | crc32part (FAR const uint8_t *src, size_t len, uint32_t crc32val) |
| Continue CRC calculation on a part of the buffer. More...
|
|
uint32_t | crc32 (FAR const uint8_t *src, size_t len) |
| Return a 32-bit CRC of the contents of the 'src' buffer, length 'len'. More...
|
|
Provides APIs for Cyclic Redundancy Check.
uint16_t crc16 |
( |
FAR const uint8_t * |
src, |
|
|
size_t |
len |
|
) |
| |
Return a 16-bit CRC of the contents of the 'src' buffer, length 'len'.
- Parameters
-
[in] | source | number for crc16 |
[in] | length | for calculation |
- Returns
- On success, calculated 16-bit CRC is returned.
- Since
- Tizen RT v1.0
uint16_t crc16part |
( |
FAR const uint8_t * |
src, |
|
|
size_t |
len, |
|
|
uint16_t |
crc16val |
|
) |
| |
Continue CRC calculation on a part of the buffer.
- Parameters
-
[in] | source | number for crc16 |
[in] | length | for calculation |
[in] | value | for calculation |
- Returns
- On success, calculated 16-bit CRC is returned.
- Since
- Tizen RT v1.0
uint32_t crc32 |
( |
FAR const uint8_t * |
src, |
|
|
size_t |
len |
|
) |
| |
Return a 32-bit CRC of the contents of the 'src' buffer, length 'len'.
- Parameters
-
[in] | source | number for crc32 |
[in] | length | for calculation |
- Returns
- On success, calculated 16-bit CRC is returned.
- Since
- Tizen RT v1.0
uint32_t crc32part |
( |
FAR const uint8_t * |
src, |
|
|
size_t |
len, |
|
|
uint32_t |
crc32val |
|
) |
| |
Continue CRC calculation on a part of the buffer.
- Parameters
-
[in] | source | number for crc32 |
[in] | length | for calculation |
[in] | value | for calculation |
- Returns
- On success, calculated 32-bit CRC is returned.
- Since
- Tizen RT v1.0
uint8_t crc8 |
( |
FAR const uint8_t * |
src, |
|
|
size_t |
len |
|
) |
| |
Return an 8-bit CRC of the contents of the 'src' buffer, length 'len' using the polynomial x^8+x^6+x^3+x^2+1 (Koopman, et al. "0xA6" poly).
- Parameters
-
[in] | source | number for crc8 |
[in] | length | for calculation |
- Returns
- On success, calculated 8-bit CRC is returned.
- Since
- Tizen RT v1.0
uint8_t crc8part |
( |
FAR const uint8_t * |
src, |
|
|
size_t |
len, |
|
|
uint8_t |
crc8val |
|
) |
| |
Continue CRC calculation on a part of the buffer.
- Parameters
-
[in] | source | number for crc8 |
[in] | length | for calculation |
[in] | value | for calculation |
- Returns
- On success, calculated 8-bit CRC is returned.
- Since
- Tizen RT v1.0