Function osTimerNew

Source
pub unsafe extern "C" fn osTimerNew(
    func: osTimerFunc_t,
    type_: osTimerType_t,
    argument: *mut c_void,
    attr: *const osTimerAttr_t,
) -> osTimerId_t
Expand description

Create and Initialize a timer. \param[in] func function pointer to callback function. \param[in] type \ref osTimerOnce for one-shot or \ref osTimerPeriodic for periodic behavior. \param[in] argument argument to the timer callback function. \param[in] attr timer attributes; NULL: default values. \return timer ID for reference by other functions or NULL in case of error.