AVR SD Safety Framework 1.0.0
Loading...
Searching...
No Matches
midware_checksum_manager.h File Reference

Contains API prototypes for the Checksum Manager. More...

#include <stdbool.h>
#include <stdint.h>
#include <define_error_flags.h>
#include <xc.h>

Enumerations

enum  flashSection_t
 Type defines for available Flash sections to select when enabling a CRC Scan of Flash. More...

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.
errFlag_t MW_SetCrcScanInterrupts (bool useNmi, bool usePeriod, bool useDone)
 Configures the interrupt settings for the next CRC Scan of a Flash section.
errFlag_t MW_EnableCrcScan (flashSection_t section, bool useCrc32)
 Enables a Cyclic Redundancy Check (CRC) Scan of the selected Flash section.
bool MW_IsCrcScanBusy (void)
 Checks if a CRC Scan of a Flash section is ongoing.
void MW_AbortCrcScan (void)
 Aborts an ongoing CRC Scan of a Flash section.
errFlag_t MW_StartCrcManualMode (bool useCrc32)
 Starts a Cyclic Redundancy Check (CRC) Manual Mode calculation for manual data feeding.
void MW_FeedCrcManualMode (uint8_t data)
 Feeds one byte into an ongoing CRC Manual Mode calculation.
uint32_t MW_EndCrcManualMode (void)
 Ends a CRC Manual Mode calculation and returns the computed CRC result.

Detailed Description

Contains API prototypes for the Checksum Manager.

Version
1.0.0

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