Timer structure for sleeptimer.

Public Attributes#

void *

User data to pass to callback function.

uint8_t

Priority of timer.

uint16_t

Option flags.

sl_sleeptimer_timer_handle_t *

Pointer to next element in list.

Function to call when timer expires.

uint32_t

Periodic timeout.

uint32_t

Delay relative to previous element in list.

uint32_t

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

uint16_t

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

uint16_t

Accumulated conversion error (thousandths of ticks)

Public Attribute Documentation#

callback_data#

void* sl_sleeptimer_timer_handle_t::callback_data

User data to pass to callback function.


Definition at line 78 of file platform/service/sleeptimer/inc/sl_sleeptimer.h

priority#

uint8_t sl_sleeptimer_timer_handle_t::priority

Priority of timer.


Definition at line 79 of file platform/service/sleeptimer/inc/sl_sleeptimer.h

option_flags#

uint16_t sl_sleeptimer_timer_handle_t::option_flags

Option flags.


Definition at line 80 of file platform/service/sleeptimer/inc/sl_sleeptimer.h

next#

sl_sleeptimer_timer_handle_t* sl_sleeptimer_timer_handle_t::next

Pointer to next element in list.


Definition at line 81 of file platform/service/sleeptimer/inc/sl_sleeptimer.h

callback#

sl_sleeptimer_timer_callback_t sl_sleeptimer_timer_handle_t::callback

Function to call when timer expires.


Definition at line 82 of file platform/service/sleeptimer/inc/sl_sleeptimer.h

timeout_periodic#

uint32_t sl_sleeptimer_timer_handle_t::timeout_periodic

Periodic timeout.


Definition at line 83 of file platform/service/sleeptimer/inc/sl_sleeptimer.h

delta#

uint32_t sl_sleeptimer_timer_handle_t::delta

Delay relative to previous element in list.


Definition at line 84 of file platform/service/sleeptimer/inc/sl_sleeptimer.h

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).


Definition at line 85 of file platform/service/sleeptimer/inc/sl_sleeptimer.h

conversion_error#

uint16_t sl_sleeptimer_timer_handle_t::conversion_error

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


Definition at line 86 of file platform/service/sleeptimer/inc/sl_sleeptimer.h

accumulated_error#

uint16_t sl_sleeptimer_timer_handle_t::accumulated_error

Accumulated conversion error (thousandths of ticks)


Definition at line 87 of file platform/service/sleeptimer/inc/sl_sleeptimer.h