Function definitions for Watchdog driver.
Functions | |
| void | watchdog_applyConfig (watchdog_instance_t *inst) |
| Apply the software configuration to the hardware. | |
Watchdog (Control Functions) | |
Control functions for the Watchdog. | |
| void | watchdog_lock (watchdog_instance_t *inst) |
| Send Lock Heartbeat to Watchdog. | |
| void | watchdog_unlock (watchdog_instance_t *inst) |
| Send Unlock Heartbeat to Watchdog. | |
| void | watchdog_clear (watchdog_instance_t *inst) |
| Send Clear Heartbeat to Watchdog. | |
| void | watchdog_enable (watchdog_instance_t *inst, u32 mask) |
| Enable Watchdog Counters. | |
| void | watchdog_disable (watchdog_instance_t *inst, u32 mask) |
| Disable Watchdog Counters. | |
Watchdog (Get Functions) | |
Read values from the Watchdog hardware registers. | |
| u32 | watchdog_getCounterValue (watchdog_instance_t *inst, u32 counterId) |
| Get current Counter Value. | |
| u32 | watchdog_getEnable (watchdog_instance_t *inst) |
| Get Watchdog Enable Register. | |
Watchdog (Set Functions) | |
Write values to the Watchdog registers.
| |
| void | watchdog_setPrescaler (watchdog_instance_t *inst, u32 value) |
| Set Watchdog Prescaler Value. | |
| void | watchdog_setHeartBeat (watchdog_instance_t *inst, watchdog_heartbeat_t value) |
| Set Watchdog Heartbeat Action. | |
| void | watchdog_setCounterLimit (watchdog_instance_t *inst, u32 counterId, u32 value) |
| Set Watchdog Counter Limit. | |
| void watchdog_applyConfig | ( | watchdog_instance_t * | inst | ) |
#include <watchdog.h>
Apply the software configuration to the hardware.
Writes all values stored in the watchdog_instance to the corresponding Watchdog hardware registers.
| inst | Pointer to Watchdog instance. |
Definition at line 81 of file watchdog.c.
| void watchdog_clear | ( | watchdog_instance_t * | inst | ) |
#include <watchdog.h>
Send Clear Heartbeat to Watchdog.
| inst | Pointer to Watchdog instance. |
Definition at line 47 of file watchdog.c.
| void watchdog_disable | ( | watchdog_instance_t * | inst, |
| u32 | mask ) |
#include <watchdog.h>
Disable Watchdog Counters.
| inst | Pointer to Watchdog instance. |
| mask | Bitmask of counters to disable. |
Definition at line 69 of file watchdog.c.
| void watchdog_enable | ( | watchdog_instance_t * | inst, |
| u32 | mask ) |
#include <watchdog.h>
Enable Watchdog Counters.
| inst | Pointer to Watchdog instance. |
| mask | Bitmask of counters to enable. |
Definition at line 64 of file watchdog.c.
| u32 watchdog_getCounterValue | ( | watchdog_instance_t * | inst, |
| u32 | counterId ) |
#include <watchdog.h>
Get current Counter Value.
| inst | Pointer to Watchdog instance. |
| counterId | Counter index (0 or 1). |
Definition at line 22 of file watchdog.c.
| u32 watchdog_getEnable | ( | watchdog_instance_t * | inst | ) |
#include <watchdog.h>
Get Watchdog Enable Register.
| inst | Pointer to Watchdog instance. |
Definition at line 75 of file watchdog.c.
| void watchdog_lock | ( | watchdog_instance_t * | inst | ) |
#include <watchdog.h>
Send Lock Heartbeat to Watchdog.
| inst | Pointer to Watchdog instance. |
Definition at line 53 of file watchdog.c.
| void watchdog_setCounterLimit | ( | watchdog_instance_t * | inst, |
| u32 | counterId, | ||
| u32 | value ) |
#include <watchdog.h>
Set Watchdog Counter Limit.
| inst | Pointer to Watchdog instance. |
| counterId | Counter index (0 or 1). |
| value | Counter limit value. |
Definition at line 34 of file watchdog.c.
| void watchdog_setHeartBeat | ( | watchdog_instance_t * | inst, |
| watchdog_heartbeat_t | value ) |
#include <watchdog.h>
Set Watchdog Heartbeat Action.
| inst | Pointer to Watchdog instance. |
| value | Heartbeat action value. |
Definition at line 42 of file watchdog.c.
| void watchdog_setPrescaler | ( | watchdog_instance_t * | inst, |
| u32 | value ) |
#include <watchdog.h>
Set Watchdog Prescaler Value.
| inst | Pointer to Watchdog instance. |
| value | Clock divider value. |
Definition at line 28 of file watchdog.c.
| void watchdog_unlock | ( | watchdog_instance_t * | inst | ) |
#include <watchdog.h>
Send Unlock Heartbeat to Watchdog.
| inst | Pointer to Watchdog instance. |
Definition at line 58 of file watchdog.c.