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

函数

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

gpio_callback_t * hal_gpio_v150_callback_list_get ( void  )

Get GPIO callback list.

返回
GPIO callback list. See gpio_callback_t

◆ 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]channelThe channel id of gpio.
[in]groupThe group id of gpio.
[in]group_pinThe 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]pinPin number of target GPIO pin.
[in]*channelThe channel ID of target GPIO pin.
[in]*groupThe group ID of target GPIO pin.
[in]*group_pinThe group_pin ID of target GPIO pin.
返回
Errcode. See errcode_t

◆ hal_gpio_v150_register_cb()

errcode_t hal_gpio_v150_register_cb ( uint32_t  channel,
uint32_t  group,
uint32_t  group_pin,
gpio_callback_t  cb 
)

Register GPIO callback.

参数
[in]channelThe channel id of gpio.
[in]groupThe group id of gpio.
[in]group_pinThe bit of gpio in group.
[in]cbCallback 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_idIRQ 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]channelThe channel id of gpio.
[in]groupThe group id of gpio.
[in]group_pinThe 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_idIRQ number of GPIO.