Lines Matching refs:timer
864 * @brief Initialize and set a timer
867 * @param timer pointer to the structure allocated for this timer
868 * @param func the function to call when the timer expires
869 * @param data Data to pass to the provided timer function when the timer
873 extern int32_t ocs_setup_timer(ocs_os_handle_t os, ocs_timer_t *timer, void(*func)(void *arg),
878 * @brief Modify a timer's expiration
880 * @param timer pointer to the structure allocated for this timer
883 extern int32_t ocs_mod_timer(ocs_timer_t *timer, uint32_t timeout_ms);
887 * @brief Queries to see if a timer is pending.
889 * @param timer pointer to the structure allocated for this timer
891 * @return non-zero if the timer is pending
893 extern int32_t ocs_timer_pending(ocs_timer_t *timer);
897 * @brief Remove a pending timer
899 * @param timer pointer to the structure allocated for this timer
902 extern int32_t ocs_del_timer(ocs_timer_t *timer);