|
| 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. 更多...
|
| |
| 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. 更多...
|
| |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides pinctrl port
History:
2022-08-25, Create file.
◆ HAL_PIO_FUNC_GPIO [1/2]
◆ HAL_PIO_FUNC_GPIO [2/2]
◆ HAL_PIO_PULL_NONE [1/2]
◆ HAL_PIO_PULL_NONE [2/2]
◆ pin_drive_strength_t [1/2]
Definition of drive-strength.
| 枚举值 |
|---|
| PIN_DS_0 | |
| PIN_DS_1 | |
| PIN_DS_2 | |
| PIN_DS_3 | |
| PIN_DS_4 | |
| PIN_DS_5 | |
| PIN_DS_6 | |
| PIN_DS_7 | |
| PIN_DS_MAX | |
◆ pin_drive_strength_t [2/2]
Definition of drive-strength.
| 枚举值 |
|---|
| PIN_DS_0 | |
| PIN_DS_1 | |
| PIN_DS_2 | |
| PIN_DS_3 | |
| PIN_DS_4 | |
| PIN_DS_5 | |
| PIN_DS_6 | |
| PIN_DS_7 | |
| PIN_DS_MAX | |
◆ pin_input_enable_t [1/2]
Definition of input-enable.
| 枚举值 |
|---|
| PIN_IE_DISABLE | |
| PIN_IE_ENABLE | |
| PIN_IE_MAX | |
◆ pin_input_enable_t [2/2]
Definition of input-enable.
| 枚举值 |
|---|
| PIN_IE_DISABLE | |
| PIN_IE_ENABLE | |
| PIN_IE_MAX | |
◆ pin_mode_t [1/2]
Definition of mode-multiplexing.
| 枚举值 |
|---|
| PIN_MODE_0 | |
| PIN_MODE_1 | |
| PIN_MODE_2 | |
| PIN_MODE_3 | |
| PIN_MODE_4 | |
| PIN_MODE_5 | |
| PIN_MODE_6 | |
| PIN_MODE_7 | |
| PIN_MODE_MAX | |
◆ pin_mode_t [2/2]
Definition of mode-multiplexing.
| 枚举值 |
|---|
| PIN_MODE_0 | |
| PIN_MODE_1 | |
| PIN_MODE_2 | |
| PIN_MODE_3 | |
| PIN_MODE_4 | |
| PIN_MODE_5 | |
| PIN_MODE_6 | |
| PIN_MODE_7 | |
| PIN_MODE_MAX | |
◆ pin_pull_t [1/2]
Definition of pull-up/pull-down.
| 枚举值 |
|---|
| PIN_PULL_TYPE_DISABLE | |
| PIN_PULL_TYPE_DOWN | |
| PIN_PULL_TYPE_STRONG_UP | |
| PIN_PULL_TYPE_UP | |
| PIN_PULL_MAX | |
◆ pin_pull_t [2/2]
Definition of pull-up/pull-down.
| 枚举值 |
|---|
| PIN_PULL_TYPE_DISABLE | |
| PIN_PULL_TYPE_DOWN | |
| PIN_PULL_TYPE_STRONG_UP | |
| PIN_PULL_TYPE_UP | |
| PIN_PULL_MAX | |
◆ pin_schmitt_trigger_t [1/2]
Definition of schmitt-trigger.
| 枚举值 |
|---|
| PIN_ST_DISABLE | |
| PIN_ST_ENABLE | |
| PIN_ST_MAX | |
◆ pin_schmitt_trigger_t [2/2]
Definition of schmitt-trigger.
| 枚举值 |
|---|
| PIN_ST_DISABLE | |
| PIN_ST_ENABLE | |
| PIN_ST_MAX | |
◆ pin_check_mode_is_valid()
Check whether the mode configured for the pin is valid.
- 参数
-
| [in] | pin | The index of pins. see pin_t |
| [in] | mode | The Multiplexing mode. see pin_mode_t |
- 返回
- The value 'true' indicates that the mode is valid and the value 'false' indicates that the mode is invalid.
◆ pin_port_register_hal_funcs()
| void pin_port_register_hal_funcs |
( |
void |
| ) |
|
Register hal funcs objects into hal_pinctrl module.
◆ pin_port_unregister_hal_funcs()
| void pin_port_unregister_hal_funcs |
( |
void |
| ) |
|
Unregister hal funcs objects from hal_pinctrl module.