35 const uint8_t currentValue = NVMCTRL.CTRLC;
36 const uint8_t clearedConfig = currentValue & (uint8_t)(~groupMask);
37 const uint8_t newConfig = groupConfig & groupMask;
38 const uint8_t updatedValue = clearedConfig | newConfig;
45 const uint8_t currentValue = NVMCTRL.CTRLD;
46 const uint8_t updatedValue = currentValue | bitmask;
52 return NVMCTRL.INTFLAGSB;
62 return NVMCTRL.STATUS;
void ASM_WriteCcp8(register8_t *regAddr, uint8_t value)
Writes value to a Configuration Change Protected (CCP) 8-bit register.
void NVMCTRL_SetControlD(uint8_t bitmask)
Sets specific bits in the CTRLD register.
uint8_t NVMCTRL_ReadStatus(void)
Reads the STATUS register value.
uint8_t NVMCTRL_ReadIntFlagsB(void)
Reads the INTFLAGSB register value.
void NVMCTRL_WriteIntFlagsB(uint8_t value)
Overwrites the INTFLAGSB register value.
void NVMCTRL_ModifyControlC(uint8_t groupMask, uint8_t groupConfig)
Modifies specific bit field(s) in the CTRLC register.