www.pudn.com > I2S.rar > WM_i2s_Codec.h
/****************************************************************************** ** ** COPYRIGHT (C) 2001, 2002 Intel Corporation. ** ** This software as well as the software described in it is furnished under ** license and may only be used or copied in accordance with the terms of the ** license. The information in this file is furnished for informational use ** only, is subject to change without notice, and should not be construed as ** a commitment by Intel Corporation. Intel Corporation assumes no ** responsibility or liability for any errors or inaccuracies that may appear ** in this document or any software that may be provided in association with ** this document. ** Except as permitted by such license, no part of this document may be ** reproduced, stored in a retrieval system, or transmitted in any form or by ** any means without the express written consent of Intel Corporation. ** ** FILENAME: xllp_i2s.h ** ** PURPOSE: contains all I2S specific macros, typedefs, and prototypes. ** Declares no storage. ** ** ******************************************************************************/ #ifndef __WM_I2S_CODEC_H__ #define __WM_I2S_CODEC_H__ #define I2SCODEC_ID 0x34 /* I2S reg settings */ #define LeftLineInAddr 0x000 #define RightLineINAddr 0x002 #define AAPathControlAddr 0x008 #define DAPathControlAddr 0x00A #define DAInterfaceFormatAddr 0x00E #define PowerDownControlAddr 0x00C #define SamplingControlAddr 0x010 #define ActiveControlAddr 0x012 #define ResetAddr 0x1E /* setting up the codec*/ #define ActiveControlOnData 0x001 #define ActiveControlOffData 0x000 #define PowerDownControlData 0x062 #define SamplingControlData 0x00 #define ResetData 0x000 /* setting codec up for ADC transfers*/ #define ADC_LeftLineInData 0x017 #define ADC_RightLineINData 0x017 #define ADC_AAPathControlData 0x000 #define ADC_DAPathControlData 0x0008 #define ADC_DAInterfaceFormatData 0x000A #define ADC_PowerDownControlData 0x007A /* setting codec up for DAC transfers*/ #define DAC_LeftLineInData 0x097 #define DAC_RightLineINData 0x097 #define DAC_AAPathControlData 0x0010 #define DAC_DAPathControlData 0x0000 #define DAC_DAInterfaceFormatData 0x0002 #define DAC_PowerDownControlData 0x0067 #endif // end of .h file