![]() |
FuSa 8-Bit Libraries Safety Framework
|
Contains API prototypes for the Checksum Manager. More...
Files | |
| file | midware_checksum_manager.c |
| Implements APIs for the Checksum Manager. | |
Functions | |
| void | MW_ClearCrcPeriodInterrupt (void) |
| Clears the flag indicating that a CRC scan period is done. | |
| errFlag_t | MW_GetClearCrcDoneError (void) |
| Reads and clears the flag indicating a CRC scan of Flash is done and returns the scan result. | |
Contains API prototypes for the Checksum Manager.
The Checksum Manager provides services to Tasks to ensure correct interaction with features of the CRCSCAN peripheral.
| void MW_ClearCrcPeriodInterrupt | ( | void | ) |
Clears the flag indicating that a CRC scan period is done.
Definition at line 33 of file midware_checksum_manager.c.
| errFlag_t MW_GetClearCrcDoneError | ( | void | ) |
Reads and clears the flag indicating a CRC scan of Flash is done and returns the scan result.
This function checks if a CRC scan has been completed and evaluates the result after a scan. If the DONE flag is not set, it returns no error. When the the DONE flag is set, the status register is read to check the result. An error is returned if either the ERROR or BUSY status flag is set. The DONE flag being set while the status is BUSY could indicate that a previous result was not checked before a new scan was initiated. Moreover, the OK status flag is invalid while BUSY is set.
| ERROR | CRC scan of Flash detected an error or previous scan result lost. |
| NO_ERROR | CRC scan of Flash not done or scan of Flash detected no errors. |
Definition at line 39 of file midware_checksum_manager.c.