📄 audiodriver.h
字号:
// Copyright(c) 2005 Analog Devices, Inc. All Rights Reserved.
// This software is proprietary and confidential to Analog Devices, Inc. and its licensors.
// File : $Id: //depot/Development/VisualAudio/Platforms/EZKit_BF533_Basic/2.5.0/AudioDriver.h#4 $
// Part of : VisualAudio V2.5.0
// Updated : $Date: 2006/10/12 $ by $Author: Fernando $
#ifndef __AUDIODRIVER_H__
#define __AUDIODRIVER_H__
/*********************************************************************
Include files
*********************************************************************/
#include "AudioIOModes.h"
#define DEFAULT_AUDIO_IO_MODE AudioIOMode_ADC
#include <services/services.h>
#include <drivers/adi_dev.h>
// switch for enabling separate interrupt thread to handle input audio data
#define RENDER_AT_LOWER_INTERRUPT_LEVEL 1 // 1: YES, 0: NO
// put DMA buffer memory in L1 memory, which require tick size as 32.
#define DMA_BUFFER_IN_L1_MEMORY 0 // 0: off-memory, 1: L1 memory
// Power manager specific definition of platform configuration
#define PWR_MANGER_EZKIT_PRESET ADI_PWR_EZKIT_BF533_600MHZ
#if (RENDER_AT_LOWER_INTERRUPT_LEVEL)
// IVG level for rendering function
#define USER_ISR0 14 // use software interrupt 0
#endif
/*********************************************************************
AD1836 TDM 8 channel codec
*********************************************************************/
// number of TDM channels
#define TDM_CHANNELS 8 // driver uses secondary
// channel layout for 8 channel TDM with secondary data
#define INTERNAL_ADC_L1 0
#define INTERNAL_ADC_R1 4
#define INTERNAL_ADC_L2 1
#define INTERNAL_ADC_R2 5
#define INTERNAL_DAC_L1 0
#define INTERNAL_DAC_R1 4
#define INTERNAL_DAC_L2 1
#define INTERNAL_DAC_R2 5
#define INTERNAL_DAC_L3 2
#define INTERNAL_DAC_R3 6
//=================================================
// Audio Driver specific
// DMA frame word size
#define TDM_FRAME_SIZE (TDM_CHANNELS) // TDM_CHANNELS is number of TDM slots per Analog CODEC
// number of actually used input channels
#define SYSAudio_MAX_INPUT_CHANNEL_COUNT (4) // 4 analog input
// number of actually used output channels
#define SYSAudio_MAX_OUTPUT_CHANNEL_COUNT (6) // 6 analog output
/*********************************************************************
*
* Exported Functions
*
*********************************************************************/
void SYSAudio_Close(void);
int SYSAudio_Init(int audioIOMode);
void SYSAudio_Clear(void);
int SYSAudio_ChangeMode(int iAudioIOMode);
int SYSAudio_Run(bool bRun);
#endif // __AUDIODRIVER_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -