FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
SLPCTRL Driver

Contains API prototypes for the SLPCTRL (Sleep Controller) driver. More...

Files

file  driver_slpctrl.c
 Implements APIs for the SLPCTRL (Sleep Controller) driver.

Functions

void SLPCTRL_ModifyControlA (uint8_t groupMask, uint8_t groupConfig)
 Modifies specific bit field(s) in the CTRLA register.
void SLPCTRL_WriteControlB (uint8_t value)
 Overwrites the CTRLB register value.
void SLPCTRL_WriteVregControl (uint8_t value)
 Overwrites the VREGCTRL register value.
void SLPCTRL_WriteIntControl (uint8_t value)
 Overwrites the INTCTRL register value.
uint8_t SLPCTRL_ReadIntFlags (void)
 Reads the INTFLAGS register value.
void SLPCTRL_WriteIntFlags (uint8_t value)
 Overwrites the INTFLAGS register value.

Detailed Description

Contains API prototypes for the SLPCTRL (Sleep Controller) 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

◆ SLPCTRL_ModifyControlA()

void SLPCTRL_ModifyControlA ( uint8_t groupMask,
uint8_t groupConfig )

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

Parameters
groupMaskSpecifies which bit field values to modify (clear and write).
groupConfigSpecifies the bit pattern to write to the specified bit fields.

Definition at line 30 of file driver_slpctrl.c.

◆ SLPCTRL_ReadIntFlags()

uint8_t SLPCTRL_ReadIntFlags ( void )

Reads the INTFLAGS register value.

Returns
The read value.

Definition at line 55 of file driver_slpctrl.c.

◆ SLPCTRL_WriteControlB()

void SLPCTRL_WriteControlB ( uint8_t value)

Overwrites the CTRLB register value.

Parameters
valueSpecifies the value to write.

Definition at line 40 of file driver_slpctrl.c.

◆ SLPCTRL_WriteIntControl()

void SLPCTRL_WriteIntControl ( uint8_t value)

Overwrites the INTCTRL register value.

Parameters
valueSpecifies the value to write.

Definition at line 50 of file driver_slpctrl.c.

◆ SLPCTRL_WriteIntFlags()

void SLPCTRL_WriteIntFlags ( uint8_t value)

Overwrites the INTFLAGS register value.

Parameters
valueSpecifies the value to write.

Definition at line 60 of file driver_slpctrl.c.

◆ SLPCTRL_WriteVregControl()

void SLPCTRL_WriteVregControl ( uint8_t value)

Overwrites the VREGCTRL register value.

Parameters
valueSpecifies the value to write.

Definition at line 45 of file driver_slpctrl.c.