XFusion API v1.3.0
|
#include "xf_hal_dev.h"
结构体 | |
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_t * | xf_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_t * | xf_hal_device_find (xf_hal_type_t type, uint32_t id) |
变量 | |
static xf_hal_driver_t | dev_table [DEV_TABLE_SIZE] = {0} |
#define TAG "hal_dev" |
在文件 xf_hal_dev.c 第 18 行定义.
#define DEV_TABLE_SIZE XF_HAL_TYPE_MAX |
在文件 xf_hal_dev.c 第 19 行定义.
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 | ||
) |
在文件 xf_hal_dev.c 第 44 行定义.
uint32_t xf_hal_driver_get_flag | ( | xf_hal_type_t | type | ) |
在文件 xf_hal_dev.c 第 67 行定义.
uint32_t xf_hal_driver_get_enable_count | ( | xf_hal_type_t | type | ) |
在文件 xf_hal_dev.c 第 76 行定义.
xf_hal_dev_t * xf_hal_driver_create | ( | xf_hal_type_t | type, |
uint32_t | id | ||
) |
在文件 xf_hal_dev.c 第 93 行定义.
xf_err_t xf_hal_driver_open | ( | xf_hal_dev_t * | dev, |
xf_hal_type_t | type, | ||
uint32_t | id | ||
) |
在文件 xf_hal_dev.c 第 118 行定义.
xf_err_t xf_hal_driver_ioctl | ( | xf_hal_dev_t * | dev, |
uint32_t | cmd, | ||
void * | config | ||
) |
在文件 xf_hal_dev.c 第 154 行定义.
int xf_hal_driver_read | ( | xf_hal_dev_t * | dev, |
void * | buf, | ||
size_t | count | ||
) |
在文件 xf_hal_dev.c 第 168 行定义.
int xf_hal_driver_write | ( | xf_hal_dev_t * | dev, |
const void * | buf, | ||
size_t | count | ||
) |
在文件 xf_hal_dev.c 第 180 行定义.
xf_err_t xf_hal_driver_close | ( | xf_hal_dev_t * | dev | ) |
在文件 xf_hal_dev.c 第 192 行定义.
xf_err_t xf_hal_device_add | ( | xf_hal_dev_t * | dev | ) |
在文件 xf_hal_dev.c 第 216 行定义.
xf_hal_dev_t * xf_hal_device_find | ( | xf_hal_type_t | type, |
uint32_t | id | ||
) |
在文件 xf_hal_dev.c 第 238 行定义.
|
static |
在文件 xf_hal_dev.c 第 38 行定义.