Function esp_idf_hal::sys::timer_set_counter_mode
source ยท pub unsafe extern "C" fn timer_set_counter_mode(
group_num: u32,
timer_num: u32,
counter_dir: u32,
) -> i32
Expand description
@brief Set counting mode for hardware timer.
@param group_num Timer group number, 0 for TIMERG0 or 1 for TIMERG1 @param timer_num Timer index, 0 for hw_timer[0] & 1 for hw_timer[1] @param counter_dir Counting direction of timer, count-up or count-down
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error