twl_wrapsdk/include/twl/snd/ARM7/i2s.h
kamikawa bfc9350270 libraries/snd/ARM7/src/snd_mic.c で定義されていたマイク関数を削除し、新規にlibralies/mic 関数を追加。
CODEC関連コードを更新。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@287 4ee2a332-4b2b-5046-8439-1ba90f034370
2007-09-28 10:35:18 +00:00

70 lines
2.0 KiB
C

/*---------------------------------------------------------------------------*
Project: TwlSDK - SND - include
File: i2s.h
Copyright 2004-2006 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo
Company Ltd., and are protected by Federal copyright law. They may
not be disclosed to third parties or copied or duplicated in any form,
in whole or in part, without the prior written consent of Nintendo.
$Log: i2s.h,v $
$NoKeywords: $
*---------------------------------------------------------------------------*/
#ifndef TWL_SND_COMMON_I2S_H_
#define TWL_SND_COMMON_I2S_H_
#include <twl/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/******************************************************************************
public macro variables
******************************************************************************/
#define I2S_MIXING_NITRO_MAX 8
#define I2S_MIXING_NITRO_MIN 0
#define I2S_MIXING_DSP_MAX 0
#define I2S_MIXING_DSP_MIN 8
typedef enum _I2SSamplingRate
{
I2S_SAMPLING_RATE_32730 = 0,
I2S_SAMPLING_RATE_47610 = 1,
I2S_SAMPLING_RATE_NUM = 2
} I2SSamplingRate;
/******************************************************************************
public function declaration
******************************************************************************/
#ifdef SDK_ARM7
void I2S_Enable(void);
void I2S_Disable(void);
void I2S_Shutdown(void);
void I2S_BeginSleep(void);
void I2S_EndSleep(void);
void I2S_Mute(BOOL isMute);
BOOL I2S_IsMute(void);
void I2S_SetMixingRatio(int nitroRatio);
int I2S_GetMixingRatio(void);
void I2S_SetSamplingRate( I2SSamplingRate rate );
I2SSamplingRate I2S_GetSamplingRate( void );
#endif /* SDK_ARM7 */
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* TWL_SND_COMMON_I2S_H_ */