nRF5 SDK v17.1.0
Data Fields
sys_timer_t Struct Reference

Timer descriptor. More...

#include <sys_time.h>

Data Fields

sys_queue_item_t item
 
sys_time_t absolute_time
 
sys_time_t interval
 
sys_timer_type_t type
 
sys_timer_callback_t callback
 
void * p_data
 

Detailed Description

Timer descriptor.

Field Documentation

sys_time_t sys_timer_t::absolute_time

Service field.

sys_timer_callback_t sys_timer_t::callback

Timer callback function.

This function is to be called, when this timer triggers.

sys_time_t sys_timer_t::interval

Relevant time moment, at which this timer is programmed to be triggered, measured in microseconds.

sys_queue_item_t sys_timer_t::item

Service field.

void* sys_timer_t::p_data

Timer callback parameter.

This pointer is to be passed to the timer callback function.

sys_timer_type_t sys_timer_t::type

Periodic or one-shot timer.

If type is set to SYS_TIMER_PERIODIC, the timer will restart automatically with the same period.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated