Home
last modified time | relevance | path

Searched refs:sync_conf (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/examples/peripherals/mcpwm/mcpwm_sync_example/main/
Dmcpwm_sync_example.c64 mcpwm_sync_config_t sync_conf = { in app_main() local
69 ESP_ERROR_CHECK(mcpwm_sync_configure(TARGET_MCPWM_UNIT, MCPWM_TIMER_0, &sync_conf)); in app_main()
70 ESP_ERROR_CHECK(mcpwm_sync_configure(TARGET_MCPWM_UNIT, MCPWM_TIMER_1, &sync_conf)); in app_main()
71 ESP_ERROR_CHECK(mcpwm_sync_configure(TARGET_MCPWM_UNIT, MCPWM_TIMER_2, &sync_conf)); in app_main()
113 sync_conf.sync_sig = MCPWM_SELECT_TIMER0_SYNC; in app_main()
114 mcpwm_sync_configure(MCPWM_UNIT_0, MCPWM_TIMER_0, &sync_conf); in app_main()
115 mcpwm_sync_configure(MCPWM_UNIT_0, MCPWM_TIMER_1, &sync_conf); in app_main()
116 mcpwm_sync_configure(MCPWM_UNIT_0, MCPWM_TIMER_2, &sync_conf); in app_main()
135 sync_conf.sync_sig = MCPWM_SELECT_GPIO_SYNC0; in app_main()
136 sync_conf.timer_val = 0; // no phase applied in app_main()
[all …]
/hal_espressif-3.6.0/components/driver/test/
Dtest_pwm.c361 mcpwm_sync_config_t sync_conf = { in mcpwm_sync_test() local
366 TEST_ESP_OK(mcpwm_sync_configure(unit, timer, &sync_conf)); in mcpwm_sync_test()
434 mcpwm_sync_config_t sync_conf = { in mcpwm_swsync_test() local
439 TEST_ESP_OK(mcpwm_sync_configure(unit, MCPWM_TIMER_1, &sync_conf)); in mcpwm_swsync_test()
440 sync_conf.timer_val = 1000 - test_sync_phase; in mcpwm_swsync_test()
441 TEST_ESP_OK(mcpwm_sync_configure(unit, MCPWM_TIMER_2, &sync_conf)); in mcpwm_swsync_test()
/hal_espressif-3.6.0/components/driver/
Dmcpwm.c923 …nc_configure(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, const mcpwm_sync_config_t *sync_conf) in mcpwm_sync_configure() argument
926 …ESP_RETURN_ON_FALSE(sync_conf->sync_sig <= MCPWM_SELECT_GPIO_SYNC2, ESP_ERR_INVALID_ARG, TAG, "inv… in mcpwm_sync_configure()
930 mcpwm_ll_timer_set_sync_phase_direction(hal->dev, timer_num, sync_conf->count_direction); in mcpwm_sync_configure()
933 set_phase = mcpwm_ll_timer_get_peak(hal->dev, timer_num, false) * sync_conf->timer_val / 1000; in mcpwm_sync_configure()
935 if (sync_conf->sync_sig == MCPWM_SELECT_NO_INPUT){ in mcpwm_sync_configure()
937 } else if (sync_conf->sync_sig <= MCPWM_SELECT_TIMER2_SYNC) { in mcpwm_sync_configure()
938 …mcpwm_ll_timer_set_timer_synchro(hal->dev, timer_num, sync_conf->sync_sig - MCPWM_SELECT_TIMER0_SY… in mcpwm_sync_configure()
940 …mcpwm_ll_timer_set_gpio_synchro(hal->dev, timer_num, sync_conf->sync_sig - MCPWM_SELECT_GPIO_SYNC0… in mcpwm_sync_configure()
/hal_espressif-3.6.0/docs/en/api-reference/peripherals/
Dmcpwm.rst127 mcpwm_sync_config_t sync_conf = {
132 mcpwm_sync_configure(TARGET_MCPWM_UNIT, MCPWM_TIMER_0, &sync_conf);
133 mcpwm_sync_configure(TARGET_MCPWM_UNIT, MCPWM_TIMER_1, &sync_conf);
134 mcpwm_sync_configure(TARGET_MCPWM_UNIT, MCPWM_TIMER_2, &sync_conf);
/hal_espressif-3.6.0/components/driver/include/driver/
Dmcpwm.h853 …c_configure(mcpwm_unit_t mcpwm_num, mcpwm_timer_t timer_num, const mcpwm_sync_config_t *sync_conf);