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

Contains API prototypes for the SWDT (Synchronous Watchdog Timer) driver. More...

Files

file  driver_swdt.c
 Implements APIs for the SWDT (Synchronous Watchdog Timer) driver.

Functions

void SWDT_WriteControlA (uint8_t value)
 Overwrites the CTRLA register value.
void SWDT_SetControlA (uint8_t bitmask)
 Sets specific bits in the CTRLA register.
void SWDT_WriteControlB (uint8_t value)
 Overwrites the CTRLB register value.
void SWDT_WriteIntControl (uint8_t value)
 Overwrites the INTCTRL register value.
uint8_t SWDT_ReadIntFlags (void)
 Reads the INTFLAGS register value.
void SWDT_WriteIntFlags (uint8_t value)
 Overwrites the INTFLAGS register value.
uint8_t SWDT_ReadCounterLsb (void)
 Reads the CNT0 register value.
void SWDT_WriteResetValue (uint32_t value)
 Overwrites the RESET register value.
void SWDT_WriteWindowValue (uint16_t value)
 Overwrites the WINDOW register value.
void SWDT_WriteCommand (uint8_t value)
 Overwrites the COMMAND register value.

Detailed Description

Contains API prototypes for the SWDT (Synchronous Watchdog Timer) 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

◆ SWDT_ReadCounterLsb()

uint8_t SWDT_ReadCounterLsb ( void )

Reads the CNT0 register value.

Returns
The read value.

Definition at line 62 of file driver_swdt.c.

◆ SWDT_ReadIntFlags()

uint8_t SWDT_ReadIntFlags ( void )

Reads the INTFLAGS register value.

Returns
The read value.

Definition at line 52 of file driver_swdt.c.

◆ SWDT_SetControlA()

void SWDT_SetControlA ( uint8_t bitmask)

Sets specific bits in the CTRLA register.

Parameters
bitmaskSpecifies which bits to set.

Definition at line 35 of file driver_swdt.c.

◆ SWDT_WriteCommand()

void SWDT_WriteCommand ( uint8_t value)

Overwrites the COMMAND register value.

Parameters
valueSpecifies the value to write.

Definition at line 77 of file driver_swdt.c.

◆ SWDT_WriteControlA()

void SWDT_WriteControlA ( uint8_t value)

Overwrites the CTRLA register value.

Parameters
valueSpecifies the value to write.

Definition at line 30 of file driver_swdt.c.

◆ SWDT_WriteControlB()

void SWDT_WriteControlB ( uint8_t value)

Overwrites the CTRLB register value.

Parameters
valueSpecifies the value to write.

Definition at line 42 of file driver_swdt.c.

◆ SWDT_WriteIntControl()

void SWDT_WriteIntControl ( uint8_t value)

Overwrites the INTCTRL register value.

Parameters
valueSpecifies the value to write.

Definition at line 47 of file driver_swdt.c.

◆ SWDT_WriteIntFlags()

void SWDT_WriteIntFlags ( uint8_t value)

Overwrites the INTFLAGS register value.

Parameters
valueSpecifies the value to write.

Definition at line 57 of file driver_swdt.c.

◆ SWDT_WriteResetValue()

void SWDT_WriteResetValue ( uint32_t value)

Overwrites the RESET register value.

Parameters
valueSpecifies the value to write.

Definition at line 67 of file driver_swdt.c.

◆ SWDT_WriteWindowValue()

void SWDT_WriteWindowValue ( uint16_t value)

Overwrites the WINDOW register value.

Parameters
valueSpecifies the value to write.

Definition at line 72 of file driver_swdt.c.