|
InPlay API
|
HAL_PWM. More...
Functions | |
| void * | hal_pwm_open (int id, int prio, void *arg, void(*callback)(void *)) |
| Open PWM driver. More... | |
| int | hal_pwm_close (void *hdl) |
| Close PWM driver. More... | |
| uint32_t | hal_pwm_us_to_ticks (uint32_t us) |
| Convert us to PWM ticks. More... | |
| int | hal_pwm_start (void *hdl, uint32_t period_ticks, uint32_t high_ticks) |
| Start PWM More... | |
| int | hal_pwm_stop (void *hdl) |
| Stop PWM. More... | |
| int | hal_pwm_pause (void *hdl) |
| Pause PWM. When PWM is paused, can't go to deep sleep. More... | |
| int | hal_pwm_resume (void *hdl) |
| Resume PWM. More... | |
| int | hal_pwm_update (void *hdl, uint32_t period_ticks, uint32_t high_ticks) |
| Update PWM period and high time. More... | |
| int | hal_pwm_update_high_duration (void *hdl, uint32_t high_ticks) |
| Update PWM high time. More... | |
HAL_PWM.
| int hal_pwm_close | ( | void * | hdl | ) |
Close PWM driver.
| [in] | hdl | PWM handle from the open API |
| void* hal_pwm_open | ( | int | id, |
| int | prio, | ||
| void * | arg, | ||
| void(*)(void *) | callback | ||
| ) |
Open PWM driver.
| [in] | id | PWM Id, |
| [in] | prio | Interrupt Priority |
| [in] | arg | PWM call back function argument |
| [in] | callback | PWM call back function for period done interrupt |
| int hal_pwm_pause | ( | void * | hdl | ) |
Pause PWM. When PWM is paused, can't go to deep sleep.
| [in] | hdl | PWM handle from the open API |
| int hal_pwm_resume | ( | void * | hdl | ) |
Resume PWM.
| [in] | hdl | PWM handle from the open API |
| int hal_pwm_start | ( | void * | hdl, |
| uint32_t | period_ticks, | ||
| uint32_t | high_ticks | ||
| ) |
Start PWM
| [in] | hdl | PWM handle from the open API |
| [in] | period_ticks | PWM period ticks |
| [in] | high_ticks | PWM high ticks |
| int hal_pwm_stop | ( | void * | hdl | ) |
Stop PWM.
| [in] | hdl | PWM handle from the open API |
| int hal_pwm_update | ( | void * | hdl, |
| uint32_t | period_ticks, | ||
| uint32_t | high_ticks | ||
| ) |
Update PWM period and high time.
| [in] | hdl | PWM handle from the open API |
| [in] | period_ticks | PWM period ticks |
| [in] | high_ticks | PWM high ticks |
| int hal_pwm_update_high_duration | ( | void * | hdl, |
| uint32_t | high_ticks | ||
| ) |
Update PWM high time.
| [in] | hdl | PWM handle from the open API |
| [in] | high_ticks | PWM high ticks |
| uint32_t hal_pwm_us_to_ticks | ( | uint32_t | us | ) |
Convert us to PWM ticks.
| [in] | us | microsecond |