PebbleOS v4.43.0-108-gde23235b2
Loading...
Searching...
No Matches
pbl_pwm_controller_ops Struct Reference

PWM controller driver operations. More...

#include <pwm.h>

Data Fields

int(* apply )(const struct pbl_pwm_controller *ctrl, uint8_t channel, const struct pbl_pwm_state *state)
 Apply a validated state to a channel, rounding times down.
 

Detailed Description

PWM controller driver operations.

Field Documentation

◆ apply

int(* pbl_pwm_controller_ops::apply) (const struct pbl_pwm_controller *ctrl, uint8_t channel, const struct pbl_pwm_state *state)

Apply a validated state to a channel, rounding times down.

Returns 0, -EINVAL for a state the controller cannot generate, or another negative errno.


The documentation for this struct was generated from the following file: