|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
宏定义 | |
| #define | PWM_MAX_NUMBER 6 /* < Max number of PWM available */ |
枚举 | |
| enum | pwm_channel_t { PWM_0 , PWM_1 , PWM_2 , PWM_3 , PWM_4 , PWM_5 , PWM_6 , PWM_7 , PWM_8 , PWM_9 , PWM_10 , PWM_11 , PWM_12 , PWM_13 , PWM_14 , PWM_15 , PWM_NONE = 6 } |
| PWM v150 channel ID. 更多... | |
| enum | pwm_v151_group_t { PWM_GROUP_0 , PWM_GROUP_1 , PWM_GROUP_2 , PWM_GROUP_3 , PWM_GROUP_4 , PWM_GROUP_5 , PWM_GROUP_6 , PWM_GROUP_7 , PWM_GROUP_8 , PWM_GROUP_9 , PWM_GROUP_10 , PWM_GROUP_11 , PWM_GROUP_12 , PWM_GROUP_13 , PWM_GROUP_14 , PWM_GROUP_15 } |
| PWM v150 group ID. 更多... | |
函数 | |
| uintptr_t | pwm_porting_base_addr_get (void) |
| Get the base address of a specified PWM. | |
| void | pwm_port_register_hal_funcs (void) |
| Register hal funcs objects into hal_pwm module. | |
| void | pwm_port_unregister_hal_funcs (void) |
| Unregister hal funcs objects from hal_pwm module. | |
| void | pwm_port_register_irq (pwm_channel_t channel) |
| Register the interrupt of pwm. | |
| void | pwm_port_unregister_irq (pwm_channel_t channel) |
| Unregister the interrupt of pwm. | |
| void | pwm_port_clock_enable (bool on) |
| Set the divider number of the peripheral device clock. | |
| void | pwm_irq_lock (uint8_t channel) |
| Lock of pwm interrupt. | |
| void | pwm_irq_unlock (uint8_t channel) |
| Unlock of pwm interrupt. | |
| uint32_t | pwm_port_get_clock_value (pwm_channel_t channel) |
| Get pwm clock value. | |
| errcode_t | pwm_port_param_check (const pwm_config_t *cfg) |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides pwm port
History:
2022-09-16, Create file.
| #define PWM_MAX_NUMBER 6 /* < Max number of PWM available */ |
| enum pwm_channel_t |
| enum pwm_v151_group_t |
| void pwm_irq_lock | ( | uint8_t | channel | ) |
Lock of pwm interrupt.
| [in] | channel | The pwm channel. |
| void pwm_irq_unlock | ( | uint8_t | channel | ) |
Unlock of pwm interrupt.
| [in] | channel | The pwm channel. |
| void pwm_port_clock_enable | ( | bool | on | ) |
Set the divider number of the peripheral device clock.
| [in] | on | Enable or disable. |
| uint32_t pwm_port_get_clock_value | ( | pwm_channel_t | channel | ) |
Get pwm clock value.
| [in] | channel | PWM device. |
| errcode_t pwm_port_param_check | ( | const pwm_config_t * | cfg | ) |
| void pwm_port_register_hal_funcs | ( | void | ) |
Register hal funcs objects into hal_pwm module.
| void pwm_port_register_irq | ( | pwm_channel_t | channel | ) |
Register the interrupt of pwm.
| [in] | channel | PWM device |
| void pwm_port_unregister_hal_funcs | ( | void | ) |
Unregister hal funcs objects from hal_pwm module.
| void pwm_port_unregister_irq | ( | pwm_channel_t | channel | ) |
Unregister the interrupt of pwm.
| [in] | channel | PWM device |
| uintptr_t pwm_porting_base_addr_get | ( | void | ) |
Get the base address of a specified PWM.