|
| gpio_callback_t * | hal_gpio_v150_callback_list_get (void) |
| | Get GPIO callback list.
|
| |
| void | hal_gpio_v150_register_irq (uint32_t int_id) |
| | Register IRQ number of GPIO.
|
| |
| void | hal_gpio_v150_unregister_irq (uint32_t int_id) |
| | Unregister IRQ number of GPIO.
|
| |
| errcode_t | hal_gpio_v150_pin_info_get (pin_t pin, uint32_t *channel, uint32_t *group, uint32_t *group_pin) |
| | Get GPIO pin info of target pin, including channel ID, group ID and group_pin ID.
|
| |
| uint32_t | hal_gpio_v150_pin_id_get (uint32_t channel, uint32_t group, uint32_t group_pin) |
| | Get GPIO pin ID of target pin.
|
| |
| errcode_t | hal_gpio_v150_register_cb (uint32_t channel, uint32_t group, uint32_t group_pin, gpio_callback_t cb) |
| | Register GPIO callback.
|
| |
| void | hal_gpio_v150_unregister_cb (uint32_t channel, uint32_t group, uint32_t group_pin) |
| | Unregister GPIO callback.
|
| |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: Provides V150 HAL GPIO common header.
History:
2023-06-01, Create file.
◆ hal_gpio_v150_callback_list_get()
◆ hal_gpio_v150_pin_id_get()
| uint32_t hal_gpio_v150_pin_id_get |
( |
uint32_t |
channel, |
|
|
uint32_t |
group, |
|
|
uint32_t |
group_pin |
|
) |
| |
Get GPIO pin ID of target pin.
- 参数
-
| [in] | channel | The channel id of gpio. |
| [in] | group | The group id of gpio. |
| [in] | group_pin | The bit of gpio in group. |
- 返回
- Pin number of target GPIO pin.
◆ hal_gpio_v150_pin_info_get()
| errcode_t hal_gpio_v150_pin_info_get |
( |
pin_t |
pin, |
|
|
uint32_t * |
channel, |
|
|
uint32_t * |
group, |
|
|
uint32_t * |
group_pin |
|
) |
| |
Get GPIO pin info of target pin, including channel ID, group ID and group_pin ID.
- 参数
-
| [in] | pin | Pin number of target GPIO pin. |
| [in] | *channel | The channel ID of target GPIO pin. |
| [in] | *group | The group ID of target GPIO pin. |
| [in] | *group_pin | The group_pin ID of target GPIO pin. |
- 返回
- Errcode. See errcode_t
◆ hal_gpio_v150_register_cb()
Register GPIO callback.
- 参数
-
| [in] | channel | The channel id of gpio. |
| [in] | group | The group id of gpio. |
| [in] | group_pin | The bit of gpio in group. |
| [in] | cb | Callback to be registered. |
- 返回
- Errcode. See errcode_t
◆ hal_gpio_v150_register_irq()
| void hal_gpio_v150_register_irq |
( |
uint32_t |
int_id | ) |
|
Register IRQ number of GPIO.
- 参数
-
| [in] | int_id | IRQ number of GPIO. |
◆ hal_gpio_v150_unregister_cb()
| void hal_gpio_v150_unregister_cb |
( |
uint32_t |
channel, |
|
|
uint32_t |
group, |
|
|
uint32_t |
group_pin |
|
) |
| |
Unregister GPIO callback.
- 参数
-
| [in] | channel | The channel id of gpio. |
| [in] | group | The group id of gpio. |
| [in] | group_pin | The bit of gpio in group. |
◆ hal_gpio_v150_unregister_irq()
| void hal_gpio_v150_unregister_irq |
( |
uint32_t |
int_id | ) |
|
Unregister IRQ number of GPIO.
- 参数
-
| [in] | int_id | IRQ number of GPIO. |