sl_sleeptimer_timer_handle_t Struct Reference

Timer structure for sleeptimer.

#include <sl_sleeptimer.h>

Data Fields

void * callback_data
User data to pass to callback function.
uint8_t priority
Priority of timer.
uint16_t option_flags
Option flags.
sl_sleeptimer_timer_handle_t * next
Pointer to next element in list.
sl_sleeptimer_timer_callback_t callback
Function to call when timer expires.
uint32_t timeout_periodic
Periodic timeout.
uint32_t delta
Delay relative to previous element in list.
uint32_t timeout_expected_tc
Expected tick count of the next timeout (only used for periodic timer).
uint16_t conversion_error
The error when converting ms to ticks (thousandths of ticks)
uint16_t accumulated_error
Accumulated conversion error (thousandths of ticks)

Timer structure for sleeptimer.

Field Documentation

callback_data

void* sl_sleeptimer_timer_handle_t::callback_data

User data to pass to callback function.

priority

uint8_t sl_sleeptimer_timer_handle_t::priority

Priority of timer.

option_flags

uint16_t sl_sleeptimer_timer_handle_t::option_flags

Option flags.

next

sl_sleeptimer_timer_handle_t* sl_sleeptimer_timer_handle_t::next

Pointer to next element in list.

callback

sl_sleeptimer_timer_callback_t sl_sleeptimer_timer_handle_t::callback

Function to call when timer expires.

timeout_periodic

uint32_t sl_sleeptimer_timer_handle_t::timeout_periodic

Periodic timeout.

delta

uint32_t sl_sleeptimer_timer_handle_t::delta

Delay relative to previous element in list.

timeout_expected_tc

uint32_t sl_sleeptimer_timer_handle_t::timeout_expected_tc

Expected tick count of the next timeout (only used for periodic timer).

conversion_error

uint16_t sl_sleeptimer_timer_handle_t::conversion_error

The error when converting ms to ticks (thousandths of ticks)

accumulated_error

uint16_t sl_sleeptimer_timer_handle_t::accumulated_error

Accumulated conversion error (thousandths of ticks)