CRC Driver API/interface file.
CRC programming sequence:
1. CRC_channelReset()
2. CRC_initialize()
3. CRC_configure()
4. CRC_enableIntr() - if needed
5. Transfer data to PSA signature for generation of signature value
- DMA is utilized in Semi-CPU mode
- CPU need to pump data into PSA register in Full CPU mode.
6. CRC_getPSASectorSig()
- After complete transfer read CRC signature.
CRC signature generated depends on amount of data copied into
PSA register at a time/in single write. Though data pattern can be
8, 16, 32, or 64 bit, data copied into PSA register is always 64 bit
wide. If data pattern is less than 64 bit, then it is padded with
zeros to make it 64 bit write.
|
int32_t | CRC_initialize (uint32_t baseAddr, CRC_Channel_t channel, uint32_t crcWatchdogPreload, uint32_t crcBlockPreload) |
| Initialize CRC channel and will configure watchdog and block preload value for given channel. More...
|
|
int32_t | CRC_verifyInitialize (uint32_t baseAddr, CRC_Channel_t channel, uint32_t crcWatchdogPreload, uint32_t crcBlockPreload) |
| Verify the CRC watchdog and block preload value initialized for given channel. More...
|
|
int32_t | CRC_configure (uint32_t baseAddr, CRC_Channel_t channel, uint32_t crcPatternCount, uint32_t crcSectorCount, CRC_OperationMode_t crcMode) |
| This API will configure CRC mode, pattern and sector count for given channel. More...
|
|
int32_t | CRCVerifyConfigure (uint32_t baseAddr, CRC_Channel_t channel, uint32_t crcPatternCount, uint32_t crcSectorCount, CRC_OperationMode_t crcMode) |
| This API will verify the configure of CRC mode, pattern and sector count for given channel. More...
|
|
int32_t | CRC_channelReset (uint32_t baseAddr, CRC_Channel_t channel) |
| This API is used to reset the CRC channel. More...
|
|
int32_t | CRC_getPSASigRegAddr (uint32_t baseAddr, CRC_Channel_t channel, CRC_SignatureRegAddr *pCRCRegAddr) |
| This API is used to get the PSA register address for given Channel. More...
|
|
int32_t | CRC_getPSASig (uint32_t baseAddr, CRC_Channel_t channel, CRC_Signature *pCRCPSASign) |
| This API is used to get the PSA register value for given Channel. More...
|
|
int32_t | CRC_setPSASeedSig (uint32_t baseAddr, CRC_Channel_t channel, const CRC_Signature *pCRCPSASeedSign) |
| This API is used to set the PSA seed value without compression for given Channel. More...
|
|
int32_t | CRC_getPSASectorSig (uint32_t baseAddr, CRC_Channel_t channel, CRC_Signature *pCRCSectorSign) |
| This API is used to get sector signature Value/ CRC value for given channel. More...
|
|
int32_t | CRC_getHighestPriorityIntrStatus (uint32_t baseAddr, uint32_t *pIntVecAddr) |
| This API is used to get the pending interrupt with highest priority. More...
|
|
int32_t | CRC_getIntrStatus (uint32_t baseAddr, CRC_Channel_t channel, uint32_t *pIntrStatus) |
| This API is used to get the pending interrupts for given Channel. More...
|
|
int32_t | CRC_enableIntr (uint32_t baseAddr, CRC_Channel_t channel, uint32_t intrMask) |
| This API is used to enable interrupts for given Channel. More...
|
|
int32_t | CRC_disableIntr (uint32_t baseAddr, CRC_Channel_t channel, uint32_t intrMask) |
| This API is used to disable interrupts for given Channel. More...
|
|
int32_t | CRC_clearIntr (uint32_t baseAddr, CRC_Channel_t channel, uint32_t intrMask) |
| This API is used to clear interrupts for given Channel. More...
|
|
int32_t | CRC_powerDownCtrl (uint32_t baseAddr, uint32_t ctrlFlag) |
| This API is used to control the power down of the CRC module. More...
|
|
int32_t | CRC_isBusy (uint32_t baseAddr, CRC_Channel_t channel, uint32_t *pBusyFlag) |
| This API is used to check if CRC is busy for given Channel. More...
|
|
int32_t | CRC_getCurSecNum (uint32_t baseAddr, CRC_Channel_t channel, uint32_t *pCurSecNum) |
| This API is used to get the current sector number of which the signature verification fails in AUTO mode for given channel. More...
|
|
int32_t | CRC_getCurPSASig (uint32_t baseAddr, CRC_Channel_t channel, CRC_Signature *pCurPSASig) |
| This API is used to get current known good signature value/ CRC value for given channel. More...
|
|
int32_t | CRC_getRawData (uint32_t baseAddr, CRC_Channel_t channel, CRC_Signature *pRawData) |
| This API is used to get the uncompressed raw data value for given channel. More...
|
|
int32_t | CRC_dataBusTracingCtrl (uint32_t baseAddr, uint32_t ctrlFlag, CRC_DataBusMask_t dataBusMask, CRC_DataBusMask_t busEnableMask) |
| This API is used to control the CRC data bus tracing. More...
|
|
int32_t | CRC_verifyBusTracingCtrl (uint32_t baseAddr, uint32_t ctrlFlag, CRC_DataBusMask_t dataBusMask, CRC_DataBusMask_t busEnableMask) |
| This API is used to verify the control the CRC data bus tracing. More...
|
|
int32_t | CRC_readStaticRegs (uint32_t baseAddr, CRC_StaticRegs *pStaticRegs) |
| This API is used to read static registers of CRC module. This API needs to be called after the initial configuration is done and hence mutliple read between static registers do not change the values. More...
|
|