Microchip® Advanced Software Framework

sw_timer_config Struct Reference

SW timer configuration structure.

Configuration struct for a SW timer instance. This structure should be initialized by the sw_timer_get_config_defaults function before being modified by the user application.

#include <sw_timer.h>

Data Fields

uint16_t accuracy
 Accuracy of timer. More...
 
uint8_t tcc_callback_channel
 Callback channel of TCC. More...
 
uint8_t tcc_dev
 HW interface of TCC. More...
 

uint16_t sw_timer_config::accuracy

Accuracy of timer.

If this value is increased, Timer can checks a long time. Unit is milliseconds

Referenced by sw_timer_get_config_defaults(), and sw_timer_init().

uint8_t sw_timer_config::tcc_callback_channel

Callback channel of TCC.

Referenced by sw_timer_get_config_defaults(), and sw_timer_init().

uint8_t sw_timer_config::tcc_dev

HW interface of TCC.

Referenced by sw_timer_get_config_defaults(), and sw_timer_init().