Arm Virtual Hardware  Version 2.1.0
AVH FVP Models
 
Loading...
Searching...
No Matches

Audio file streaming interface. More...

Content

 Audio Driver API Functions
 Audio Driver API functions.
 
 Audio Driver API Defines
 Audio Driver API Definitions.
 

Data Structures

struct  AudioDrv_Status_t
 Audio Status. More...
 

Description

Audio file streaming interface.

Audio streaming use case is implemented for Arm FVPs based on the general-purpose Virtual Streaming Interface (VSI).

The use of common audio driver API simplifies re-targeting of the application code between virtual and physical devices. Currently audio driver implementations and examples are available for the following platforms:

and support for other hardware platforms can be added following the same concept.

Micro Speech Example project demonstrates use of this audio driver in both the AVH test environment and on the physical evaluation boards.

The table below references the files that implement the audio peripheral:

Item Description
./interface/audio/include/audio_drv.h Audio Driver API header file. Used by implementations on Arm Virtual Hardware and real HW boards.
./interface/audio/driver/audio_drv.c Audio driver implementation for Arm Virtual Hardware based on VSI
./interface/audio/python/arm_vsi0.py Audio via VSI Python script for audio input interface based on VSI Python interface
./interface/audio/python/arm_vsi1.py Audio via VSI Python script for audio output interface based on VSI Python interface
Audio driver for NXP IMXRT1050-EVKB board Audio driver implementation for NXP IMXRT1050-EVKB. See AVH-TFLmicrospeech GitHub repo
Audio driver for NXP MIMXRT1064-EVK board Audio driver implementation for NXP MIMXRT1064-EVK. See AVH-TFLmicrospeech GitHub repo

Data Structure Documentation

◆ AudioDrv_Status_t

struct AudioDrv_Status_t

Audio Status.

Structure with information about the status of the Audio driver. The data fields encode busy flags and error flags.

Returned by:

Data Fields
uint32_t tx_active: 1 Transmitter active.
uint32_t rx_active: 1 Receiver active.
uint32_t reserved: 30