RTS API Documentation  1.10.11
Data Fields
switch_timer Struct Reference

Abstract handler to a timer module. More...

#include <switch_module_interfaces.h>

+ Collaboration diagram for switch_timer:

Data Fields

int interval
 
uint32_t flags
 
unsigned int samples
 
uint32_t samplecount
 
uint32_t last_samplecount
 
switch_timer_interface_ttimer_interface
 
switch_memory_pool_tmemory_pool
 
void * private_info
 
switch_size_t diff
 
switch_time_t start
 
uint64_t tick
 

Detailed Description

Abstract handler to a timer module.

Definition at line 210 of file switch_module_interfaces.h.

Field Documentation

◆ diff

switch_size_t switch_timer::diff

remaining time from last call to _check()

Definition at line 227 of file switch_module_interfaces.h.

Referenced by timer_check(), and timer_generic_sync().

◆ flags

uint32_t switch_timer::flags

flags to control behaviour

Definition at line 214 of file switch_module_interfaces.h.

◆ interval

int switch_timer::interval

◆ last_samplecount

uint32_t switch_timer::last_samplecount

Definition at line 219 of file switch_module_interfaces.h.

Referenced by timer_generic_sync().

◆ memory_pool

switch_memory_pool_t* switch_timer::memory_pool

the timer's memory pool

Definition at line 223 of file switch_module_interfaces.h.

Referenced by switch_core_timer_destroy(), switch_core_timer_init(), timer_generic_sync(), and timer_init().

◆ private_info

void* switch_timer::private_info

private data for loadable modules to store information

Definition at line 225 of file switch_module_interfaces.h.

Referenced by timer_check(), timer_destroy(), timer_generic_sync(), timer_init(), timer_next(), timer_step(), and timer_sync().

◆ samplecount

uint32_t switch_timer::samplecount

◆ samples

unsigned int switch_timer::samples

sample count to increment by on each cycle

Definition at line 216 of file switch_module_interfaces.h.

Referenced by switch_core_timer_init(), timer_generic_sync(), and timer_step().

◆ start

switch_time_t switch_timer::start

Definition at line 228 of file switch_module_interfaces.h.

Referenced by timer_generic_sync(), and timer_init().

◆ tick

uint64_t switch_timer::tick

◆ timer_interface

switch_timer_interface_t* switch_timer::timer_interface

The documentation for this struct was generated from the following file: