XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_hal_dev.c 文件参考
#include "xf_hal_dev.h"
xf_hal_dev.c 的引用(Include)关系图:

浏览源代码.

结构体

struct  _xf_hal_driver_t
 

宏定义

#define TAG   "hal_dev"
 
#define DEV_TABLE_SIZE   XF_HAL_TYPE_MAX
 

类型定义

typedef struct _xf_hal_driver_t xf_hal_driver_t
 

函数

xf_err_t xf_hal_driver_register (xf_hal_type_t type, xf_hal_flag_t flag, xf_hal_dev_create_t constructor, const xf_driver_ops_t *driver_ops)
 
uint32_t xf_hal_driver_get_flag (xf_hal_type_t type)
 
uint32_t xf_hal_driver_get_enable_count (xf_hal_type_t type)
 
xf_hal_dev_txf_hal_driver_create (xf_hal_type_t type, uint32_t id)
 
xf_err_t xf_hal_driver_open (xf_hal_dev_t *dev, xf_hal_type_t type, uint32_t id)
 
xf_err_t xf_hal_driver_ioctl (xf_hal_dev_t *dev, uint32_t cmd, void *config)
 
int xf_hal_driver_read (xf_hal_dev_t *dev, void *buf, size_t count)
 
int xf_hal_driver_write (xf_hal_dev_t *dev, const void *buf, size_t count)
 
xf_err_t xf_hal_driver_close (xf_hal_dev_t *dev)
 
xf_err_t xf_hal_device_add (xf_hal_dev_t *dev)
 
xf_hal_dev_txf_hal_device_find (xf_hal_type_t type, uint32_t id)
 

变量

static xf_hal_driver_t dev_table [DEV_TABLE_SIZE] = {0}
 

详细描述

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

在文件 xf_hal_dev.c 中定义.

宏定义说明

◆ TAG

#define TAG   "hal_dev"

在文件 xf_hal_dev.c18 行定义.

◆ DEV_TABLE_SIZE

#define DEV_TABLE_SIZE   XF_HAL_TYPE_MAX

在文件 xf_hal_dev.c19 行定义.

类型定义说明

◆ xf_hal_driver_t

函数说明

◆ xf_hal_driver_register()

xf_err_t xf_hal_driver_register ( xf_hal_type_t  type,
xf_hal_flag_t  flag,
xf_hal_dev_create_t  constructor,
const xf_driver_ops_t driver_ops 
)

在文件 xf_hal_dev.c44 行定义.

◆ xf_hal_driver_get_flag()

uint32_t xf_hal_driver_get_flag ( xf_hal_type_t  type)

在文件 xf_hal_dev.c67 行定义.

◆ xf_hal_driver_get_enable_count()

uint32_t xf_hal_driver_get_enable_count ( xf_hal_type_t  type)

在文件 xf_hal_dev.c76 行定义.

◆ xf_hal_driver_create()

xf_hal_dev_t * xf_hal_driver_create ( xf_hal_type_t  type,
uint32_t  id 
)

在文件 xf_hal_dev.c93 行定义.

◆ xf_hal_driver_open()

xf_err_t xf_hal_driver_open ( xf_hal_dev_t dev,
xf_hal_type_t  type,
uint32_t  id 
)

在文件 xf_hal_dev.c118 行定义.

◆ xf_hal_driver_ioctl()

xf_err_t xf_hal_driver_ioctl ( xf_hal_dev_t dev,
uint32_t  cmd,
void *  config 
)

在文件 xf_hal_dev.c154 行定义.

◆ xf_hal_driver_read()

int xf_hal_driver_read ( xf_hal_dev_t dev,
void *  buf,
size_t  count 
)

在文件 xf_hal_dev.c168 行定义.

◆ xf_hal_driver_write()

int xf_hal_driver_write ( xf_hal_dev_t dev,
const void *  buf,
size_t  count 
)

在文件 xf_hal_dev.c180 行定义.

◆ xf_hal_driver_close()

xf_err_t xf_hal_driver_close ( xf_hal_dev_t dev)

在文件 xf_hal_dev.c192 行定义.

◆ xf_hal_device_add()

xf_err_t xf_hal_device_add ( xf_hal_dev_t dev)

在文件 xf_hal_dev.c216 行定义.

◆ xf_hal_device_find()

xf_hal_dev_t * xf_hal_device_find ( xf_hal_type_t  type,
uint32_t  id 
)

在文件 xf_hal_dev.c238 行定义.

变量说明

◆ dev_table

xf_hal_driver_t dev_table[DEV_TABLE_SIZE] = {0}
static

在文件 xf_hal_dev.c38 行定义.