Zephyr Project API
3.2.0
A Scalable Open Source RTOS
|
Functions | |
static int | pwm_pin_set_cycles (const struct device *dev, uint32_t channel, uint32_t period, uint32_t pulse, pwm_flags_t flags) |
Set the period and pulse width for a single PWM output. More... | |
static int | pwm_pin_set_usec (const struct device *dev, uint32_t channel, uint32_t period, uint32_t pulse, pwm_flags_t flags) |
Set the period and pulse width for a single PWM output. More... | |
static int | pwm_pin_set_nsec (const struct device *dev, uint32_t channel, uint32_t period, uint32_t pulse, pwm_flags_t flags) |
Set the period and pulse width for a single PWM output. More... | |
static int | pwm_pin_cycles_to_usec (const struct device *dev, uint32_t channel, uint32_t cycles, uint64_t *usec) |
Convert from PWM cycles to microseconds. More... | |
static int | pwm_pin_cycles_to_nsec (const struct device *dev, uint32_t channel, uint32_t cycles, uint64_t *nsec) |
Convert from PWM cycles to nanoseconds. More... | |
static int | pwm_pin_configure_capture (const struct device *dev, uint32_t channel, pwm_flags_t flags, pwm_capture_callback_handler_t cb, void *user_data) |
Configure PWM period/pulse width capture for a single PWM input. More... | |
static int | pwm_pin_enable_capture (const struct device *dev, uint32_t channel) |
Enable PWM period/pulse width capture for a single PWM input. More... | |
static int | pwm_pin_disable_capture (const struct device *dev, uint32_t channel) |
Disable PWM period/pulse width capture for a single PWM input. More... | |
static int | pwm_pin_capture_cycles (const struct device *dev, uint32_t channel, pwm_flags_t flags, uint32_t *period, uint32_t *pulse, k_timeout_t timeout) |
Capture a single PWM period/pulse width in clock cycles for a single PWM input. More... | |
static int | pwm_pin_capture_usec (const struct device *dev, uint32_t channel, pwm_flags_t flags, uint64_t *period, uint64_t *pulse, k_timeout_t timeout) |
Capture a single PWM period/pulse width in microseconds for a single PWM input. More... | |
static int | pwm_pin_capture_nsec (const struct device *dev, uint32_t channel, pwm_flags_t flags, uint64_t *period, uint64_t *pulse, k_timeout_t timeout) |
Capture a single PWM period/pulse width in nanoseconds for a single PWM input. More... | |
|
inlinestatic |
#include <include/zephyr/drivers/pwm.h>
Capture a single PWM period/pulse width in clock cycles for a single PWM input.
|
inlinestatic |
#include <include/zephyr/drivers/pwm.h>
Capture a single PWM period/pulse width in nanoseconds for a single PWM input.
|
inlinestatic |
#include <include/zephyr/drivers/pwm.h>
Capture a single PWM period/pulse width in microseconds for a single PWM input.
|
inlinestatic |
#include <include/zephyr/drivers/pwm.h>
Configure PWM period/pulse width capture for a single PWM input.
|
inlinestatic |
#include <include/zephyr/drivers/pwm.h>
Convert from PWM cycles to nanoseconds.
|
inlinestatic |
#include <include/zephyr/drivers/pwm.h>
Convert from PWM cycles to microseconds.
#include <include/zephyr/drivers/pwm.h>
Disable PWM period/pulse width capture for a single PWM input.
#include <include/zephyr/drivers/pwm.h>
Enable PWM period/pulse width capture for a single PWM input.
|
inlinestatic |
#include <include/zephyr/drivers/pwm.h>
Set the period and pulse width for a single PWM output.
|
inlinestatic |
#include <include/zephyr/drivers/pwm.h>
Set the period and pulse width for a single PWM output.
|
inlinestatic |
#include <include/zephyr/drivers/pwm.h>
Set the period and pulse width for a single PWM output.