⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 codec.h

📁 本程序用于合众达DMS643开发板的音频采集和显示程序!程序当中用到了mcasp 串口
💻 H
字号:
/********************************************************************************\
\*Codec.h	V1.00
* Copyright	2003 by SEED Electronic Technology Ltd.
* All rights reserved. Property of SEED Electronic Technology Ltd.			   
* Designed by:	Hongshuai.Li								                  
*********************************************************************************/ 
#ifndef DEC643_AIC23_
#define DEC643_AIC23_

#include <csl.h>
#include <csl_mcasp.h>
#include <csl_i2c.h>


/* Codec module definitions */
#define Left_Line_Input_Channel_Volume_Control 	0x01
#define Right_Line_Input_Channel_Volume_Control 0x03
#define Left_Channel_Headphone_Volume_Control 	0x05
#define Right_Channel_Headphone_Volume_Control 	0x07
#define Analog_Audio_Path_Control 				0x08
#define Digital_Audio_Path_Control 				0x0a
#define Power_Down_Control 						0x0c
#define Digital_Audio_Interface_Format 			0x0e
#define Sample_Rate_Control 					0x10
#define Digital_Interface_Activation 			0x12
#define Reset_Register 							0x1E

extern MCASP_Handle DEC643_AIC23_DATAHANDLE;
/********************************************************************************/
/* Applied function defining for AIC23. */
/* Open the codec AIC23 and set AXR1[7] as transmit port,AXR[6] as receive port. */
MCASP_Handle DEC643_AIC23_OpenCodec();

void DEC643_AIC23_CloseCodec(MCASP_Handle  hMcASP);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -