68 CRC_Type * base = g_crcBase[instance];
89 CRC_Type * base = g_crcBase[instance];
105 const uint8_t * data,
111 CRC_Type * base = g_crcBase[instance];
114 for (i = 0U; i < dataSize; i++)
130 const CRC_Type * base = g_crcBase[instance];
148 CRC_Type * base = g_crcBase[instance];
status_t CRC_DRV_Init(uint32_t instance, const crc_user_config_t *userConfigPtr)
Initializes the CRC module.
static void CRC_HAL_SetWriteTranspose(CRC_Type *const base, crc_transpose_t transp)
Sets the CRC transpose type for writes.
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.
status_t CRC_DRV_Configure(uint32_t instance, const crc_user_config_t *userConfigPtr)
Configures the CRC module from a user configuration structure.
static void CRC_HAL_SetSeedOrDataMode(CRC_Type *const base, bool enable)
Sets the CRC_DATA register mode.
crc_transpose_t readTranspose
CRC configuration structure. Implements : crc_user_config_t_Class.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
uint32_t CRC_HAL_GetCrcResult(const CRC_Type *const base)
Returns the current result of the CRC calculation.
status_t CRC_DRV_Deinit(uint32_t instance)
Sets the default configuration.
void CRC_HAL_Init(CRC_Type *const base)
Initializes the CRC module.
static void CRC_HAL_SetPolyReg(CRC_Type *const base, uint32_t value)
Sets the polynomial register.
crc_transpose_t writeTranspose
static void CRC_HAL_SetDataReg(CRC_Type *const base, uint32_t value)
Sets the 32 bits of CRC data register.
uint32_t CRC_DRV_GetCrcResult(uint32_t instance)
Returns the current result of the CRC calculation.
static void CRC_HAL_SetProtocolWidth(CRC_Type *const base, crc_bit_width_t width)
Sets the CRC protocol width.
#define CRC_INSTANCE_COUNT
void CRC_DRV_WriteData(uint32_t instance, const uint8_t *data, uint32_t dataSize)
Appends a block of bytes to the current CRC calculation.
static void CRC_HAL_SetFXorMode(CRC_Type *const base, bool enable)
Sets complement read of CRC data register.
CRC_Type *const g_crcBase[]
Table of base addresses for CRC instances.