/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_sync_example/main/ |
D | mcpwm_sync_example.c | 66 .timer_val = 0, in app_main() 136 sync_conf.timer_val = 0; // no phase applied in app_main() 138 …sync_conf.timer_val = 900; // fill the counter with 90.0% of period will cause next pulse being d… in app_main() 140 …sync_conf.timer_val = 800; // fill the counter with 80.0% of period will cause next pulse being d… in app_main()
|
/hal_espressif-3.6.0/components/esp_timer/src/ |
D | esp_timer_impl_frc_legacy.c | 184 uint32_t timer_val; in esp_timer_impl_get_time() local 191 timer_val = REG_READ(FRC_TIMER_COUNT_REG(1)); in esp_timer_impl_get_time() 200 if (REG_READ(FRC_TIMER_COUNT_REG(1)) > timer_val && in esp_timer_impl_get_time() 211 + timer_val / ticks_per_us; in esp_timer_impl_get_time()
|
/hal_espressif-3.6.0/components/driver/ |
D | timer.c | 49 …_err_t timer_get_counter_value(timer_group_t group_num, timer_idx_t timer_num, uint64_t *timer_val) in timer_get_counter_value() argument 53 ESP_RETURN_ON_FALSE(timer_val != NULL, ESP_ERR_INVALID_ARG, TIMER_TAG, TIMER_PARAM_ADDR_ERROR); in timer_get_counter_value() 56 timer_hal_get_counter_value(&(p_timer_obj[group_num][timer_num]->hal), timer_val); in timer_get_counter_value() 67 uint64_t timer_val; in timer_get_counter_time_sec() local 68 esp_err_t err = timer_get_counter_value(group_num, timer_num, &timer_val); in timer_get_counter_time_sec() 72 *time = (double)timer_val * div / rtc_clk_apb_freq_get(); in timer_get_counter_time_sec() 75 *time = (double)timer_val * div / ((int)rtc_clk_xtal_freq_get() * 1000000); in timer_get_counter_time_sec()
|
D | mcpwm.c | 933 set_phase = mcpwm_ll_timer_get_peak(hal->dev, timer_num, false) * sync_conf->timer_val / 1000; in mcpwm_sync_configure()
|
/hal_espressif-3.6.0/components/hal/include/hal/ |
D | timer_hal.h | 109 …define timer_hal_get_counter_value(hal, timer_val) timer_ll_get_counter_value((hal)->dev, (hal)->… argument
|
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/ |
D | timer_ll.h | 109 …NE_ATTR void timer_ll_get_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t *timer_val) in timer_ll_get_counter_value() argument 113 …*timer_val = ((uint64_t) hw->hw_timer[timer_num].hi.tx_hi << 32) | (hw->hw_timer[timer_num].lo.tx_… in timer_ll_get_counter_value()
|
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/ |
D | timer_ll.h | 109 …NE_ATTR void timer_ll_get_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t *timer_val) in timer_ll_get_counter_value() argument 113 …*timer_val = ((uint64_t) hw->hw_timer[timer_num].hi.tn_hi << 32) | (hw->hw_timer[timer_num].lo.tn_… in timer_ll_get_counter_value()
|
/hal_espressif-3.6.0/components/hal/esp32/include/hal/ |
D | timer_ll.h | 104 …NE_ATTR void timer_ll_get_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t *timer_val) in timer_ll_get_counter_value() argument 108 …*timer_val = ((uint64_t) hw->hw_timer[timer_num].cnt_high << 32) | (hw->hw_timer[timer_num].cnt_lo… in timer_ll_get_counter_value()
|
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/ |
D | timer_ll.h | 109 …NE_ATTR void timer_ll_get_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t *timer_val) in timer_ll_get_counter_value() argument 113 …*timer_val = ((uint64_t) hw->hw_timer[timer_num].hi.tx_hi << 32) | (hw->hw_timer[timer_num].lo.tx_… in timer_ll_get_counter_value()
|
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/ |
D | timer_ll.h | 104 …NE_ATTR void timer_ll_get_counter_value(timg_dev_t *hw, timer_idx_t timer_num, uint64_t *timer_val) in timer_ll_get_counter_value() argument 108 …*timer_val = ((uint64_t) hw->hw_timer[timer_num].hi.tx_hi << 32) | (hw->hw_timer[timer_num].lo.tx_… in timer_ll_get_counter_value()
|
/hal_espressif-3.6.0/components/driver/test/ |
D | test_pwm.c | 363 .timer_val = 200, in mcpwm_sync_test() 436 .timer_val = 0, in mcpwm_swsync_test() 440 sync_conf.timer_val = 1000 - test_sync_phase; in mcpwm_swsync_test()
|
D | test_timer.c | 61 uint64_t timer_val; in test_timer_group_isr_cb() local 69 timer_get_counter_value(timer_group, timer_idx, &timer_val); in test_timer_group_isr_cb() 75 timer_get_counter_value(timer_group, timer_idx, &timer_val); in test_timer_group_isr_cb() 83 evt.timer_counter_value = timer_val; in test_timer_group_isr_cb()
|
/hal_espressif-3.6.0/components/driver/include/driver/ |
D | timer.h | 54 …err_t timer_get_counter_value(timer_group_t group_num, timer_idx_t timer_num, uint64_t *timer_val);
|
D | mcpwm.h | 322 …uint32_t timer_val; /*!<Counter value to be set after sync, in 0 ~ 999, uni… member
|
/hal_espressif-3.6.0/docs/en/api-reference/peripherals/ |
D | mcpwm.rst | 129 .timer_val = 0,
|