Crc8_Calc(); Description; Actions; Prototype - Infineon SP37 Function Manual

High integrated single-chip tpms sensor with a low power embedded microcontroller and wireless fsk/ask uhf transmitter
Table of Contents

Advertisement

2.24

CRC8_Calc()

2.24.1

Description

This function calculates the CRC-8 checksum for a memory area in RAM using a fixed polynomial (x
The CRC-8 calculation starts with a defined preload value.
2.24.2

Actions

Calculate CRC-8
2.24.3

Prototype

unsigned char CRC8_Calc(unsigned char Preload, unsigned char idata * BlockStart, unsigned char
BlockLength)
2.24.4

Inputs

Table 105
CRC8_Calc: Input Parameters
Register / Address
R7
R5
R3
2.24.5

Outputs

Table 106
CRC8_Calc: Output values
Register/ Address
R7
ROM Library Function Guide
Type
Name
unsigned char Preload
unsigned char
BlockStart
idata*
unsigned char BlockLength
Type
Name
unsigned char CRC_Result
Tire Pressure Monitoring Sensor
Description
Preload Value for the CRC Calculation.
According to CCITT a value FF
recommended.
Pointer to first Byte of the Data that is to be used
for calculating checksum
Length in Bytes of Block that is used for
calculation of the checksum, starting with
*BlockStart.
Description
Calculated CRC8 checksum
93
SP37
ROM Library Functions
8
2
+x
+x+1).
is
H
Revision 1.0, 2011-12-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents