samp_sdm.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:5k
- /*******************************************************************************
- * Copyright(c) Philips Consumer Electronics B.V. 2001
- * The attached material and the information contained therein is proprietary
- * to Philips and is issued only under strict confidentiality arrangements.
- * It shall not be used, reproduced, copied in whole or in part, adapted,
- * modified, or disseminated without a written license of Philips.
- * It must be returned to Philips upon its first request.
- *
- * Project: SA-MP ( Super Audio Media Player )
- * File %name: samp_sdm.h %
- * %version: 20 %
- * %date_modified: Fri Jul 12 09:21:51 2002 %
- * %derived_by: potm %
- * Creation date: Fri Jun 15 09:42:58 2001
- * First author: klerxm
- *
- * Advanced Systems and Applications Lab - Eindhoven
- *
- * Continuus %full_filespec: samp_sdm.h~20:incl:1 %
- *
- * Description: Header file of the System Diversity Manager
- *
- * Change history:
- *
- * Rev Date Who Comments
- * ---- ---------- -------- -----------------------------------------------------
- * 1 2001-05-30 klerxm Initial version
- * 2 2001-06-15 klerxm Template update
- * 3 2001-08-01 novosadt First real version
- * 4 2001-08-01 novosadt Fixed SDM_GetHandler
- * 5 2001-08-16 novosadt No changes
- * 6 2001-08-23 potm Adapted to new header files
- * 7 2001-10-02 potm Added definition of SDM_InputModeDef
- * 8 2001-10-03 novosadt Modified prototype of SDM_SetAudioClock
- * Modified prototype of SDM_SetDacPinning
- * 9 2001-10-22 novosadt Added prototype of SDM_SetSystemClock
- * 10 2001-11-06 klerxm Removed SDM_Init/Term
- * 11 2001-11-28 potm - Replaced SDM_ZEROS and SDM_ONES with SDM_PIO
- * - Added parameter DsdLine6 to SDM_SetDacPinning
- * 12 2001-11-28 novosadt Added SDM_SetBurstLength (PR162)
- * 13 2002-02-13 novosadt SDM_InputModeDef removed and replaced by
- * SACD_InputModeDef(PR321)
- * 14 2002-02-25 coenen Add SDM_HostTypeDef (again)
- * 15 2002-03-18 kokh Removed SDM_HostTypeDef and SetHostType (again)
- * 16 2002-03-15 novosadt Removed MemSize from SDM_SetMemoryConfig (CR390)
- * 17 2002-06-07 klerxm Added 'extern "C"'
- * 18 2002-06-20 klerxm Completely removed SDM_SetMemoryConfig (CR390)
- * 19 2002-07-12 klerxm And again.
- * 20 2003-02-13 potm Added SDM_EnableDTCP (CR405)
- *
- *******************************************************************************/
- #ifndef _SAMP_SDM_H
- #define _SAMP_SDM_H
- /*******************************************************************************
- * Include Files
- *******************************************************************************/
- #include "Playcoresampsamp_gen.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*******************************************************************************
- * Macro Definitions
- *******************************************************************************/
- /*******************************************************************************
- * Type Definitions
- *******************************************************************************/
- typedef enum
- { SAMP(SDM_BE_I2S)
- , SAMP(SDM_BE_FEC)
- , SAMP(SDM_BE_UDE)
- } SAMP(SDM_EngineTypeDef);
-
- typedef enum
- { SAMP(SDM_PCM_LEFTFRONT_RIGHTFRONT)
- , SAMP(SDM_PCM_LEFTSURR_RIGHTSURR)
- , SAMP(SDM_PCM_CENTER_LFE)
- , SAMP(SDM_PCM_DATACLOCK)
- , SAMP(SDM_PCM_WORDCLOCK)
- , SAMP(SDM_DSD_CLOCK)
- , SAMP(SDM_PIO)
- } SAMP(SDM_DataLineDef);
- typedef enum
- { SAMP(SDM_AUD_CLK_256FS)
- , SAMP(SDM_AUD_CLK_384FS)
- , SAMP(SDM_AUD_CLK_512FS)
- , SAMP(SDM_AUD_CLK_768FS)
- } SAMP(SDM_AudioClockDef);
-
- typedef void (* SAMP(SDM_PVoidFuncDef)) (void);
- /*******************************************************************************
- * Functions Prototypes
- *******************************************************************************/
- void SAMP(SDM_GetHandler)(SAMP(SDM_PVoidFuncDef) *ph);
- SAMP(ErrCode) SAMP(SDM_SetEngineType)(SAMP(SDM_EngineTypeDef) Engine);
- SAMP(ErrCode) SAMP(SDM_SetDacPinning)
- ( SAMP(SDM_DataLineDef) PcmLine0
- , SAMP(SDM_DataLineDef) PcmLine1
- , SAMP(SDM_DataLineDef) PcmLine2
- , SAMP(SDM_DataLineDef) PcmLine3
- , SAMP(SDM_DataLineDef) PcmLine4
- , SAMP(SDM_DataLineDef) PcmLine5
- , SAMP(SDM_DataLineDef) PcmLine6
- , SAMP(SDM_DataLineDef) PcmLine7
- , SAMP(SDM_DataLineDef) PcmLine8
- , SAMP(SDM_DataLineDef) PcmLine9
- , SAMP(SDM_DataLineDef) PcmLine10
- , SAMP(SDM_DataLineDef) PcmLine11
- , SAMP(SDM_DataLineDef) DsdLine6
- , SAMP(SDM_DataLineDef) DsdLine7
- , SAMP(SDM_DataLineDef) DsdLine9);
- SAMP(ErrCode) SAMP(SDM_SetDsdClockPolarity)(SAMP(Bool) Positive);
- SAMP(ErrCode) SAMP(SDM_SetAudioClock)(SAMP(SACD_InputModeDef) InputMode,
- SAMP(SDM_AudioClockDef) AudioClock);
- SAMP(ErrCode) SAMP(SDM_SetSystemClock)(SAMP(UInt32) SystemClock);
- SAMP(ErrCode) SAMP(SDM_SetBurstLength)(SAMP(UInt16) BurstLength);
- SAMP(ErrCode) SAMP(SDM_EnableDTCP)(SAMP(Bool) enableDTCP);
- #ifdef __cplusplus
- }
- #endif
- #endif /* _SAMP_SDM_H */
- /*******************************************************************************
- * End of File
- *******************************************************************************/