Microchip® Advanced Software Framework

sw_timer_handle Struct Reference

SW timer handler structure.

#include <sw_timer.h>

Data Fields

uint8_t busy: 1
 A flag that timer is calling the handler function or not. More...
 
sw_timer_callback_t callback
 Callback of timer. More...
 
uint8_t callback_enable: 1
 A flag that timer callback is enabled. More...
 
void * context
 Private data of timer. More...
 
uint32_t expire_time
 Expired time of timer. More...
 
uint32_t period
 Period of timer. More...
 
uint8_t used: 1
 A flag that timer is used. More...
 

uint8_t sw_timer_handle::busy

A flag that timer is calling the handler function or not.

Referenced by sw_timer_task().

sw_timer_callback_t sw_timer_handle::callback

Callback of timer.

Referenced by sw_timer_register_callback(), and sw_timer_task().

uint8_t sw_timer_handle::callback_enable

A flag that timer callback is enabled.

Referenced by sw_timer_disable_callback(), sw_timer_enable_callback(), sw_timer_register_callback(), and sw_timer_task().

void* sw_timer_handle::context

Private data of timer.

Referenced by sw_timer_register_callback(), and sw_timer_task().

uint32_t sw_timer_handle::expire_time

Expired time of timer.

Referenced by sw_timer_enable_callback(), and sw_timer_task().

uint32_t sw_timer_handle::period

Period of timer.

If this value is set to zero, it means this timer operated once.

Referenced by sw_timer_register_callback(), and sw_timer_task().

uint8_t sw_timer_handle::used

A flag that timer is used.

Referenced by sw_timer_register_callback(), sw_timer_task(), and sw_timer_unregister_callback().