FuSa 8-Bit Libraries Safety Framework
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.

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.

Version
1.0.0-alpha.1

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.

Definition at line 42 of file driver_cpuctrl.c.

◆ CPUCTRL_ClearStatusRegister()

void CPUCTRL_ClearStatusRegister ( uint8_t bitmask)

Clears specific bits in the SREG register.

Parameters
bitmaskSpecifies which bits to clear.

Definition at line 69 of file driver_cpuctrl.c.

◆ CPUCTRL_ReadIntFlags()

uint8_t CPUCTRL_ReadIntFlags ( void )

Reads the INTFLAGS register value.

Returns
The read value.

Definition at line 49 of file driver_cpuctrl.c.

◆ CPUCTRL_ReadStatusRegister()

uint8_t CPUCTRL_ReadStatusRegister ( void )

Reads the SREG register value.

Returns
The read value.

Definition at line 59 of file driver_cpuctrl.c.

◆ CPUCTRL_SetControlA()

void CPUCTRL_SetControlA ( uint8_t bitmask)

Sets specific bits in the CTRLA register.

Parameters
bitmaskSpecifies which bits to set.

Definition at line 35 of file driver_cpuctrl.c.

◆ CPUCTRL_SetStatusRegister()

void CPUCTRL_SetStatusRegister ( uint8_t bitmask)

Sets specific bits in the SREG register.

Parameters
bitmaskSpecifies which bits to set.

Definition at line 64 of file driver_cpuctrl.c.

◆ CPUCTRL_WriteIntFlags()

void CPUCTRL_WriteIntFlags ( uint8_t value)

Overwrites the INTFLAGS register value.

Parameters
valueSpecifies the value to write.

Definition at line 54 of file driver_cpuctrl.c.

◆ CPUCTRL_WriteSplim()

void CPUCTRL_WriteSplim ( uint16_t value)

Overwrites the SPLIM register value.

Parameters
valueSpecifies the value to write.

Definition at line 30 of file driver_cpuctrl.c.