STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
this defines are values for the calculation of CRC with 16 bits

Macros

#define CRC16_POLYNOMIAL   0x1021
 
#define FIRSTCALLCRC16   0xFFFF
 
#define CRC16NBITS   8
 
#define CRC16MSB   0x8000
 
#define CRC16_8LEFT   8
 

Detailed Description

Macro Definition Documentation

◆ CRC16_8LEFT

#define CRC16_8LEFT   8

Number of shift bits on crc calculation

◆ CRC16_POLYNOMIAL

#define CRC16_POLYNOMIAL   0x1021

Polynomial of CRC16

◆ CRC16MSB

#define CRC16MSB   0x8000

Most significant bit of 2 bytes

◆ CRC16NBITS

#define CRC16NBITS   8

Number of bits of a byte

◆ FIRSTCALLCRC16

#define FIRSTCALLCRC16   0xFFFF

Value of CRC if is first call