|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <stdint.h>#include <stdbool.h>#include "securec.h"#include "platform_core_rom.h"#include "chip_io.h"

宏定义 | |
| #define | HAL_PIO_PULL_NONE PIN_PULL_TYPE_DISABLE |
| #define | HAL_PIO_FUNC_GPIO PIN_MODE_0 |
| #define | HAL_PIO_FUNC_INVALID HAL_PIO_FUNC_MAX |
枚举 | |
| enum | pin_mode_t { PIN_MODE_0 = 0 , PIN_MODE_1 = 1 , PIN_MODE_2 = 2 , PIN_MODE_3 = 3 , PIN_MODE_4 = 4 , PIN_MODE_5 = 5 , PIN_MODE_6 = 6 , PIN_MODE_7 = 7 , PIN_MODE_MAX = 8 } |
| Definition of mode-multiplexing. 更多... | |
| enum | pin_drive_strength_t { PIN_DS_0 = 0 , PIN_DS_1 = 1 , PIN_DS_2 = 2 , PIN_DS_3 = 3 , PIN_DS_4 = 4 , PIN_DS_5 = 5 , PIN_DS_6 = 6 , PIN_DS_7 = 7 , PIN_DS_MAX = 8 } |
| Definition of drive-strength. 更多... | |
| enum | pin_pull_t { PIN_PULL_TYPE_DISABLE = 0 , PIN_PULL_TYPE_DOWN = 1 , PIN_PULL_TYPE_STRONG_UP = 2 , PIN_PULL_TYPE_UP = 3 , PIN_PULL_MAX = 4 } |
| Definition of pull-up/pull-down. 更多... | |
| enum | pin_input_enable_t { PIN_IE_DISABLE = 0 , PIN_IE_ENABLE = 1 , PIN_IE_MAX } |
| Definition of input-enable. 更多... | |
| enum | pin_schmitt_trigger_t { PIN_ST_DISABLE = 0 , PIN_ST_ENABLE = 1 , PIN_ST_MAX } |
| Definition of schmitt-trigger. 更多... | |
函数 | |
| bool | pin_check_mode_is_valid (pin_t pin, pin_mode_t mode) |
| Check whether the mode configured for the pin is valid. | |
| void | pin_port_register_hal_funcs (void) |
| Register hal funcs objects into hal_pinctrl module. | |
| void | pin_port_unregister_hal_funcs (void) |
| Unregister hal funcs objects from hal_pinctrl module. | |
| #define HAL_PIO_FUNC_INVALID HAL_PIO_FUNC_MAX |