nRF5 SDK v15.0.0
Typedefs | Functions
Timers for DFU in the bootloader

Typedefs

typedef void(* nrf_bootloader_dfu_timeout_callback_t )(void)
 Handler called on timeout of a timer requested by the watchdog.
 

Functions

void nrf_bootloader_dfu_inactivity_timer_restart (uint32_t timeout_ms, nrf_bootloader_dfu_timeout_callback_t callback)
 Function for restarting the inactivity timer. More...
 
void nrf_bootloader_wdt_feed_timer_start (uint32_t timeout_ms, nrf_bootloader_dfu_timeout_callback_t callback)
 Function for initializing and starting a repeated timer for feeding the watchdog. More...
 

Detailed Description

Function Documentation

void nrf_bootloader_dfu_inactivity_timer_restart ( uint32_t  timeout_ms,
nrf_bootloader_dfu_timeout_callback_t  callback 
)

Function for restarting the inactivity timer.

Note
Calling this function cancels any previous calls to this function.
Parameters
[in]timeout_msThe number of milliseconds until reset if not restarted. If 0 is passed, the timer will be stopped and not restarted.
[in]callbackFunction to be called on timeout.
void nrf_bootloader_wdt_feed_timer_start ( uint32_t  timeout_ms,
nrf_bootloader_dfu_timeout_callback_t  callback 
)

Function for initializing and starting a repeated timer for feeding the watchdog.

Parameters
[in]timeout_msTimer period.
[in]callbackFunction called on every timeout.

Documentation feedback | Developer Zone | Subscribe | Updated