Skip to main content

nros_platform_timer_create_oneshot

Function nros_platform_timer_create_oneshot 

Source
pub unsafe extern "C" fn nros_platform_timer_create_oneshot(
    timeout_us: u32,
    callback: nros_platform_timer_callback_t,
    user_data: *mut c_void,
) -> *mut c_void
Expand description

Register a one-shot timer that invokes callback(user_data) once after timeout_us microseconds. Returns the platform-native handle on success, NULL on failure.