54 const uint8_t currentValue = GPR.GPR1;
55 const uint8_t clearedConfig = currentValue & (uint8_t)(~groupMask);
56 const uint8_t newConfig = groupConfig & groupMask;
57 const uint8_t updatedValue = clearedConfig | newConfig;
59 GPR.GPR1 = updatedValue;
79 GPR.GPR2 &= (uint8_t)(~bitmask);
84 const uint8_t currentValue = GPR.GPR2;
85 const uint8_t clearedConfig = currentValue & (uint8_t)(~groupMask);
86 const uint8_t newConfig = groupConfig & groupMask;
87 const uint8_t updatedValue = clearedConfig | newConfig;
89 GPR.GPR2 = updatedValue;
109 GPR.GPR3 &= (uint8_t)(~bitmask);
uint8_t GPR_ReadRegister2(void)
Reads the GPR2 register value.
void GPR_ModifyRegister1(uint8_t groupMask, uint8_t groupConfig)
Modifies specific bit field(s) in the GPR1 register.
void GPR_ClearRegister2(uint8_t bitmask)
Clears specific bits in the GPR2 register.
void GPR_ModifyRegister2(uint8_t groupMask, uint8_t groupConfig)
Modifies specific bit field(s) in the GPR2 register.
uint8_t GPR_ReadRegister1(void)
Reads the GPR1 register value.
void GPR_WriteRegister0(uint8_t value)
Overwrites the GPR0 register value.
void GPR_ClearRegister3(uint8_t bitmask)
Clears specific bits in the GPR3 register.
void GPR_WriteRegister3(uint8_t value)
Overwrites the GPR3 register value.
void GPR_SetRegister2(uint8_t bitmask)
Sets specific bits in the GPR2 register.
void GPR_WriteRegister2(uint8_t value)
Overwrites the GPR2 register value.
uint8_t GPR_ReadRegister3(void)
Reads the GPR3 register value.
uint8_t GPR_ReadRegister0(void)
Reads the GPR0 register value.
void GPR_SetRegister3(uint8_t bitmask)
Sets specific bits in the GPR3 register.
void GPR_WriteRegister1(uint8_t value)
Overwrites the GPR1 register value.