Lines Matching full:pulse

57 /** PWM pin capture captures pulse width. */
60 /** PWM pin capture captures both period and pulse width. */
64 /** PWM pin capture captures a single period/pulse width. */
67 /** PWM pin capture captures period/pulse width continuously. */
385 * @param pulse_cycles Captured PWM pulse width (in clock cycles). HW specific.
399 * @brief PWM driver API call to configure PWM pin period and pulse width.
450 * @brief Set the period and pulse width for a single PWM output.
452 * The PWM period and pulse width will synchronously be set to the new values
457 * PWM period and pulse width. Depending on the hardware, changing the PWM
458 * period and/or pulse width may cause a glitch in the generated PWM signal.
464 * Passing 0 as @p pulse will cause the pin to be driven to a constant
466 * Passing a non-zero @p pulse equal to @p period will cause the pin
472 * @param pulse Pulse width (in clock cycles) set to the PWM. HW specific.
476 * @retval -EINVAL If pulse > period.
480 uint32_t period, uint32_t pulse,
485 uint32_t pulse, pwm_flags_t flags) in z_impl_pwm_set_cycles() argument
490 if (pulse > period) { in z_impl_pwm_set_cycles()
494 return api->set_cycles(dev, channel, period, pulse, flags); in z_impl_pwm_set_cycles()
522 * @brief Set the period and pulse width in nanoseconds for a single PWM output.
530 * @param pulse Pulse width (in nanoseconds) set to the PWM.
534 * @retval -ENOTSUP If requested period or pulse cycles are not supported.
538 uint32_t period, uint32_t pulse, pwm_flags_t flags) in pwm_set() argument
555 pulse_cycles = (pulse * cycles_per_sec) / NSEC_PER_SEC; in pwm_set()
565 * @brief Set the period and pulse width in nanoseconds from a struct
570 * pwm_set(spec->dev, spec->channel, period, pulse, spec->flags)
577 * @param pulse Pulse width (in nanoseconds) set to the PWM.
584 uint32_t pulse) in pwm_set_dt() argument
586 return pwm_set(spec->dev, spec->channel, period, pulse, spec->flags); in pwm_set_dt()
590 * @brief Set the period and pulse width in nanoseconds from a struct
595 * pwm_set(spec->dev, spec->channel, spec->period, pulse, spec->flags)
598 * @param pulse Pulse width (in nanoseconds) set to the PWM.
605 uint32_t pulse) in pwm_set_pulse_dt() argument
607 return pwm_set(spec->dev, spec->channel, spec->period, pulse, in pwm_set_pulse_dt()
679 * @brief Configure PWM period/pulse width capture for a single PWM input.
724 * @brief Enable PWM period/pulse width capture for a single PWM input.
759 * @brief Disable PWM period/pulse width capture for a single PWM input.
790 * @brief Capture a single PWM period/pulse width in clock cycles for a single
806 * @param[out] pulse Pointer to the memory to store the captured PWM pulse width
818 uint32_t *pulse, k_timeout_t timeout);
821 * @brief Capture a single PWM period/pulse width in microseconds for a single
837 * @param[out] pulse Pointer to the memory to store the captured PWM pulse width
850 uint64_t *pulse, k_timeout_t timeout) in pwm_capture_usec() argument
867 err = pwm_cycles_to_usec(dev, channel, pulse_cycles, pulse); in pwm_capture_usec()
876 * @brief Capture a single PWM period/pulse width in nanoseconds for a single
892 * @param[out] pulse Pointer to the memory to store the captured PWM pulse width
905 uint64_t *pulse, k_timeout_t timeout) in pwm_capture_nsec() argument
922 err = pwm_cycles_to_nsec(dev, channel, pulse_cycles, pulse); in pwm_capture_nsec()