NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
hal_timer Struct Reference

#include <hal_timer.h>

Public Attributes

void * bsp_timer
 
hal_timer_cb cb_func
 
void * cb_arg
 
uint32_t expiry
 

Detailed Description

The HAL timer structure. The user can declare as many of these structures as desired. They are enqueued on a particular HW timer queue when the user calls the :c:func:hal_timer_start() or :c:func:hal_timer_start_at() API. The user must have called :c:func:hal_timer_set_cb() before starting a timer.

NOTE: the user should not have to modify/examine the contents of this structure; the hal timer API should be used.

Member Data Documentation

◆ bsp_timer

void* hal_timer::bsp_timer

Internal platform specific pointer

◆ cb_arg

void* hal_timer::cb_arg

Callback argument

◆ cb_func

hal_timer_cb hal_timer::cb_func

Callback function

◆ expiry

uint32_t hal_timer::expiry

Tick at which timer should expire