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.
◆ EXTERN [1/3]
◆ EXTERN [2/3]
◆ EXTERN [3/3]
◆ crc16()
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'.
#include <crc16.h>
- Parameters
-
[in] | src | source number for crc16 |
[in] | len | length for calculation |
- Returns
- On success, calculated 16-bit CRC is returned.
- Since
- Tizen RT v1.0
◆ crc16part()
uint16_t crc16part |
( |
FAR const uint8_t * |
src, |
|
|
size_t |
len, |
|
|
uint16_t |
crc16val |
|
) |
| |
Continue CRC calculation on a part of the buffer.
#include <crc16.h>
- Parameters
-
[in] | src | source number for crc16 |
[in] | len | length for calculation |
[in] | crc16val | value for calculation |
- Returns
- On success, calculated 16-bit CRC is returned.
- Since
- Tizen RT v1.0
◆ crc32()
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'.
#include <crc32.h>
- Parameters
-
[in] | src | source number for crc32 |
[in] | len | length for calculation |
- Returns
- On success, calculated 16-bit CRC is returned.
- Since
- Tizen RT v1.0
◆ crc32part()
uint32_t crc32part |
( |
FAR const uint8_t * |
src, |
|
|
size_t |
len, |
|
|
uint32_t |
crc32val |
|
) |
| |
Continue CRC calculation on a part of the buffer.
#include <crc32.h>
- Parameters
-
[in] | src | source number for crc32 |
[in] | len | length for calculation |
[in] | crc32val | value for calculation |
- Returns
- On success, calculated 32-bit CRC is returned.
- Since
- Tizen RT v1.0
◆ crc8()
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).
#include <crc8.h>
- Parameters
-
[in] | src | source number for crc8 |
[in] | len | length for calculation |
- Returns
- On success, calculated 8-bit CRC is returned.
- Since
- Tizen RT v1.0
◆ crc8part()
uint8_t crc8part |
( |
FAR const uint8_t * |
src, |
|
|
size_t |
len, |
|
|
uint8_t |
crc8val |
|
) |
| |
Continue CRC calculation on a part of the buffer.
#include <crc8.h>
- Parameters
-
[in] | src | source number for crc8 |
[in] | len | length for calculation |
[in] | crc8val | value for calculation |
- Returns
- On success, calculated 8-bit CRC is returned.
- Since
- Tizen RT v1.0