FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
Checksum Manager

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.

Detailed Description

Contains API prototypes for the Checksum Manager.

Version
1.0.0-alpha.1

The Checksum Manager provides services to Tasks to ensure correct interaction with features of the CRCSCAN peripheral.

UML Sequence Diagrams

Function Documentation

◆ MW_ClearCrcPeriodInterrupt()

void MW_ClearCrcPeriodInterrupt ( void )

Clears the flag indicating that a CRC scan period is done.

Note
If the periodic interrupt is enabled, the period flag must be cleared in order to continue CRC scan when re-entering Idle sleep mode.

Definition at line 33 of file midware_checksum_manager.c.

◆ MW_GetClearCrcDoneError()

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.

Return values
ERRORCRC scan of Flash detected an error or previous scan result lost.
NO_ERRORCRC scan of Flash not done or scan of Flash detected no errors.

Definition at line 39 of file midware_checksum_manager.c.