Lines Matching refs:timer
862 * @brief Initialize and set a timer
865 * @param timer pointer to the structure allocated for this timer
866 * @param func the function to call when the timer expires
867 * @param data Data to pass to the provided timer function when the timer
871 extern int32_t ocs_setup_timer(ocs_os_handle_t os, ocs_timer_t *timer, void(*func)(void *arg),
876 * @brief Modify a timer's expiration
878 * @param timer pointer to the structure allocated for this timer
881 extern int32_t ocs_mod_timer(ocs_timer_t *timer, uint32_t timeout_ms);
885 * @brief Queries to see if a timer is pending.
887 * @param timer pointer to the structure allocated for this timer
889 * @return non-zero if the timer is pending
891 extern int32_t ocs_timer_pending(ocs_timer_t *timer);
895 * @brief Remove a pending timer
897 * @param timer pointer to the structure allocated for this timer
900 extern int32_t ocs_del_timer(ocs_timer_t *timer);