RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
rt_audio_ops结构体 参考

#include <dev_audio.h>

成员变量

rt_err_t(* getcaps )(struct rt_audio_device *audio, struct rt_audio_caps *caps)
 
rt_err_t(* configure )(struct rt_audio_device *audio, struct rt_audio_caps *caps)
 
rt_err_t(* init )(struct rt_audio_device *audio)
 
rt_err_t(* start )(struct rt_audio_device *audio, int stream)
 
rt_err_t(* stop )(struct rt_audio_device *audio, int stream)
 
rt_ssize_t(* transmit )(struct rt_audio_device *audio, const void *writeBuf, void *readBuf, rt_size_t size)
 
void(* buffer_info )(struct rt_audio_device *audio, struct rt_audio_buf_info *info)
 

详细描述

在文件 dev_audio.h101 行定义.

结构体成员变量说明

◆ getcaps

rt_err_t(* rt_audio_ops::getcaps) (struct rt_audio_device *audio, struct rt_audio_caps *caps)

在文件 dev_audio.h103 行定义.

◆ configure

rt_err_t(* rt_audio_ops::configure) (struct rt_audio_device *audio, struct rt_audio_caps *caps)

在文件 dev_audio.h104 行定义.

◆ init

rt_err_t(* rt_audio_ops::init) (struct rt_audio_device *audio)

在文件 dev_audio.h105 行定义.

◆ start

rt_err_t(* rt_audio_ops::start) (struct rt_audio_device *audio, int stream)

在文件 dev_audio.h106 行定义.

◆ stop

rt_err_t(* rt_audio_ops::stop) (struct rt_audio_device *audio, int stream)

在文件 dev_audio.h107 行定义.

◆ transmit

rt_ssize_t(* rt_audio_ops::transmit) (struct rt_audio_device *audio, const void *writeBuf, void *readBuf, rt_size_t size)

在文件 dev_audio.h108 行定义.

◆ buffer_info

void(* rt_audio_ops::buffer_info) (struct rt_audio_device *audio, struct rt_audio_buf_info *info)

在文件 dev_audio.h110 行定义.