结构体 | |
| struct | aos_pwm_attr_t |
类型定义 | |
| typedef aos_dev_ref_t | aos_pwm_ref_t |
枚举 | |
| enum | aos_pwm_polarity_t { AOS_PWM_POLARITY_NORMAL , AOS_PWM_POLARITY_INVERSE } |
函数 | |
| aos_status_t | aos_pwm_get (aos_pwm_ref_t *ref, uint32_t id) |
| void | aos_pwm_put (aos_pwm_ref_t *ref) |
| aos_status_t | aos_pwm_set_attr (aos_pwm_ref_t *ref, aos_pwm_attr_t const *attr) |
| aos_status_t | aos_pwm_get_attr (aos_pwm_ref_t *ref, aos_pwm_attr_t *attr) |
变量 | |
| uint32_t | period |
| uint32_t | duty_cycle |
| aos_pwm_polarity_t | polarity |
| bool | enabled |
给应用提供PWM操作的AOS API.
给应用提供PWM操作的AOS PWM API.
| typedef aos_dev_ref_t aos_pwm_ref_t |
| enum aos_pwm_polarity_t |
| aos_status_t aos_pwm_get | ( | aos_pwm_ref_t * | ref, |
| uint32_t | id | ||
| ) |
获取一个PWM设备的引用
| [out/in] | ref PWM设备的引用 | |
| [in] | id | PWM设备ID |
| aos_status_t aos_pwm_get_attr | ( | aos_pwm_ref_t * | ref, |
| aos_pwm_attr_t * | attr | ||
| ) |
| void aos_pwm_put | ( | aos_pwm_ref_t * | ref | ) |
释放一个PWM设备的引用
| [out/in] | ref PWM设备的引用 |
| aos_status_t aos_pwm_set_attr | ( | aos_pwm_ref_t * | ref, |
| aos_pwm_attr_t const * | attr | ||
| ) |
| aos_pwm_polarity_t polarity |