luat_soc_sdk_2024 V1.0
|
#include "luat_base.h"
结构体 | |
struct | luat_pwm_conf |
PWM控制参数 更多... | |
类型定义 | |
typedef struct luat_pwm_conf | luat_pwm_conf_t |
PWM控制参数 | |
函数 | |
int | luat_pwm_set_callback (int channel, CBFuncEx_t callback, void *param) |
设置PWM输出完成回调,只有open时,pnum不为0才有回调,必须在pwm open前设置 | |
int | luat_pwm_open (int channel, size_t period, size_t pulse, int pnum) |
打开pwm 通道 | |
int | luat_pwm_setup (luat_pwm_conf_t *conf) |
配置pwm 参数 | |
int | luat_pwm_capture (int channel, int freq) |
获取pwm 频率 本功能暂未实现 | |
int | luat_pwm_close (int channel) |
关闭pwm 接口 | |
int | luat_pwm_update_dutycycle (int channel, size_t pulse) |
修改占空比 | |