codec.h

来自「基于dm643的Fir 滤波器的设计」· C头文件 代码 · 共 41 行

H
41
字号
/************************************************************
  Copyright (C), 2007 by SEED Electronic Technology LTD.
  FileName: codec.h
  Author:  Ya.X      Version : V1.0         Date:2007-09-20
  Description:  音频芯片AIC23模块头文件,包括:
  				AIC23 CODEC模块宏定义;
				AIC23应用程序函数
*************************************************************/
#ifndef DEC643_AIC23_
	#define DEC643_AIC23_

#include <csl_mcasp.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

MCASP_Handle DEC643_AIC23_OpenCodec();

MCASP_Handle DEC643_AIC23_OpenRxCodec();

MCASP_Handle DEC643_AIC23_OpenTxCodec();

void DEC643_AIC23_CloseCodec(MCASP_Handle  hMcASP);

void DEC643_AIC23_Config();

void codec_headhponeout_gain(unsigned int gain);

#endif

⌨️ 快捷键说明

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