Skip to main content

lv_timer_t

Type Alias lv_timer_t 

Source
pub type lv_timer_t = _lv_timer_t;
Expand description

Descriptor of a lv_timer

Aliased Type§

#[repr(C)]
pub struct lv_timer_t { pub period: u32, pub last_run: u32, pub timer_cb: Option<unsafe extern "C" fn(*mut _lv_timer_t)>, pub user_data: *mut c_void, pub repeat_count: i32, pub paused: i32, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub __bindgen_padding_0: [u8; 7], }

Fields§

§period: u32

< How often the timer should run

§last_run: u32

< Last time the timer ran

§timer_cb: Option<unsafe extern "C" fn(*mut _lv_timer_t)>

< Timer function

§user_data: *mut c_void

< Custom user data

§repeat_count: i32

< 1: One time; -1 : infinity; n>0: residual times

§paused: i32§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: [u8; 7]