XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_hal_port.h 文件参考

xf_hal 对接接口总头文件。 更多...

xf_hal_port.h 的引用(Include)关系图:

浏览源代码.

函数

xf_err_t xf_hal_gpio_register (const xf_driver_ops_t *driver_ops)
 gpio 设备注册。
 
xf_err_t xf_hal_tim_register (const xf_driver_ops_t *driver_ops)
 tim 设备注册。
 
xf_err_t xf_hal_pwm_register (const xf_driver_ops_t *driver_ops)
 pwm 设备注册。
 
xf_err_t xf_hal_adc_register (const xf_driver_ops_t *driver_ops)
 adc 设备注册。
 
xf_err_t xf_hal_dac_register (const xf_driver_ops_t *driver_ops)
 dac 设备注册。
 
xf_err_t xf_hal_uart_register (const xf_driver_ops_t *driver_ops)
 uart 设备注册。
 
xf_err_t xf_hal_i2c_register (const xf_driver_ops_t *driver_ops)
 i2c 设备注册。
 
xf_err_t xf_hal_spi_register (const xf_driver_ops_t *driver_ops)
 spi 设备注册。
 

详细描述

xf_hal 对接接口总头文件。

作者
cangyu (sky.k.nosp@m.irto.nosp@m.@qq.c.nosp@m.om)
版本
0.1
日期
2024-05-11

在文件 xf_hal_port.h 中定义.

函数说明

◆ xf_hal_gpio_register()

xf_err_t xf_hal_gpio_register ( const xf_driver_ops_t driver_ops)

gpio 设备注册。

参数
driver_ops驱动操作集。
返回
xf_err_t
  • XF_OK 成功
  • XF_ERR_INVALID_ARG 无效参数
  • XF_FAIL 失败

在文件 xf_hal_gpio.c45 行定义.

◆ xf_hal_tim_register()

xf_err_t xf_hal_tim_register ( const xf_driver_ops_t driver_ops)

tim 设备注册。

参数
driver_ops驱动操作集。
返回
xf_err_t
  • XF_OK 成功
  • XF_ERR_INVALID_ARG 无效参数
  • XF_FAIL 失败

在文件 xf_hal_tim.c46 行定义.

◆ xf_hal_pwm_register()

xf_err_t xf_hal_pwm_register ( const xf_driver_ops_t driver_ops)

pwm 设备注册。

参数
driver_ops驱动操作集。
返回
xf_err_t
  • XF_OK 成功
  • XF_ERR_INVALID_ARG 无效参数
  • XF_FAIL 失败

在文件 xf_hal_pwm.c45 行定义.

◆ xf_hal_adc_register()

xf_err_t xf_hal_adc_register ( const xf_driver_ops_t driver_ops)

adc 设备注册。

参数
driver_ops驱动操作集。
返回
xf_err_t
  • XF_OK 成功
  • XF_ERR_INVALID_ARG 无效参数
  • XF_FAIL 失败

在文件 xf_hal_adc.c45 行定义.

◆ xf_hal_dac_register()

xf_err_t xf_hal_dac_register ( const xf_driver_ops_t driver_ops)

dac 设备注册。

参数
driver_ops驱动操作集。
返回
xf_err_t
  • XF_OK 成功
  • XF_ERR_INVALID_ARG 无效参数
  • XF_FAIL 失败

在文件 xf_hal_dac.c45 行定义.

◆ xf_hal_uart_register()

xf_err_t xf_hal_uart_register ( const xf_driver_ops_t driver_ops)

uart 设备注册。

参数
driver_ops驱动操作集。
返回
xf_err_t
  • XF_OK 成功
  • XF_ERR_INVALID_ARG 无效参数
  • XF_FAIL 失败

在文件 xf_hal_uart.c45 行定义.

◆ xf_hal_i2c_register()

xf_err_t xf_hal_i2c_register ( const xf_driver_ops_t driver_ops)

i2c 设备注册。

参数
driver_ops驱动操作集。
返回
xf_err_t
  • XF_OK 成功
  • XF_ERR_INVALID_ARG 无效参数
  • XF_FAIL 失败

在文件 xf_hal_i2c.c45 行定义.

◆ xf_hal_spi_register()

xf_err_t xf_hal_spi_register ( const xf_driver_ops_t driver_ops)

spi 设备注册。

参数
driver_ops驱动操作集。
返回
xf_err_t
  • XF_OK 成功
  • XF_ERR_INVALID_ARG 无效参数
  • XF_FAIL 失败

在文件 xf_hal_spi.c45 行定义.