AliOS Things API HAL SOC PWM Guide - Shaofa/AliOS-Things-Certification-Manual GitHub Wiki
int32_t hal_pwm_init(pwm_dev_t *pwm)
-
Description
Initialises a PWM pin
-
Parameters
IN/OUT NAME DESC [in] pwm the PWM device -
Returns
0 : on success, EIO : if an error occurred with any step
int32_t hal_pwm_start(pwm_dev_t *pwm)
-
Description
Starts Pulse-Width Modulation signal output on a PWM pin
-
Parameters
IN/OUT NAME DESC [in] pwm the PWM device -
Returns
0 : on success, EIO : if an error occurred with any step
int32_t hal_pwm_stop(pwm_dev_t *pwm)
-
Description
Stops output on a PWM pin
-
Parameters
IN/OUT NAME DESC [in] pwm the PWM device -
Returns
0 : on success, EIO : if an error occurred with any step
int32_t hal_pwm_finalize(pwm_dev_t *pwm)
-
Description
finalize output on a PWM pin
-
Parameters
IN/OUT NAME DESC [in] pwm the PWM device -
Returns
0 : on success, EIO : if an error occurred with any step