![]() |
nRF5 SDK
v15.3.0
|
Choose documentation: | nRF5 SDK | S112 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API | S312 SoftDevice API | S332 SoftDevice API | S340 SoftDevice API |
Watchdog Timer (WDT) peripheral driver. More...
Modules | |
WDT peripheral driver configuration | |
Data Structures | |
struct | nrfx_wdt_config_t |
Struct for WDT initialization. More... | |
Macros | |
#define | NRFX_WDT_IRQ_CONFIG .interrupt_priority = NRFX_WDT_CONFIG_IRQ_PRIORITY |
WDT instance interrupt priority configuration. | |
#define | NRFX_WDT_DEAFULT_CONFIG |
Typedefs | |
typedef void(* | nrfx_wdt_event_handler_t )(void) |
WDT event handler function type. | |
typedef nrf_wdt_rr_register_t | nrfx_wdt_channel_id |
WDT channel id type. | |
Functions | |
nrfx_err_t | nrfx_wdt_init (nrfx_wdt_config_t const *p_config, nrfx_wdt_event_handler_t wdt_event_handler) |
This function initializes watchdog. More... | |
nrfx_err_t | nrfx_wdt_channel_alloc (nrfx_wdt_channel_id *p_channel_id) |
This function allocate watchdog channel. More... | |
void | nrfx_wdt_enable (void) |
This function starts watchdog. More... | |
void | nrfx_wdt_feed (void) |
This function feeds the watchdog. More... | |
void | nrfx_wdt_channel_feed (nrfx_wdt_channel_id channel_id) |
This function feeds the invidual watchdog channel. More... | |
__STATIC_INLINE uint32_t | nrfx_wdt_ppi_task_addr (nrf_wdt_task_t task) |
Function for returning a requested task address for the wdt driver module. More... | |
__STATIC_INLINE uint32_t | nrfx_wdt_ppi_event_addr (nrf_wdt_event_t event) |
Function for returning a requested event address for the wdt driver module. More... | |
void | nrfx_wdt_irq_handler (void) |
Watchdog Timer (WDT) peripheral driver.
#define NRFX_WDT_DEAFULT_CONFIG |
nrfx_err_t nrfx_wdt_channel_alloc | ( | nrfx_wdt_channel_id * | p_channel_id | ) |
This function allocate watchdog channel.
[out] | p_channel_id | ID of granted channel. |
void nrfx_wdt_channel_feed | ( | nrfx_wdt_channel_id | channel_id | ) |
This function feeds the invidual watchdog channel.
[in] | channel_id | ID of watchdog channel. |
void nrfx_wdt_enable | ( | void | ) |
This function starts watchdog.
void nrfx_wdt_feed | ( | void | ) |
This function feeds the watchdog.
Function feeds all allocated watchdog channels.
nrfx_err_t nrfx_wdt_init | ( | nrfx_wdt_config_t const * | p_config, |
nrfx_wdt_event_handler_t | wdt_event_handler | ||
) |
This function initializes watchdog.
[in] | p_config | Pointer to the structure with initial configuration. |
[in] | wdt_event_handler | Event handler provided by the user. Ignored when NRFX_WDT_CONFIG_NO_IRQ option is enabled. |
__STATIC_INLINE uint32_t nrfx_wdt_ppi_event_addr | ( | nrf_wdt_event_t | event | ) |
Function for returning a requested event address for the wdt driver module.
[in] | event | One of the peripheral events. |
Event | address |
__STATIC_INLINE uint32_t nrfx_wdt_ppi_task_addr | ( | nrf_wdt_task_t | task | ) |
Function for returning a requested task address for the wdt driver module.
[in] | task | One of the peripheral tasks. |
Task | address. |