Home
last modified time | relevance | path

Searched refs:cap_channel (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-latest/components/driver/deprecated/
Dmcpwm_legacy.c798 …ture_enable_channel(mcpwm_unit_t mcpwm_num, mcpwm_capture_channel_id_t cap_channel, const mcpwm_ca… in mcpwm_capture_enable_channel() argument
801 …ESP_RETURN_ON_FALSE(cap_channel < SOC_MCPWM_CAPTURE_CHANNELS_PER_TIMER, ESP_ERR_INVALID_ARG, TAG, … in mcpwm_capture_enable_channel()
802 …ESP_RETURN_ON_FALSE(context[mcpwm_num].cap_isr_func[cap_channel].fn == NULL, ESP_ERR_INVALID_STATE… in mcpwm_capture_enable_channel()
824 mcpwm_ll_capture_enable_channel(hal->dev, cap_channel, true); in mcpwm_capture_enable_channel()
825 mcpwm_ll_capture_enable_negedge(hal->dev, cap_channel, cap_conf->cap_edge & MCPWM_NEG_EDGE); in mcpwm_capture_enable_channel()
826 mcpwm_ll_capture_enable_posedge(hal->dev, cap_channel, cap_conf->cap_edge & MCPWM_POS_EDGE); in mcpwm_capture_enable_channel()
827 mcpwm_ll_capture_set_prescale(hal->dev, cap_channel, cap_conf->cap_prescale); in mcpwm_capture_enable_channel()
829 mcpwm_ll_intr_enable(hal->dev, MCPWM_LL_EVENT_CAPTURE(cap_channel), true); in mcpwm_capture_enable_channel()
830 mcpwm_ll_intr_clear_capture_status(hal->dev, 1 << cap_channel); in mcpwm_capture_enable_channel()
834 context[mcpwm_num].cap_isr_func[cap_channel].fn = cap_conf->capture_cb; in mcpwm_capture_enable_channel()
[all …]
/hal_espressif-latest/components/driver/deprecated/driver/
Dmcpwm.h441 …ture_enable_channel(mcpwm_unit_t mcpwm_num, mcpwm_capture_channel_id_t cap_channel, const mcpwm_ca…
453 …rr_t mcpwm_capture_disable_channel(mcpwm_unit_t mcpwm_num, mcpwm_capture_channel_id_t cap_channel);
Dmcpwm_types_legacy.h264 typedef bool (*cap_isr_cb_t)(mcpwm_unit_t mcpwm, mcpwm_capture_channel_id_t cap_channel, const cap_…