AVR SD Safety Framework 1.0.0
Loading...
Searching...
No Matches
driver_swdt.c File Reference

Implements APIs for the SWDT (Synchronous Watchdog Timer) driver. More...

#include <stdint.h>
#include <driver_ccp_asm.h>
#include <driver_swdt.h>
#include <xc.h>

Functions

uint8_t SWDT_ReadControlA (void)
 Reads the CTRLA register value.
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

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