Small vendor-independent result vocabulary.
nx_result_t
Operation result; success at submission means admission only.
Shared read-only methods using one provider state.
nx_result_t(* stop)(void *context)
nx_result_t(* set)(void *context, uint32_t period_ticks, uint32_t duty_ticks)
nx_result_t(* start)(void *context)
nx_result_t(* state)(const void *context, nx_pwm_state_t *state)
Immutable interface pointing to caller-owned state.
PWM counts refer to the fixed declared post-prescaler timer clock.
nx_result_t nx_pwm_port_state(const nx_pwm_port_t *port, nx_pwm_state_t *state)
Query staged PWM counts and selected timer clock.
nx_result_t nx_pwm_port_stop(const nx_pwm_port_t *port)
Stop PWM at its declared Board inactive electrical level.
nx_result_t nx_pwm_port_start(const nx_pwm_port_t *port)
Enable a previously configured fixed PWM output.
nx_result_t nx_pwm_port_set(const nx_pwm_port_t *port, uint32_t period_ticks, uint32_t duty_ticks)
Atomically stage a reviewed fixed-base PWM duty.
struct nx_pwm_port nx_pwm_port_t