![]() |
AVR SD Safety Framework 1.0.0
|
Contains API prototypes for the GPR (General Purpose Registers) driver. More...
Files | |
| file | driver_gpr.c |
| Implements APIs for the GPR (General Purpose Registers) driver. | |
| file | driver_gpr.h |
| Contains API prototypes for the GPR (General Purpose Registers) driver. | |
Functions | |
| uint8_t | GPR_ReadRegister0 (void) |
| Reads the GPR0 register value. | |
| void | GPR_WriteRegister0 (uint8_t value) |
| Overwrites the GPR0 register value. | |
| uint8_t | GPR_ReadRegister1 (void) |
| Reads the GPR1 register value. | |
| void | GPR_WriteRegister1 (uint8_t value) |
| Overwrites the GPR1 register value. | |
| uint8_t | GPR_ReadRegister2 (void) |
| Reads the GPR2 register value. | |
| void | GPR_SetRegister2 (uint8_t bitmask) |
| Sets specific bits in the GPR2 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_ReadRegister3 (void) |
| Reads the GPR3 register value. | |
| void | GPR_WriteRegister3 (uint8_t value) |
| Overwrites the GPR3 register value. | |
| void | GPR_SetRegister3 (uint8_t bitmask) |
| Sets specific bits in the GPR3 register. | |
| void | GPR_ClearRegister3 (uint8_t bitmask) |
| Clears specific bits in the GPR3 register. | |
Contains API prototypes for the GPR (General Purpose Registers) driver.
These APIs provide direct register access and have no functional knowledge of the register interface. No input or output validation is performed in the drivers. It is the responsibility of the calling function to use them correctly according to the register interface specification.
| void GPR_ClearRegister2 | ( | uint8_t | bitmask | ) |
Clears specific bits in the GPR2 register.
| bitmask | Specifies which bits to clear. |
| void GPR_ClearRegister3 | ( | uint8_t | bitmask | ) |
Clears specific bits in the GPR3 register.
| bitmask | Specifies which bits to clear. |
| void GPR_ModifyRegister2 | ( | uint8_t | groupMask, |
| uint8_t | groupConfig ) |
Modifies specific bit field(s) in the GPR2 register.
| groupMask | Specifies which bit field values to modify (clear and write). |
| groupConfig | Specifies the bit pattern to write to the specified bit fields. |
| uint8_t GPR_ReadRegister0 | ( | void | ) |
Reads the GPR0 register value.
| uint8_t GPR_ReadRegister1 | ( | void | ) |
Reads the GPR1 register value.
| uint8_t GPR_ReadRegister2 | ( | void | ) |
Reads the GPR2 register value.
| uint8_t GPR_ReadRegister3 | ( | void | ) |
Reads the GPR3 register value.
| void GPR_SetRegister2 | ( | uint8_t | bitmask | ) |
Sets specific bits in the GPR2 register.
| bitmask | Specifies which bits to set. |
| void GPR_SetRegister3 | ( | uint8_t | bitmask | ) |
Sets specific bits in the GPR3 register.
| bitmask | Specifies which bits to set. |
| void GPR_WriteRegister0 | ( | uint8_t | value | ) |
Overwrites the GPR0 register value.
| value | Specifies the value to write. |
| void GPR_WriteRegister1 | ( | uint8_t | value | ) |
Overwrites the GPR1 register value.
| value | Specifies the value to write. |
| void GPR_WriteRegister3 | ( | uint8_t | value | ) |
Overwrites the GPR3 register value.
| value | Specifies the value to write. |