Type Alias switch_timer_t

Source
pub type switch_timer_t = switch_timer;
Expand description

\brief Abstract handler to a timer module

Aliased Type§

#[repr(C)]
pub struct switch_timer_t { pub interval: i32, pub flags: u32, pub samples: u32, pub samplecount: u32, pub last_samplecount: u32, pub timer_interface: *mut switch_timer_interface, pub memory_pool: *mut fspr_pool_t, pub private_info: *mut c_void, pub diff: usize, pub start: i64, pub tick: u64, }

Fields§

§interval: i32

time interval expressed in milliseconds

§flags: u32

flags to control behaviour

§samples: u32

sample count to increment by on each cycle

§samplecount: u32

current sample count based on samples parameter

§last_samplecount: u32§timer_interface: *mut switch_timer_interface

the timer interface provided from a loadable module

§memory_pool: *mut fspr_pool_t

the timer’s memory pool

§private_info: *mut c_void

private data for loadable modules to store information

§diff: usize

remaining time from last call to _check()

§start: i64§tick: u64