xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到

驱动 ops(移植用户实现) 更多...

#include <xt_audio_dev_drv.h>

成员变量

xt_err_t(* open )(void *ctx, struct xt_audio_format *fmt, xt_audio_dev_drv_cb_t cb, void *cb_ctx)
xt_err_t(* close )(void *ctx)
int(* write )(void *ctx, uint8_t *data, uint32_t size)
int(* read )(void *ctx, uint8_t *data, uint32_t size)
xt_err_t(* ctrl )(void *ctx, int cmd, union xt_audio_dev_ctrl_arg *arg)

详细描述

驱动 ops(移植用户实现)

在文件 xt_audio_dev_drv.h 第 99 行定义.

结构体成员变量说明

◆ close

xt_err_t(* xt_audio_dev_ops::close) (void *ctx)

在文件 xt_audio_dev_drv.h 第 101 行定义.

◆ ctrl

xt_err_t(* xt_audio_dev_ops::ctrl) (void *ctx, int cmd, union xt_audio_dev_ctrl_arg *arg)

在文件 xt_audio_dev_drv.h 第 104 行定义.

◆ open

xt_err_t(* xt_audio_dev_ops::open) (void *ctx, struct xt_audio_format *fmt, xt_audio_dev_drv_cb_t cb, void *cb_ctx)

在文件 xt_audio_dev_drv.h 第 100 行定义.

◆ read

int(* xt_audio_dev_ops::read) (void *ctx, uint8_t *data, uint32_t size)

在文件 xt_audio_dev_drv.h 第 103 行定义.

◆ write

int(* xt_audio_dev_ops::write) (void *ctx, uint8_t *data, uint32_t size)

在文件 xt_audio_dev_drv.h 第 102 行定义.


该结构体的文档由以下文件生成: