📄 tmdlhdmitx_cfg.h
字号:
/** * Copyright (C) 2006 NXP N.V., All Rights Reserved. * This source code and any compilation or derivative thereof is the proprietary * information of NXP N.V. and is confidential in nature. Under no circumstances * is this software to be exposed to or placed under an Open Source License of * any type without the expressed written permission of NXP N.V. * * \file tmdlHdmiTx_cfg.h * * \version $Revision: 1 $ * * \date $Date: 08/08/07 11:00 $ * * \brief devlib driver component API for the TDA998x HDMI Transmitters * * \section refs Reference Documents * HDMI Tx Driver - FRS.doc, * * \section info Change Information * * \verbatim $History: tmbslHdmiTx_cfg.h $ * * ***************** Version 1 ***************** * User: J. Lamotte Date: 08/08/07 Time: 11:00 * initial version * \endverbatim **//*****************************************************************************//*****************************************************************************//* THIS FILE MUST NOT BE MODIFIED BY CUSTOMER *//*****************************************************************************//*****************************************************************************/#ifndef TMDLHDMITX_CFG_H#define TMDLHDMITX_CFG_H#include "tmNxTypes.h"#include "tmbslHdmiTx.h"#include "tmdlHdmiTx_Types.h"#ifdef __cplusplusextern "C" {#endif/*============================================================================*//* TYPES DECLARATIONS *//*============================================================================*/typedef struct _tmdlHdmiTxCfgResolution_t { tmdlHdmiTxVidFmt_t resolutionID; UInt16 width; UInt16 height; Bool interlaced; tmdlHdmiTxVfreq_t vfrequency; tmdlHdmiTxPictAspectRatio_t aspectRatio; } tmdlHdmiTxCfgResolution_t, *ptmdlHdmiTxCfgResolution_t;/** * \brief Video signals that can be input to video ports in RGB/YUV 4:4:4 mode */typedef enum{ TMDL_HDMITX_VID444_GY_4_TO_7 = 0x00, /**< Video signal G/Y, bits 4 to 7 */ TMDL_HDMITX_VID444_GY_0_TO_3 = 0x01, /**< Video signal G/Y, bits 0 to 3 */ TMDL_HDMITX_VID444_BU_4_TO_7 = 0x02, /**< Video signal B/U, bits 4 to 7 */ TMDL_HDMITX_VID444_BU_0_TO_3 = 0x03, /**< Video signal B/U, bits 0 to 3 */ TMDL_HDMITX_VID444_VR_4_TO_7 = 0x04, /**< Video signal V/R, bits 4 to 7 */ TMDL_HDMITX_VID444_VR_0_TO_3 = 0x05, /**< Video signal V/R, bits 0 to 3 */ TMDL_HDMITX_VID444_GY_7_TO_4 = 0x80, /**< Video signal G/Y, bits 7 to 4 (mirrored) */ TMDL_HDMITX_VID444_GY_3_TO_0 = 0x81, /**< Video signal G/Y, bits 3 to 0 (mirrored) */ TMDL_HDMITX_VID444_BU_7_TO_4 = 0x82, /**< Video signal B/U, bits 7 to 4 (mirrored) */ TMDL_HDMITX_VID444_BU_3_TO_0 = 0x83, /**< Video signal B/U, bits 3 to 0 (mirrored) */ TMDL_HDMITX_VID444_VR_7_TO_4 = 0x84, /**< Video signal V/R, bits 7 to 4 (mirrored) */ TMDL_HDMITX_VID444_VR_3_TO_0 = 0x85, /**< Video signal V/R, bits 3 to 0 (mirrored) */ TMDL_HDMITX_VID444_NOT_CONNECTED = 0x100 /**< No signal connected */} tmdlHdmiTxCfgVideoSignal444;/** * \brief Video signals that can be input to video ports in semi-planar YUV 4:2:2 mode */typedef enum{ TMDL_HDMITX_VID422_Y_8_TO_11 = 0x00, /**< Video signal G/Y, bits 8 to 11 */ TMDL_HDMITX_VID422_Y_4_TO_7 = 0x01, /**< Video signal G/Y, bits 4 to 7 */ TMDL_HDMITX_VID422_Y_0_TO_3 = 0x02, /**< Video signal G/Y, bits 0 to 3 */ TMDL_HDMITX_VID422_UV_8_TO_11 = 0x03, /**< Video signal B/U, bits 8 to 11 */ TMDL_HDMITX_VID422_UV_4_TO_7 = 0x04, /**< Video signal B/U, bits 4 to 7 */ TMDL_HDMITX_VID422_UV_0_TO_3 = 0x05, /**< Video signal B/U, bits 0 to 3 */ TMDL_HDMITX_VID422_Y_11_TO_8 = 0x80, /**< Video signal G/Y, bits 11 to 8 (mirrored) */ TMDL_HDMITX_VID422_Y_7_TO_4 = 0x81, /**< Video signal G/Y, bits 7 to 4 (mirrored) */ TMDL_HDMITX_VID422_Y_3_TO_0 = 0x82, /**< Video signal G/Y, bits 3 to 0 (mirrored) */ TMDL_HDMITX_VID422_UV_11_TO_8 = 0x83, /**< Video signal B/U, bits 11 to 8 (mirrored) */ TMDL_HDMITX_VID422_UV_7_TO_4 = 0x84, /**< Video signal B/U, bits 7 to 4 (mirrored) */ TMDL_HDMITX_VID422_UV_3_TO_0 = 0x85, /**< Video signal B/U, bits 3 to 0 (mirrored) */ TMDL_HDMITX_VID422_NOT_CONNECTED = 0x100 /**< No signal connected */} tmdlHdmiTxCfgVideoSignal422;/** * \brief Video signals that can be input to video ports in semi-planar CCIR 656 mode */typedef enum{ TMDL_HDMITX_VIDCCIR_8_TO_11 = 0x00, /**< Video signal CCIR, bits 8 to 11 */ TMDL_HDMITX_VIDCCIR_4_TO_7 = 0x01, /**< Video signal CCIR, bits 4 to 7 */ TMDL_HDMITX_VIDCCIR_0_TO_3 = 0x02, /**< Video signal CCIR, bits 0 to 3 */ TMDL_HDMITX_VIDCCIR_11_TO_8 = 0x80, /**< Video signal CCIR, bits 11 to 8 (mirrored) */ TMDL_HDMITX_VIDCCIR_7_TO_4 = 0x81, /**< Video signal CCIR, bits 7 to 4 (mirrored) */ TMDL_HDMITX_VIDCCIR_3_TO_0 = 0x82, /**< Video signal CCIR, bits 3 to 0 (mirrored) */ TMDL_HDMITX_VIDCCIR_NOT_CONNECTED = 0x100 /**< No signal connected */} tmdlHdmiTxCfgVideoSignalCCIR656;typedef struct{ UInt8 commandTaskPriority; UInt8 commandTaskStackSize; UInt8 commandTaskQueueSize; UInt8 hdcpTaskPriority; UInt8 hdcpTaskStackSize; UInt8 i2cAddress; ptmbslHdmiTxSysFunc_t i2cReadFunction; ptmbslHdmiTxSysFunc_t i2cWriteFunction; ptmbslHdmiTxSysFuncEdid_t edidReadFunction; ptmdlHdmiTxCfgResolution_t pResolutionInfo; UInt8 resolutionNb; UInt8 *pMirrorTableCCIR656; UInt8 *pSwapTableCCIR656; UInt8 *pEnableVideoPortCCIR656; UInt8 *pGroundVideoPortCCIR656; UInt8 *pMirrorTableYUV422; UInt8 *pSwapTableYUV422; UInt8 *pEnableVideoPortYUV422; UInt8 *pGroundVideoPortYUV422; UInt8 *pMirrorTableYUV444; UInt8 *pSwapTableYUV444; UInt8 *pEnableVideoPortYUV444; UInt8 *pGroundVideoPortYUV444; UInt8 *pMirrorTableRGB444; UInt8 *pSwapTableRGB444; UInt8 *pEnableVideoPortRGB444; UInt8 *pGroundVideoPortRGB444; UInt8 *pEnableAudioPortSPDIF; UInt8 *pGroundAudioPortSPDIF; UInt8 *pEnableAudioClockPortSPDIF; UInt8 *pGroundAudioClockPortSPDIF; UInt8 *pEnableAudioPortI2S; UInt8 *pGroundAudioPortI2S; UInt8 *pEnableAudioPortI2S8C; UInt8 *pGroundAudioPortI2S8C; UInt8 *pEnableAudioClockPortI2S; UInt8 *pGroundAudioClockPortI2S; UInt8 *pEnableAudioPortOBA; UInt8 *pGroundAudioPortOBA; UInt8 *pEnableAudioClockPortOBA; UInt8 *pGroundAudioClockPortOBA; UInt8 *pEnableAudioPortDST; UInt8 *pGroundAudioPortDST; UInt8 *pEnableAudioClockPortDST; UInt8 *pGroundAudioClockPortDST; UInt8 *pEnableAudioPortHBR; UInt8 *pGroundAudioPortHBR; UInt8 *pEnableAudioClockPortHBR; UInt8 *pGroundAudioClockPortHBR; UInt16 keySeed; tmdlHdmiTxTestPattern_t pattern;} tmdlHdmiTxDriverConfigTable_t;/*============================================================================*//* FUNCTIONS DECLARATIONS *//*============================================================================*//****************************************************************************** \brief This function allows to the main driver to retrieve its configuration parameters. \param pConfig Pointer to the config structure \return The call result: - TM_OK: the call was successful - TMDL_ERR_DLHDMITX_BAD_UNIT_NUMBER: the unit number is wrong or the receiver instance is not initialised - TMDL_ERR_DLHDMITX_INCONSISTENT_PARAMS: an input parameter is inconsistent******************************************************************************/tmErrorCode_t tmdlHdmiTxCfgGetConfig( tmUnitSelect_t unit, tmdlHdmiTxDriverConfigTable_t *pConfig);#ifdef TMFL_CEC_AVAILABLE#include "tmdlHdmiCEC_Types.h"typedef struct{ UInt8 commandTaskPriority; UInt8 commandTaskStackSize; UInt8 commandTaskQueueSize; UInt8 i2cAddress; ptmdlHdmiCecSysFunc_t i2cReadFunction; ptmdlHdmiCecSysFunc_t i2cWriteFunction; tmdlHdmiCecCapabilities_t *pCapabilitiesList;} tmdlHdmiCecDriverConfigTable_t;tmErrorCode_t tmdlHdmiCecCfgGetConfig( tmUnitSelect_t unit, tmdlHdmiCecDriverConfigTable_t *pConfig);#endif#ifdef __cplusplus}#endif#endif /* TMDLHDMITX_CFG_H *//*============================================================================*//* END OF FILE *//*============================================================================*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -