3#include "mspm0_conf.hpp"
5#include "ti_msp_dl_config.h"
16 DL_TIMER_CC_INDEX channel;
32 DL_TIMER_CC_INDEX channel_;
37#define MSPM0_PWM_CH(name, ch) \
38 LibXR::MSPM0PWM::Resources \
40 name##_INST, DL_TIMER_CC_##ch##_INDEX, \
41 name##_INST_CLK_FREQ* LibXR::MSPM0Config::name##_INST_CLK_DIV*( \
42 LibXR::MSPM0Config::name##_INST_CLK_PSC + 1) \
ErrorCode Disable()
Disables the PWM output. 禁用 PWM 输出。
ErrorCode SetDutyCycle(float value)
Sets the duty cycle of the PWM signal. 设置 PWM 信号的占空比。
ErrorCode SetConfig(Configuration config)
Configures the PWM settings. 配置 PWM 参数。
ErrorCode Enable()
Enables the PWM output. 启用 PWM 输出。
Abstract base class for PWM (Pulse Width Modulation) control. PWM(脉冲宽度调制)控制的抽象基类。
Configuration parameters for PWM. PWM 配置参数。