Lines Matching full:capture

39  * @brief Capture state when in 4-channel support mode
49 * that is used to capture the end of the pulse.
69 /* When PWM capture is done by resetting the counter with UIF then the
70 * first capture is always nonsense, second is nonsense when polarity changed
84 struct pwm_stm32_capture_data capture; member
143 /** Channel to capture get function mapping. */
154 /** Channel to enable capture interrupt mapping. */
160 /** Channel to disable capture interrupt mapping. */
166 /** Channel to is capture active flag mapping. */
176 /** Channel to clearing capture flag mapping. */
340 LOG_ERR("Cannot set PWM output, capture in progress"); in pwm_stm32_set_cycles()
473 LOG_ERR("Could not initialize main channel for PWM capture"); in init_capture_channels()
482 LOG_ERR("Could not initialize complimentary channel for PWM capture"); in init_capture_channels()
495 * Capture is implemented in two different ways, depending on the in pwm_stm32_configure_capture()
496 * four-channel-capture-support setting in the node. in pwm_stm32_configure_capture()
498 * Only two channels (1 and 2) are available for capture. It uses in pwm_stm32_configure_capture()
501 * All four channels are available for capture. Instead of the in pwm_stm32_configure_capture()
509 struct pwm_stm32_capture_data *cpt = &data->capture; in pwm_stm32_configure_capture()
514 LOG_ERR("PWM capture only supported on first two channels"); in pwm_stm32_configure_capture()
519 LOG_ERR("PWM capture only exists on channels 1, 2, 3 and 4."); in pwm_stm32_configure_capture()
526 LOG_ERR("PWM capture already in progress"); in pwm_stm32_configure_capture()
531 LOG_ERR("No PWM capture type specified"); in pwm_stm32_configure_capture()
537 LOG_ERR("Timer does not support slave mode for PWM capture"); in pwm_stm32_configure_capture()
579 struct pwm_stm32_capture_data *cpt = &data->capture; in pwm_stm32_enable_capture()
583 LOG_ERR("PWM capture only supported on first two channels"); in pwm_stm32_enable_capture()
588 LOG_ERR("PWM capture only exists on channels 1, 2, 3 and 4."); in pwm_stm32_enable_capture()
595 LOG_ERR("PWM capture already active"); in pwm_stm32_enable_capture()
599 if (!data->capture.callback) { in pwm_stm32_enable_capture()
600 LOG_ERR("PWM capture not configured"); in pwm_stm32_enable_capture()
606 data->capture.skip_irq = cfg->four_channel_capture_support ? 0 : SKIPPED_PWM_CAPTURES; in pwm_stm32_enable_capture()
607 data->capture.overflows = 0u; in pwm_stm32_enable_capture()
630 LOG_ERR("PWM capture only supported on first two channels"); in pwm_stm32_disable_capture()
635 LOG_ERR("PWM capture only exists on channels 1, 2, 3 and 4."); in pwm_stm32_disable_capture()
655 struct pwm_stm32_capture_data *cpt = &data->capture; in pwm_stm32_isr()
718 /* The end of the period. Both capture channels should now contain in pwm_stm32_isr()
729 /* Still waiting for a complete capture */ in pwm_stm32_isr()