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

Contains API prototypes for the CPUCTRL (CPU Control) driver. More...

Files

file  driver_cpuctrl.c
 Implements APIs for the CPUCTRL (CPU Control) driver.
file  driver_cpuctrl.h
 Contains API prototypes for the CPUCTRL (CPU Control) driver.

Functions

void CPUCTRL_WriteSplim (uint16_t value)
 Overwrites the SPLIM register value.
void CPUCTRL_SetControlA (uint8_t bitmask)
 Sets specific bits in the CTRLA register.
void CPUCTRL_ClearControlA (uint8_t bitmask)
 Clears specific bits in the CTRLA register.
uint8_t CPUCTRL_ReadIntFlags (void)
 Reads the INTFLAGS register value.
void CPUCTRL_WriteIntFlags (uint8_t value)
 Overwrites the INTFLAGS register value.
uint8_t CPUCTRL_ReadStatusRegister (void)
 Reads the SREG register value.
void CPUCTRL_SetStatusRegister (uint8_t bitmask)
 Sets specific bits in the SREG register.
void CPUCTRL_ClearStatusRegister (uint8_t bitmask)
 Clears specific bits in the SREG register.

Detailed Description

Contains API prototypes for the CPUCTRL (CPU Control) 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

◆ CPUCTRL_ClearControlA()

void CPUCTRL_ClearControlA ( uint8_t bitmask)

Clears specific bits in the CTRLA register.

Parameters
bitmaskSpecifies which bits to clear.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CPUCTRL_ClearStatusRegister()

void CPUCTRL_ClearStatusRegister ( uint8_t bitmask)

Clears specific bits in the SREG register.

Parameters
bitmaskSpecifies which bits to clear.
Here is the caller graph for this function:

◆ CPUCTRL_ReadIntFlags()

uint8_t CPUCTRL_ReadIntFlags ( void )

Reads the INTFLAGS register value.

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

◆ CPUCTRL_ReadStatusRegister()

uint8_t CPUCTRL_ReadStatusRegister ( void )

Reads the SREG register value.

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

◆ CPUCTRL_SetControlA()

void CPUCTRL_SetControlA ( uint8_t bitmask)

Sets specific bits in the CTRLA register.

Parameters
bitmaskSpecifies which bits to set.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CPUCTRL_SetStatusRegister()

void CPUCTRL_SetStatusRegister ( uint8_t bitmask)

Sets specific bits in the SREG register.

Parameters
bitmaskSpecifies which bits to set.
Here is the caller graph for this function:

◆ CPUCTRL_WriteIntFlags()

void CPUCTRL_WriteIntFlags ( uint8_t value)

Overwrites the INTFLAGS register value.

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

◆ CPUCTRL_WriteSplim()

void CPUCTRL_WriteSplim ( uint16_t value)

Overwrites the SPLIM register value.

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