AVR SD Safety Framework 1.0.0
Loading...
Searching...
No Matches
GPR Driver

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.

Detailed Description

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.

UML Class Diagrams

Function Documentation

◆ GPR_ClearRegister2()

void GPR_ClearRegister2 ( uint8_t bitmask)

Clears specific bits in the GPR2 register.

Parameters
bitmaskSpecifies which bits to clear.

◆ GPR_ClearRegister3()

void GPR_ClearRegister3 ( uint8_t bitmask)

Clears specific bits in the GPR3 register.

Parameters
bitmaskSpecifies which bits to clear.

◆ GPR_ModifyRegister2()

void GPR_ModifyRegister2 ( uint8_t groupMask,
uint8_t groupConfig )

Modifies specific bit field(s) in the GPR2 register.

Parameters
groupMaskSpecifies which bit field values to modify (clear and write).
groupConfigSpecifies the bit pattern to write to the specified bit fields.
Here is the caller graph for this function:

◆ GPR_ReadRegister0()

uint8_t GPR_ReadRegister0 ( void )

Reads the GPR0 register value.

Returns
The read value.
Here is the caller graph for this function:

◆ GPR_ReadRegister1()

uint8_t GPR_ReadRegister1 ( void )

Reads the GPR1 register value.

Returns
The read value.
Here is the caller graph for this function:

◆ GPR_ReadRegister2()

uint8_t GPR_ReadRegister2 ( void )

Reads the GPR2 register value.

Returns
The read value.

◆ GPR_ReadRegister3()

uint8_t GPR_ReadRegister3 ( void )

Reads the GPR3 register value.

Returns
The read value.

◆ GPR_SetRegister2()

void GPR_SetRegister2 ( uint8_t bitmask)

Sets specific bits in the GPR2 register.

Parameters
bitmaskSpecifies which bits to set.

◆ GPR_SetRegister3()

void GPR_SetRegister3 ( uint8_t bitmask)

Sets specific bits in the GPR3 register.

Parameters
bitmaskSpecifies which bits to set.

◆ GPR_WriteRegister0()

void GPR_WriteRegister0 ( uint8_t value)

Overwrites the GPR0 register value.

Parameters
valueSpecifies the value to write.
Here is the caller graph for this function:

◆ GPR_WriteRegister1()

void GPR_WriteRegister1 ( uint8_t value)

Overwrites the GPR1 register value.

Parameters
valueSpecifies the value to write.
Here is the caller graph for this function:

◆ GPR_WriteRegister3()

void GPR_WriteRegister3 ( uint8_t value)

Overwrites the GPR3 register value.

Parameters
valueSpecifies the value to write.
Here is the caller graph for this function: