repeating_timer_t

Type Alias repeating_timer_t 

Source
pub type repeating_timer_t = repeating_timer;
Expand description

\defgroup repeating_timer repeating_timer \ingroup pico_time \brief Repeating Timer functions for simple scheduling of repeated execution

\note The regular \a alarm_ functionality can be used to make repeating alarms (by return non zero from the callback), however these methods abstract that further (at the cost of a user structure to store the repeat delay in (which the alarm framework does not have space for).

Aliased Type§

#[repr(C)]
pub struct repeating_timer_t { pub delay_us: i64, pub pool: *mut alarm_pool, pub alarm_id: i32, pub callback: Option<unsafe extern "C" fn(*mut repeating_timer) -> bool>, pub user_data: *mut c_void, }

Fields§

§delay_us: i64§pool: *mut alarm_pool§alarm_id: i32§callback: Option<unsafe extern "C" fn(*mut repeating_timer) -> bool>§user_data: *mut c_void