Lines Matching full:pair
142 uint32_t pair = channel; in pwm_numaker_configure_capture() local
146 data->capture[pair].callback = cb; in pwm_numaker_configure_capture()
147 data->capture[pair].user_data = user_data; in pwm_numaker_configure_capture()
149 if (data->capture[pair].is_busy) { in pwm_numaker_configure_capture()
150 LOG_ERR("Capture already active on this channel %d", pair); in pwm_numaker_configure_capture()
159 data->capture[pair].single_mode = false; in pwm_numaker_configure_capture()
161 data->capture[pair].single_mode = true; in pwm_numaker_configure_capture()
165 data->capture[pair].pulse_capture = false; in pwm_numaker_configure_capture()
168 data->capture[pair].curr_edge_mode = EPWM_CAPTURE_INT_FALLING_LATCH; in pwm_numaker_configure_capture()
169 data->capture[pair].next_edge_mode = EPWM_CAPTURE_INT_FALLING_LATCH; in pwm_numaker_configure_capture()
171 data->capture[pair].curr_edge_mode = EPWM_CAPTURE_INT_RISING_LATCH; in pwm_numaker_configure_capture()
172 data->capture[pair].next_edge_mode = EPWM_CAPTURE_INT_RISING_LATCH; in pwm_numaker_configure_capture()
175 data->capture[pair].pulse_capture = true; in pwm_numaker_configure_capture()
178 data->capture[pair].curr_edge_mode = EPWM_CAPTURE_INT_FALLING_LATCH; in pwm_numaker_configure_capture()
179 data->capture[pair].next_edge_mode = EPWM_CAPTURE_INT_RISING_LATCH; in pwm_numaker_configure_capture()
181 data->capture[pair].curr_edge_mode = EPWM_CAPTURE_INT_RISING_LATCH; in pwm_numaker_configure_capture()
182 data->capture[pair].next_edge_mode = EPWM_CAPTURE_INT_FALLING_LATCH; in pwm_numaker_configure_capture()
194 uint32_t pair = channel; in pwm_numaker_enable_capture() local
200 if (!data->capture[pair].callback) { in pwm_numaker_enable_capture()
205 if (data->capture[pair].is_busy) { in pwm_numaker_enable_capture()
206 LOG_ERR("Capture already active on this channel %d", pair); in pwm_numaker_enable_capture()
210 data->capture[pair].is_busy = true; in pwm_numaker_enable_capture()
225 EPWM_EnableCaptureInt(epwm, channel, data->capture[pair].curr_edge_mode); in pwm_numaker_enable_capture()