C2A_Core
|
CRC用のライブラリ [詳解]
#include "crc.h"
関数 | |
uint16_t | CRC_calc_crc_16_ibm_right (uint16_t crc, const uint8_t *c, size_t n, int rev_flag) |
CRC-16-IBM [詳解] | |
uint16_t | CRC_calc_crc_16_ccitt_left (uint16_t crc, const uint8_t *c, size_t n, int rev_flag) |
CRC-16-CCITT [詳解] | |
uint16_t | CRC_calc_crc_16_ccitt_right (uint16_t crc, const uint8_t *c, size_t n, int rev_flag) |
CRC-16-CCITT [詳解] | |
void | CRC_make_crc_8_table (uint8_t *table, uint8_t crc_poly, uint8_t shift) |
crc用のテーブル作成 [詳解] | |
void | CRC_make_crc_16_table (uint16_t *table, uint16_t crc_poly, uint8_t shift) |
void | CRC_make_crc_32_table (uint32_t *table, uint32_t crc_poly, uint8_t shift) |
変数 | |
static const uint16_t | CRC_kCrc16IbmRightTable_ [256] |
static const uint16_t | CRC_kCrc16CcittLeftTable_ [256] |
static const uint16_t | CRC_kCrc16CcittRightTable_ [256] |
CRC用のライブラリ
crc.c に定義があります。
uint16_t CRC_calc_crc_16_ccitt_left | ( | uint16_t | crc, |
const uint8_t * | c, | ||
size_t | n, | ||
int | rev_flag | ||
) |
uint16_t CRC_calc_crc_16_ccitt_right | ( | uint16_t | crc, |
const uint8_t * | c, | ||
size_t | n, | ||
int | rev_flag | ||
) |
uint16_t CRC_calc_crc_16_ibm_right | ( | uint16_t | crc, |
const uint8_t * | c, | ||
size_t | n, | ||
int | rev_flag | ||
) |
void CRC_make_crc_16_table | ( | uint16_t * | table, |
uint16_t | crc_poly, | ||
uint8_t | shift | ||
) |
void CRC_make_crc_32_table | ( | uint32_t * | table, |
uint32_t | crc_poly, | ||
uint8_t | shift | ||
) |
void CRC_make_crc_8_table | ( | uint8_t * | table, |
uint8_t | crc_poly, | ||
uint8_t | shift | ||
) |