47#include "crc_interface.h"
This is the generated driver types header file for the CRC driver.
const struct CRC_INTERFACE CRC
Structure object of type CRC_INTERFACE with the custom name given by the user in the Melody Driver Us...
void CRC_Initialize(void)
Initializes the CRC module. This function sets the polynomial and data width; data and seed shift; up...
uint32_t CRC_CalculationResultRawGet(void)
Gets the CRC raw result if the calculation is done.
void CRC_EventCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CRC Event ev...
uint32_t CRC_CalculationResultGet(bool reverse, uint32_t xorValue)
Gets the CRC result if the calculation is done.
void CRC_SeedSet(uint32_t seed, enum CRC_SEED_METHOD seedMethod, enum CRC_SEED_DIRECTION seedDirection)
Sets the CRC seed with method and direction.
void CRC_CalculateBufferStart(void *buffer, uint32_t sizeBytes)
CRC module calculation on a buffer in data space.
CRC_SEED_DIRECTION
Defines the CRC calculation seed direction in direct method CRC_SeedSet.
void CRC_Tasks(void)
This function cycles through the CRC calculations. This function will load the CRC module FIFO with...
void CRC_EventCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
void CRC_Deinitialize(void)
Deinitializes CRC to POR values.
uint32_t CRC_CalculationResultXORGet(uint32_t xorValue)
Gets the CRC XOR'd value of the result if the calculation is done.
CRC_SEED_METHOD
Defines the CRC calculation seed method CRC_SeedSet. The direct method refers to the seed being place...
uint32_t CRC_CalculationResultReverseGet(void)
Gets the CRC reversed value of result if the calculation is done.
void CRC_CalculateProgramStart(uint32_t startAddr, uint32_t sizeBytes)
Starts the CRC calculation on a buffer in program space.
bool CRC_CalculationIsDone(void)
Returns the CRC calculation complete status
Structure containing the function pointers of CRC driver.