-
Notifications
You must be signed in to change notification settings - Fork 1.1k
AliOS Things API HAL SOC PWM Guide
librae8226 edited this page Mar 1, 2018
·
1 revision
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
| Home | Tutorial | Hardware | Porting Guide | Utilities | API Reference | Technical Docs | Certification |
Crafted with ❤️ by AliOS Things Team.