42 const uint8_t doneMask = (uint8_t)CRCSCAN_DONE_bm;
43 const bool isDoneSet = ((intFlagsRegVal & doneMask) == doneMask);
49 const uint8_t errorMask = (uint8_t)CRCSCAN_ERROR_bm;
50 const uint8_t busyMask = (uint8_t)CRCSCAN_BUSY_bm;
51 const bool isStatusError = ((statusRegVal & errorMask) == errorMask);
52 const bool isStatusBusy = ((statusRegVal & busyMask) == busyMask);
55 if (isStatusError || isStatusBusy)
errFlag_t
Defines the error flag used by Middleware services to indicate error detection.
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.
uint8_t CRCSCAN_ReadStatus(void)
Reads the STATUSA register value.
void CRCSCAN_WriteIntFlags(uint8_t value)
Overwrites the INTFLAGS register value.
uint8_t CRCSCAN_ReadIntFlags(void)
Reads the INTFLAGS register value.