zephyr::raw

Function k_timer_user_data_set

Source
pub unsafe extern "C" fn k_timer_user_data_set(
    timer: *mut k_timer,
    user_data: *mut c_void,
)
Expand description

@brief Associate user-specific data with a timer.

This routine records the @a user_data with the @a timer, to be retrieved later.

It can be used e.g. in a timer handler shared across multiple subsystems to retrieve data specific to the subsystem this timer is associated with.

@param timer Address of timer. @param user_data User data to associate with the timer.