Lines Matching refs:period
104 uint32_t period; member
157 .period = DT_PWMS_PERIOD_BY_NAME(node_id, name), \
262 .period = DT_PWMS_PERIOD_BY_IDX(node_id, idx), \
480 uint32_t period, uint32_t pulse,
484 uint32_t channel, uint32_t period, 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()
538 uint32_t period, uint32_t pulse, pwm_flags_t flags) in pwm_set() argument
550 period_cycles = (period * cycles_per_sec) / NSEC_PER_SEC; in pwm_set()
583 static inline int pwm_set_dt(const struct pwm_dt_spec *spec, uint32_t period, in pwm_set_dt() argument
586 return pwm_set(spec->dev, spec->channel, period, pulse, spec->flags); in pwm_set_dt()
607 return pwm_set(spec->dev, spec->channel, spec->period, pulse, in pwm_set_pulse_dt()
817 pwm_flags_t flags, uint32_t *period,
849 pwm_flags_t flags, uint64_t *period, in pwm_capture_usec() argument
862 err = pwm_cycles_to_usec(dev, channel, period_cycles, period); in pwm_capture_usec()
904 pwm_flags_t flags, uint64_t *period, in pwm_capture_nsec() argument
917 err = pwm_cycles_to_nsec(dev, channel, period_cycles, period); in pwm_capture_nsec()