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

📄 spdif_api.h

📁 SAMSUNG 5009的源代码
💻 H
字号:
/******************************************************************************
 *   Filename    : Spdif_api.h                                                *
 *   Start date  :                                                            *
 *    By         : S.C.Kwon                                                   *
 *   Contact     :                                                            *
 *   Description : low level api headers.(for only high level api)            *
 *                                                                            *
 ******************************************************************************
 */

#ifndef __SPDIF_H__
#define __SPDIF_H__

#ifdef __cplusplus
extern "C" {
#endif

/******************************************************************************
 *   INCLUDES                                                                 *
 ******************************************************************************/


/********************************************* 
 *   Data types
 *********************************************/
typedef enum {
	SPDIF_STREAM,
	SPDIF_PCM
}SPDIF_Format_t; 

typedef enum {
	SPDIF_16bit,
	SPDIF_20bit,
	SPDIF_24bit
}SPDIF_DataL_t; 

typedef enum {
	SPDIF_256fs,
	SPDIF_384fs,
	SPDIF_512fs
}SPDIF_Mclk_t; 

typedef enum {
	SPDIF_44Khz=0,
	SPDIF_48Khz=4,
	SPDIF_32Khz=0x0C
}SPDIF_Fs_t; 

typedef enum {
	SPDIF_NULL		= 0x0,
	SPDIF_AC3		= 0x1,
	SPDIF_Reserved	= 0x2,
	SPDIF_PAUSE		= 0x3,
	SPDIF_M1_L1		= 0x4,
	SPDIF_M1_L23	= 0x5,
	SPDIF_M2_EX		= 0x6,
	SPDIF_Reserved2	= 0x7,
	SPDIF_M2_L1		= 0x8,
	SPDIF_M2_L23	= 0x9,
	SPDIF_Reserved3	= 0xa,
	SPDIF_DTS1		= 0xb,	/* DTS-1 (512-sample bursts) */ 
	SPDIF_DTS2		= 0xc,	/* DTS-2 (1024-sample bursts) */
	SPDIF_DTS3		= 0xd	/* DTS-3 (2048-sample bursts) */
}SPDIF_DataType_t; 

typedef enum {
	SPDIF_1ch=0x00,
	SPDIF_2ch=0x21,
	SPDIF_3ch=0x51
}SPDIF_Channel_t; 

/********************************************* 
 *   Define
 *********************************************/
#define 	SPDIF_POWER_ON	1
#define 	SPDIF_POWER_OFF	0


/********************************************* 
 *   Functions Define
 *********************************************/

VOID    SPDIF_Reset(VOID);

/*------------------------------------------------------------------------------*/

#if 0//delete by cklee
VOID    SPDIF_SetFormat(SPDIF_DataType_t format, UINT Burst_DataL, UINT Repetition_Cnt);
VOID    SPDIF_SetInterface(SPDIF_Format_t stream, SPDIF_Fs_t frequency, 
                            SPDIF_DataL_t size, SPDIF_Channel_t ch);
VOID    SPDIF_SetChannelSta(UINT value);
#endif
#ifdef __cplusplus
}
#endif

#endif /*__SPDIF_H__*/ 

⌨️ 快捷键说明

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