riot_sys

Function timer_set_absolute

Source
pub unsafe extern "C" fn timer_set_absolute(
    dev: tim_t,
    channel: c_int,
    value: c_uint,
) -> c_int
Expand description

@brief Set an absolute timeout value for the given channel of the given timer

Timers that are less wide than unsigned int accept and truncate overflown values.

@param[in] dev the timer device to set @param[in] channel the channel to set @param[in] value the absolute compare value when the callback will be triggered

@return 0 on success @return -1 on error