WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
Pinctrl

宏定义

#define HAL_PIO_PULL_NONE   PIN_PULL_TYPE_DISABLE
 
#define HAL_PIO_FUNC_GPIO   PIN_MODE_0
 
#define HAL_PIO_PULL_NONE   PIN_PULL_TYPE_DISABLE
 
#define HAL_PIO_FUNC_GPIO   PIN_MODE_0
 

枚举

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. 更多...
 

函数

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.
 

详细描述

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]

#define HAL_PIO_FUNC_GPIO   PIN_MODE_0

◆ HAL_PIO_FUNC_GPIO [2/2]

#define HAL_PIO_FUNC_GPIO   PIN_MODE_0

◆ HAL_PIO_PULL_NONE [1/2]

#define HAL_PIO_PULL_NONE   PIN_PULL_TYPE_DISABLE

◆ HAL_PIO_PULL_NONE [2/2]

#define HAL_PIO_PULL_NONE   PIN_PULL_TYPE_DISABLE

枚举类型说明

◆ 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]

enum pin_mode_t

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]

enum pin_mode_t

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]

enum pin_pull_t

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]

enum pin_pull_t

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()

bool pin_check_mode_is_valid ( pin_t  pin,
pin_mode_t  mode 
)

Check whether the mode configured for the pin is valid.

参数
[in]pinThe index of pins. see pin_t
[in]modeThe 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.