68 #if defined(__cplusplus)
361 uint32_t gpolyTemp = base->
GPOLY;
365 base->
GPOLY = gpolyTemp;
394 uint32_t gpolyTemp = base->
GPOLY;
398 base->
GPOLY = gpolyTemp;
431 uint32_t ctrlTemp = base->
CTRL;
435 base->
CTRL = ctrlTemp;
470 uint32_t ctrlTemp = base->
CTRL;
474 base->
CTRL = ctrlTemp;
514 uint32_t ctrlTemp = base->
CTRL;
518 base->
CTRL = ctrlTemp;
566 uint32_t ctrlTemp = base->
CTRL;
570 base->
CTRL = ctrlTemp;
618 uint32_t ctrlTemp = base->
CTRL;
622 base->
CTRL = ctrlTemp;
627 #if defined(__cplusplus)
#define CRC_CTRL_TOT_SHIFT
static void CRC_HAL_SetWriteTranspose(CRC_Type *const base, crc_transpose_t transp)
Sets the CRC transpose type for writes.
#define CRC_CTRL_TCRC_SHIFT
static crc_transpose_t CRC_HAL_GetWriteTranspose(const CRC_Type *const base)
Gets the CRC transpose type for writes.
static bool CRC_HAL_GetFXorMode(const CRC_Type *const base)
Gets complement read of CRC data register.
static void CRC_HAL_SetDataLReg(CRC_Type *const base, uint16_t value)
Sets the lower 16 bits of CRC data register.
static uint32_t CRC_HAL_GetPolyReg(const CRC_Type *const base)
Gets the polynomial register value.
static void CRC_HAL_SetDataLLReg(CRC_Type *const base, uint8_t value)
Sets the Low Lower Byte - LL.
static void CRC_HAL_SetReadTranspose(CRC_Type *const base, crc_transpose_t transp)
Sets the CRC transpose type for reads.
static uint16_t CRC_HAL_GetDataHReg(const CRC_Type *const base)
Gets the upper 16 bits of the current CRC result.
crc_transpose_t
CRC type of transpose of read write data Implements : crc_transpose_t_Class.
static void CRC_HAL_SetSeedOrDataMode(CRC_Type *const base, bool enable)
Sets the CRC_DATA register mode.
#define CRC_CTRL_TCRC_MASK
static crc_bit_width_t CRC_HAL_GetProtocolWidth(const CRC_Type *const base)
Gets the CRC protocol width.
static uint16_t CRC_HAL_GetPolyHReg(const CRC_Type *const base)
Gets the upper 16 bits of polynomial register.
static void CRC_HAL_SetPolyHReg(CRC_Type *const base, uint16_t value)
Sets the upper 16 bits of polynomial register.
uint32_t CRC_HAL_GetCrc8(CRC_Type *const base, uint8_t data, bool newSeed, uint32_t seed)
Appends 8-bit data to the current CRC calculation and returns new result.
#define CRC_GPOLY_LOW_SHIFT
#define CRC_GPOLY_LOW_MASK
static uint32_t CRC_HAL_GetDataReg(const CRC_Type *const base)
Gets the current CRC result.
#define CRC_GPOLY_HIGH_SHIFT
uint32_t CRC_HAL_GetCrc16(CRC_Type *const base, uint16_t data, bool newSeed, uint32_t seed)
Appends 16-bit data to the current CRC calculation and returns new result.
#define CRC_CTRL_WAS_SHIFT
#define CRC_CTRL_TOTR_SHIFT
static uint16_t CRC_HAL_GetPolyLReg(const CRC_Type *const base)
Gets the lower 16 bits of polynomial register.
#define CRC_CTRL_FXOR_SHIFT
static crc_transpose_t CRC_HAL_GetReadTranspose(const CRC_Type *const base)
Gets the CRC transpose type for reads.
uint32_t CRC_HAL_GetCrcResult(const CRC_Type *const base)
Returns the current result of the CRC calculation.
static void CRC_HAL_SetDataLUReg(CRC_Type *const base, uint8_t value)
Sets the Low Upper Byte - LU.
void CRC_HAL_Init(CRC_Type *const base)
Initializes the CRC module.
static bool CRC_HAL_GetSeedOrDataMode(const CRC_Type *const base)
Gets the CRC_DATA register mode.
static void CRC_HAL_SetPolyReg(CRC_Type *const base, uint32_t value)
Sets the polynomial register.
#define CRC_CTRL_TOT_MASK
struct CRC_Type::@1::@3 DATA_8
#define CRC_CTRL_WAS_MASK
static void CRC_HAL_SetDataReg(CRC_Type *const base, uint32_t value)
Sets the 32 bits of CRC data register.
#define CRC_GPOLY_HIGH(x)
static void CRC_HAL_SetProtocolWidth(CRC_Type *const base, crc_bit_width_t width)
Sets the CRC protocol width.
static void CRC_HAL_SetDataHReg(CRC_Type *const base, uint16_t value)
Sets the upper 16 bits of CRC data register.
static void CRC_HAL_SetDataHUReg(CRC_Type *const base, uint8_t value)
Sets the High Upper Byte - HU.
static uint16_t CRC_HAL_GetDataLReg(const CRC_Type *const base)
Gets the lower 16 bits of the current CRC result.
#define CRC_CTRL_TOTR_MASK
crc_bit_width_t
CRC bit width Implements : crc_bit_width_t_Class.
static void CRC_HAL_SetPolyLReg(CRC_Type *const base, uint16_t value)
Sets the lower 16 bits of polynomial register.
static void CRC_HAL_SetDataHLReg(CRC_Type *const base, uint8_t value)
Sets the High Lower Byte - HL.
static void CRC_HAL_SetFXorMode(CRC_Type *const base, bool enable)
Sets complement read of CRC data register.
#define CRC_GPOLY_HIGH_MASK
struct CRC_Type::@1::@2 DATA_16
#define CRC_CTRL_FXOR_MASK
uint32_t CRC_HAL_GetCrc32(CRC_Type *const base, uint32_t data, bool newSeed, uint32_t seed)
Appends 32-bit data to the current CRC calculation and returns new result.