|
TuyaOS
|
Common process - adapter the pwm api 更多...
#include "tuya_cloud_types.h"

函数 | |
| OPERATE_RET | tkl_pwm_deinit (TUYA_PWM_NUM_E ch_id) |
| pwm deinit 更多... | |
| OPERATE_RET | tkl_pwm_duty_set (TUYA_PWM_NUM_E ch_id, UINT32_T duty) |
| pwm duty set 更多... | |
| OPERATE_RET | tkl_pwm_frequency_set (TUYA_PWM_NUM_E ch_id, UINT32_T frequency) |
| pwm frequency set 更多... | |
| OPERATE_RET | tkl_pwm_info_get (TUYA_PWM_NUM_E ch_id, TUYA_PWM_BASE_CFG_T *info) |
| get pwm info 更多... | |
| OPERATE_RET | tkl_pwm_info_set (TUYA_PWM_NUM_E ch_id, CONST TUYA_PWM_BASE_CFG_T *info) |
| set pwm info 更多... | |
| OPERATE_RET | tkl_pwm_init (TUYA_PWM_NUM_E ch_id, CONST TUYA_PWM_BASE_CFG_T *cfg) |
| pwm init 更多... | |
| OPERATE_RET | tkl_pwm_multichannel_start (TUYA_PWM_NUM_E *ch_id, UINT8_T num) |
| multiple pwm channel start 更多... | |
| OPERATE_RET | tkl_pwm_multichannel_stop (TUYA_PWM_NUM_E *ch_id, UINT8_T num) |
| multiple pwm channel stop 更多... | |
| OPERATE_RET | tkl_pwm_polarity_set (TUYA_PWM_NUM_E ch_id, TUYA_PWM_POLARITY_E polarity) |
| pwm polarity set 更多... | |
| OPERATE_RET | tkl_pwm_start (TUYA_PWM_NUM_E ch_id) |
| pwm start 更多... | |
| OPERATE_RET | tkl_pwm_stop (TUYA_PWM_NUM_E ch_id) |
| pwm stop 更多... | |
Common process - adapter the pwm api
| OPERATE_RET tkl_pwm_deinit | ( | TUYA_PWM_NUM_E | ch_id | ) |
pwm deinit
| [in] | ch_id | pwm channal id, id index starts at 0 |
| OPERATE_RET tkl_pwm_duty_set | ( | TUYA_PWM_NUM_E | ch_id, |
| UINT32_T | duty | ||
| ) |
pwm duty set
| [in] | ch_id | pwm channal id, id index starts at 0 |
| [in] | duty | pwm duty cycle |
| OPERATE_RET tkl_pwm_frequency_set | ( | TUYA_PWM_NUM_E | ch_id, |
| UINT32_T | frequency | ||
| ) |
pwm frequency set
| [in] | ch_id | pwm channal id, id index starts at 0 |
| [in] | frequency | pwm frequency |
| OPERATE_RET tkl_pwm_info_get | ( | TUYA_PWM_NUM_E | ch_id, |
| TUYA_PWM_BASE_CFG_T * | info | ||
| ) |
get pwm info
| [in] | ch_id | pwm channal id, id index starts at 0 |
| [out] | info | pwm info |
| OPERATE_RET tkl_pwm_info_set | ( | TUYA_PWM_NUM_E | ch_id, |
| CONST TUYA_PWM_BASE_CFG_T * | info | ||
| ) |
set pwm info
| [in] | ch_id | pwm channal id, id index starts at 0 |
| [in] | info | pwm info |
| OPERATE_RET tkl_pwm_init | ( | TUYA_PWM_NUM_E | ch_id, |
| CONST TUYA_PWM_BASE_CFG_T * | cfg | ||
| ) |
pwm init
| [in] | ch_id | pwm channal id, id index starts at 0 |
| [in] | cfg | pwm config |
| OPERATE_RET tkl_pwm_multichannel_start | ( | TUYA_PWM_NUM_E * | ch_id, |
| UINT8_T | num | ||
| ) |
multiple pwm channel start
| [in] | ch_id | pwm channal id list |
| [in] | num | : num of pwm channal to start |
| OPERATE_RET tkl_pwm_multichannel_stop | ( | TUYA_PWM_NUM_E * | ch_id, |
| UINT8_T | num | ||
| ) |
multiple pwm channel stop
| [in] | ch_id | pwm channal id list |
| [in] | num | : num of pwm channal to stop |
| OPERATE_RET tkl_pwm_polarity_set | ( | TUYA_PWM_NUM_E | ch_id, |
| TUYA_PWM_POLARITY_E | polarity | ||
| ) |
pwm polarity set
| [in] | ch_id | pwm channal id, id index starts at 0 |
| [in] | polarity | pwm polarity |
| OPERATE_RET tkl_pwm_start | ( | TUYA_PWM_NUM_E | ch_id | ) |
pwm start
| [in] | ch_id | pwm channal id, id index starts at 0 |
| OPERATE_RET tkl_pwm_stop | ( | TUYA_PWM_NUM_E | ch_id | ) |
pwm stop
| [in] | ch_id | pwm channal id, id index starts at 0 |