/* This function calculates the CRC8 of the input data.  */
static uint8_t _eval_crc_8(const uint8_t *puc_buf_ptr, uint32_t ul_len, uint32_t ul_crc_init)
/* This function calculates the CRC8 of the input data.  */
static uint8_t _eval_crc_8(const uint8_t *puc_buf_ptr, uint32_t ul_len, uint32_t ul_crc_init)
{
	uint8_t uc_crc;
	uc_crc = ul_crc_init;
	while (ul_len--) {
		uc_crc = puc_crc8_table [uc_crc ^ *puc_buf_ptr++];
	}
	return uc_crc;
}