Lines Matching refs:cap_channel

798 …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()
835 context[mcpwm_num].cap_isr_func[cap_channel].args = cap_conf->user_data; in mcpwm_capture_enable_channel()
847 …err_t mcpwm_capture_disable_channel(mcpwm_unit_t mcpwm_num, mcpwm_capture_channel_id_t cap_channel) in mcpwm_capture_disable_channel() argument
850 …ESP_RETURN_ON_FALSE(cap_channel < SOC_MCPWM_CAPTURE_CHANNELS_PER_TIMER, ESP_ERR_INVALID_ARG, TAG, … in mcpwm_capture_disable_channel()
855 mcpwm_ll_capture_enable_channel(hal->dev, cap_channel, false); in mcpwm_capture_disable_channel()
856 mcpwm_ll_intr_enable(hal->dev, MCPWM_LL_EVENT_CAPTURE(cap_channel), false); in mcpwm_capture_disable_channel()
860 context[mcpwm_num].cap_isr_func[cap_channel].fn = NULL; in mcpwm_capture_disable_channel()
861 context[mcpwm_num].cap_isr_func[cap_channel].args = NULL; in mcpwm_capture_disable_channel()