9 #include "qm_soc_regs.h"
27 QM_PWM_MODE_PWM = QM_PWM_MODE_PWM_VALUE
53 void (*callback)(
void *data, uint32_t int_status);
98 const uint32_t lo_count,
const uint32_t hi_count);
115 uint32_t *
const lo_count, uint32_t *
const hi_count);
uint32_t lo_count
Number of cycles the PWM output is driven low.
int qm_pwm_set(const qm_pwm_t pwm, const qm_pwm_id_t id, const uint32_t lo_count, const uint32_t hi_count)
Set the next period values of a PWM channel.
int qm_pwm_restore_context(const qm_pwm_t pwm, const qm_pwm_context_t *const ctx)
Restore PWM peripheral's context.
void * callback_data
Callback user data.
int qm_pwm_start(const qm_pwm_t pwm, const qm_pwm_id_t id)
Start a PWM/timer channel.
qm_pwm_mode_t mode
Pwm mode.
Timer: Free running mode.
qm_pwm_mode_t
QM PWM mode type.
QM PWM / Timer configuration type.
int qm_pwm_set_config(const qm_pwm_t pwm, const qm_pwm_id_t id, const qm_pwm_config_t *const cfg)
Change the configuration of a PWM channel.
int qm_pwm_save_context(const qm_pwm_t pwm, qm_pwm_context_t *const ctx)
Save PWM peripheral's context.
bool mask_interrupt
Mask interrupt.
int qm_pwm_stop(const qm_pwm_t pwm, const qm_pwm_id_t id)
Stop a PWM/timer channel.
qm_pwm_t
Number of PWM / Timer controllers.
int qm_pwm_get(const qm_pwm_t pwm, const qm_pwm_id_t id, uint32_t *const lo_count, uint32_t *const hi_count)
Get the current period values of a PWM channel.
uint32_t hi_count
Number of cycles the PWM output is driven high.