iLLD_TC27xD  1.0
Error Tracking Functions
Collaboration diagram for Error Tracking Functions:

Functions

IFX_EXTERN void IfxFlash_clearCorrectableErrorTracking (IfxFlash_PortId portId)
 Clear the Correctable errors in Corrected Bits Address Buffer Configuration Port x (CBABCFGx) register. More...
 
IFX_EXTERN void IfxFlash_clearUncorrectableErrorTracking (IfxFlash_PortId portId)
 Select the uncorrectable errors in UnCorrectable Bits Address Buffer Configuration Port x (UBABCFGx) register. More...
 
IFX_EXTERN void IfxFlash_disableCorrectableErrorTracking (IfxFlash_PortId portId, boolean disable)
 Disable the Correctable errors in Corrected Bits Address Buffer Configuration Port x (CBABCFGx) register. More...
 
IFX_EXTERN void IfxFlash_disableUncorrectableErrorTracking (IfxFlash_PortId portId, boolean disable)
 Clear the uncorrectable errors in UnCorrectable Bits Address Buffer Configuration Port x (UBABCFGx) register. More...
 
IFX_EXTERN uint32 IfxFlash_getTrackedCorrectableErrors (IfxFlash_PortId portId, IfxFlash_ErrorTracking_Address *trackedFlashAdresses)
 Returns the tracked correctable error addresses, error types and number of errors which are stored in the CBAB registers. More...
 
IFX_EXTERN uint32 IfxFlash_getTrackedUncorrectableErrors (IfxFlash_PortId portId, IfxFlash_ErrorTracking_Address *trackedFlashAdresses)
 Returns the tracked uncorrectable error addresses, error types and number of errors which are stored in the UBAB registers. More...
 
IFX_EXTERN void IfxFlash_selectCorrectableErrorTracking (IfxFlash_PortId portId, IfxFlash_ErrorTracking errorTracking)
 Enables error tracking for correctable flash errors. More...
 
IFX_EXTERN void IfxFlash_selectUncorrectableErrorTracking (IfxFlash_PortId portId, IfxFlash_ErrorTracking errorTracking)
 Enables error tracking for uncorrectable flash errors. More...
 

Detailed Description

Function Documentation

IFX_EXTERN void IfxFlash_clearCorrectableErrorTracking ( IfxFlash_PortId  portId)

Clear the Correctable errors in Corrected Bits Address Buffer Configuration Port x (CBABCFGx) register.

Parameters
portIdCorrected Bits Address Buffer Port Id
Returns
None

Definition at line 36 of file IfxFlash.c.

IFX_EXTERN void IfxFlash_clearUncorrectableErrorTracking ( IfxFlash_PortId  portId)

Select the uncorrectable errors in UnCorrectable Bits Address Buffer Configuration Port x (UBABCFGx) register.

Parameters
portIdUnCorrected Bits Address Buffer Port Id
Returns
None

Definition at line 52 of file IfxFlash.c.

IFX_EXTERN void IfxFlash_disableCorrectableErrorTracking ( IfxFlash_PortId  portId,
boolean  disable 
)

Disable the Correctable errors in Corrected Bits Address Buffer Configuration Port x (CBABCFGx) register.

Parameters
portIdCorrected Bits Address Buffer Port Id
disableDisable/enable the error tracking
Returns
None

Definition at line 58 of file IfxFlash.c.

IFX_EXTERN void IfxFlash_disableUncorrectableErrorTracking ( IfxFlash_PortId  portId,
boolean  disable 
)

Clear the uncorrectable errors in UnCorrectable Bits Address Buffer Configuration Port x (UBABCFGx) register.

Parameters
portIdUnCorrected Bits Address Buffer Port Id
disableDisable/enable the error tracking
Returns
None

Definition at line 64 of file IfxFlash.c.

IFX_EXTERN uint32 IfxFlash_getTrackedCorrectableErrors ( IfxFlash_PortId  portId,
IfxFlash_ErrorTracking_Address trackedFlashAdresses 
)

Returns the tracked correctable error addresses, error types and number of errors which are stored in the CBAB registers.

Parameters
portIdCorrected Bits Address Buffer Port Id
trackedFlashAdressestracked flash addresses for correctable errors
Returns
numErrors

Example usage to print out tracked errors :

{
IfxFlash_ErrorTracking_Address trackedAddresses[IFX_FLASH_ERROR_TRACKING_MAX_CORRECTABLE_ERRORS];
IfxFlash_portId portId = 0;
uint8 numTrackedAddresses = IfxFlash_getTrackedCorrectableErrors(portId, trackedAddresses);
for(int i=0; i<numTrackedAddresses; ++i) {
printf("%d: A:0x%04x Error Type:%d \n",
i,
trackedAddresses[i].address,
trackedAddresses[i].errorType);
}
}

Definition at line 202 of file IfxFlash.c.

IFX_EXTERN uint32 IfxFlash_getTrackedUncorrectableErrors ( IfxFlash_PortId  portId,
IfxFlash_ErrorTracking_Address trackedFlashAdresses 
)

Returns the tracked uncorrectable error addresses, error types and number of errors which are stored in the UBAB registers.

Parameters
portIdUnCorrected Bits Address Buffer Port Id
trackedFlashAdressestracked flash addresses for uncorrectable errors
Returns
numErrors

Example usage to print out tracked errors :

{
IfxFlash_ErrorTracking_Address trackedAddresses[IFX_FLASH_ERROR_TRACKING_MAX_UNCORRECTABLE_ERRORS];
IfxFlash_portId portId = 0;
uint8 numTrackedAddresses = IfxFlash_getTrackedUnCorrectableErrors(portId, trackedAddresses);
for(int i=0; i<numTrackedAddresses; ++i) {
printf("%d: A:0x%04x Error Type:%d \n",
i,
trackedAddresses[i].address,
trackedAddresses[i].errorType);
}
}

Definition at line 232 of file IfxFlash.c.

IFX_EXTERN void IfxFlash_selectCorrectableErrorTracking ( IfxFlash_PortId  portId,
IfxFlash_ErrorTracking  errorTracking 
)

Enables error tracking for correctable flash errors.

Parameters
portIdCorrected Bits Address Buffer Port Id
errorTrackingError Tracking to be selected
Returns
None

Usage example: how to enable error tracking for two flash ports:

Definition at line 303 of file IfxFlash.c.

IFX_EXTERN void IfxFlash_selectUncorrectableErrorTracking ( IfxFlash_PortId  portId,
IfxFlash_ErrorTracking  errorTracking 
)

Enables error tracking for uncorrectable flash errors.

Parameters
portIdUnCorrected Bits Address Buffer Port Id
errorTrackingError Tracking to be selected
Returns
None

Usage example: see IfxFlash_selectCorrectableErrorTracking

Definition at line 315 of file IfxFlash.c.