|
Nexus Embedded Platform 0.1.0
Statically assembled reusable embedded mechanisms
|
Fixed timer/channel PWM with one shared base configuration. More...
#include "nexus/core/status.h"Go to the source code of this file.
Data Structures | |
| struct | nx_pwm_state_t |
| PWM counts refer to the fixed declared post-prescaler timer clock. More... | |
| struct | nx_pwm_ops_t |
| Shared read-only methods using one provider state. More... | |
| struct | nx_pwm_port |
| Immutable interface pointing to caller-owned state. More... | |
Typedefs | |
| typedef struct nx_pwm_port | nx_pwm_port_t |
Functions | |
| 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. | |
| 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_stop (const nx_pwm_port_t *port) |
| Stop PWM at its declared Board inactive electrical level. | |
| 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. | |
Fixed timer/channel PWM with one shared base configuration.
Definition in file timer.h.
| typedef struct nx_pwm_port nx_pwm_port_t |
| 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.
| [in,out] | port | Fixed timer/channel with one serialized writer. |
| [in] | period_ticks | Positive maintained shared-base period. |
| [in] | duty_ticks | Zero through period_ticks, inclusive. |
| nx_result_t nx_pwm_port_start | ( | const nx_pwm_port_t * | port | ) |
Enable a previously configured fixed PWM output.
| [in,out] | port | Execution owner after Board inactive level setup. |
| 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.
| [in] | port | Fixed initialized channel. |
| [out] | state | Staged counts, clock and running state. |
| nx_result_t nx_pwm_port_stop | ( | const nx_pwm_port_t * | port | ) |
Stop PWM at its declared Board inactive electrical level.
| [in,out] | port | Quiesced execution owner; no concurrent set/start. |