天嵌二次封装库使用手册
V2.1.2
|
宏定义 | |
#define | PWM_API |
函数 | |
PWM_API int | tq_pwm_enable (int node, int enable) |
PWM 开启/关闭 更多... | |
PWM_API int | tq_set_pwm (int node, unsigned long period, unsigned long duty_cycle) |
设置 PWM 的周期、占空比 更多... | |
PWM_API int | tq_pwm_test () |
测试pwm_enable()和tq_set_pwm()这两个函数 更多... | |
PWM_API int tq_pwm_enable | ( | int | node, |
int | enable | ||
) |
PWM 开启/关闭
node | 设备节点 |
enable | 状态,1:启动;0:关闭 |
PWM_API int tq_pwm_test | ( | ) |
测试pwm_enable()和tq_set_pwm()这两个函数
PWM_API int tq_set_pwm | ( | int | node, |
unsigned long | period, | ||
unsigned long | duty_cycle | ||
) |
设置 PWM 的周期、占空比
node | 设备节点 |
period | pwm周期 |
duty_cycle | 占空比 |