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

📄 tmdlhdmitx_cfg.c

📁 HDMI NXP9983 chipset controller driver
💻 C
📖 第 1 页 / 共 3 页
字号:
    {         TMDL_HDMITX_VID422_NOT_CONNECTED,   /* Signals connected to VPA[0..3] */        TMDL_HDMITX_VID422_NOT_CONNECTED,   /* Signals connected to VPA[4..7] */        TMDL_HDMITX_VID422_Y_4_TO_7,        /* Signals connected to VPB[0..3] */        TMDL_HDMITX_VID422_Y_8_TO_11,       /* Signals connected to VPB[4..7] */        TMDL_HDMITX_VID422_UV_4_TO_7,       /* Signals connected to VPC[0..3] */        TMDL_HDMITX_VID422_UV_8_TO_11       /* Signals connected to VPC[4..7] */    }};#ifdef TMFL_OS_WINDOWS          /* OS Windows */tmdlHdmiTxCfgVideoSignalCCIR656 videoPortMapping_CCIR656[MAX_UNITS][6] = {#else                           /* OS ARM7 */const tmdlHdmiTxCfgVideoSignalCCIR656 videoPortMapping_CCIR656[MAX_UNITS][6] = {#endif                          /* endif TMFL_OS_WINDOWS */    {         TMDL_HDMITX_VIDCCIR_4_TO_7,         /* Signals connected to VPA[0..3] */        TMDL_HDMITX_VIDCCIR_8_TO_11,        /* Signals connected to VPA[4..7] */        TMDL_HDMITX_VIDCCIR_NOT_CONNECTED,  /* Signals connected to VPB[0..3] */        TMDL_HDMITX_VIDCCIR_NOT_CONNECTED,  /* Signals connected to VPB[4..7] */        TMDL_HDMITX_VIDCCIR_NOT_CONNECTED,  /* Signals connected to VPC[0..3] */        TMDL_HDMITX_VIDCCIR_NOT_CONNECTED   /* Signals connected to VPC[4..7] */    },    {        TMDL_HDMITX_VIDCCIR_4_TO_7,         /* Signals connected to VPA[0..3] */        TMDL_HDMITX_VIDCCIR_8_TO_11,        /* Signals connected to VPA[4..7] */        TMDL_HDMITX_VIDCCIR_NOT_CONNECTED,  /* Signals connected to VPB[0..3] */        TMDL_HDMITX_VIDCCIR_NOT_CONNECTED,  /* Signals connected to VPB[4..7] */        TMDL_HDMITX_VIDCCIR_NOT_CONNECTED,  /* Signals connected to VPC[0..3] */        TMDL_HDMITX_VIDCCIR_NOT_CONNECTED   /* Signals connected to VPC[4..7] */    }};/* Audio port configuration for SPDIF                                         *//* Here you can specify the audio port routing configuration for SPDIF input. *//* enableAudioPortSPDIF and groundAudioPortSPDIF should be filled with a      *//* value build as follows : each bit represent an audio port, LSB is port 0.  *//* enableAudioClockPortSPDIF and groundAudioClockPortSPDIF can be configured  *//* with the corresponding enums (See file tmdlHdmiTx_cfg.h for more details). */UInt8 enableAudioPortSPDIF[MAX_UNITS]      = {0x40, 0x40};UInt8 enableAudioClockPortSPDIF[MAX_UNITS] = {DISABLE_AUDIO_CLOCK_PORT, DISABLE_AUDIO_CLOCK_PORT};UInt8 groundAudioPortSPDIF[MAX_UNITS]      = {0xBF, 0xBF};UInt8 groundAudioClockPortSPDIF[MAX_UNITS] = {ENABLE_AUDIO_CLOCK_PORT_PULLDOWN, ENABLE_AUDIO_CLOCK_PORT_PULLDOWN};/* Audio port configuration for I2S                                           *//* Here you can specify the audio port routing configuration for SPDIF input. *//* enableAudioPortI2S and groundAudioPortI2S should be filled with a          *//* value build as follows : each bit represent an audio port, LSB is port 0.  *//* enableAudioClockPortI2S and groundAudioClockPortI2S can be configured      *//* with the corresponding enums (See file tmdlHdmiTx_cfg.h for more details). */UInt8 enableAudioPortI2S[MAX_UNITS]        = {0x03, 0x03};UInt8 enableAudioPortI2S8C[MAX_UNITS]      = {0x1F, 0x1F};UInt8 enableAudioClockPortI2S[MAX_UNITS]   = {ENABLE_AUDIO_CLOCK_PORT, ENABLE_AUDIO_CLOCK_PORT};UInt8 groundAudioPortI2S[MAX_UNITS]        = {0xFC, 0xFC};UInt8 groundAudioPortI2S8C[MAX_UNITS]      = {0xE0, 0xE0};UInt8 groundAudioClockPortI2S[MAX_UNITS]   = {DISABLE_AUDIO_CLOCK_PORT_PULLDOWN, DISABLE_AUDIO_CLOCK_PORT_PULLDOWN};/* Audio port configuration for OBA                                           *//* Here you can specify the audio port routing configuration for SPDIF input. *//* enableAudioPortOBA and groundAudioPortOBA should be filled with a          *//* value build as follows : each bit represent an audio port, LSB is port 0.  *//* enableAudioClockPortOBA and groundAudioClockPortOBA can be configured      *//* with the corresponding enums (See file tmdlHdmiTx_cfg.h for more details). */UInt8 enableAudioPortOBA[MAX_UNITS]        = {0xFF, 0xFF};UInt8 enableAudioClockPortOBA[MAX_UNITS]   = {ENABLE_AUDIO_CLOCK_PORT, ENABLE_AUDIO_CLOCK_PORT};UInt8 groundAudioPortOBA[MAX_UNITS]        = {0x00, 0x00};UInt8 groundAudioClockPortOBA[MAX_UNITS]   = {DISABLE_AUDIO_CLOCK_PORT_PULLDOWN, DISABLE_AUDIO_CLOCK_PORT_PULLDOWN};/* Audio port configuration for DST                                           *//* Here you can specify the audio port routing configuration for SPDIF input. *//* enableAudioPortDST and groundAudioPortDST should be filled with a          *//* value build as follows : each bit represent an audio port, LSB is port 0.  *//* enableAudioClockPortDST and groundAudioClockPortDST can be configured      *//* with the corresponding enums (See file tmdlHdmiTx_cfg.h for more details). */UInt8 enableAudioPortDST[MAX_UNITS]        = {0xFF, 0xFF};UInt8 enableAudioClockPortDST[MAX_UNITS]   = {ENABLE_AUDIO_CLOCK_PORT, ENABLE_AUDIO_CLOCK_PORT};UInt8 groundAudioPortDST[MAX_UNITS]        = {0x00, 0x00};UInt8 groundAudioClockPortDST[MAX_UNITS]   = {DISABLE_AUDIO_CLOCK_PORT_PULLDOWN, DISABLE_AUDIO_CLOCK_PORT_PULLDOWN};/* Audio port configuration for HBR                                           *//* Here you can specify the audio port routing configuration for SPDIF input. *//* enableAudioPortHBR and groundAudioPortHBR should be filled with a          *//* value build as follows : each bit represent an audio port, LSB is port 0.  *//* enableAudioClockPortHBR and groundAudioClockPortHBR can be configured      *//* with the corresponding enums (See file tmdlHdmiTx_cfg.h for more details). */UInt8 enableAudioPortHBR[MAX_UNITS]        = {0x1F, 0x1F};UInt8 enableAudioClockPortHBR[MAX_UNITS]   = {ENABLE_AUDIO_CLOCK_PORT, ENABLE_AUDIO_CLOCK_PORT};UInt8 groundAudioPortHBR[MAX_UNITS]        = {0xE0, 0xE0};UInt8 groundAudioClockPortHBR[MAX_UNITS]   = {DISABLE_AUDIO_CLOCK_PORT_PULLDOWN, DISABLE_AUDIO_CLOCK_PORT_PULLDOWN};/* Do not modify, those tables are filled dynamically by dlHdmiTxGenerateCfgVideoPortTables API */UInt8 mirrorTableCCIR656[MAX_UNITS][6] = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};UInt8 swapTableCCIR656[MAX_UNITS][6] = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};UInt8 enableVideoPortCCIR656[MAX_UNITS][3] = {{0x00, 0x00, 0x00},{0x00, 0x00, 0x00}};UInt8 groundVideoPortCCIR656[MAX_UNITS][3] = {{0xFF, 0xFF, 0xFF},{0xFF, 0xFF, 0xFF}};UInt8 mirrorTableYUV422[MAX_UNITS][6] = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};UInt8 swapTableYUV422[MAX_UNITS][6] = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};UInt8 enableVideoPortYUV422[MAX_UNITS][3] = {{0x00, 0x00, 0x00},{0x00, 0x00, 0x00}};UInt8 groundVideoPortYUV422[MAX_UNITS][3] = {{0xFF, 0xFF, 0xFF},{0xFF, 0xFF, 0xFF}};UInt8 mirrorTableYUV444[MAX_UNITS][6] = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};UInt8 swapTableYUV444[MAX_UNITS][6] = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};UInt8 enableVideoPortYUV444[MAX_UNITS][3] = {{0x00, 0x00, 0x00},{0x00, 0x00, 0x00}};UInt8 groundVideoPortYUV444[MAX_UNITS][3] = {{0xFF, 0xFF, 0xFF},{0xFF, 0xFF, 0xFF}};UInt8 mirrorTableRGB444[MAX_UNITS][6] = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};UInt8 swapTableRGB444[MAX_UNITS][6] = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};UInt8 enableVideoPortRGB444[MAX_UNITS][3] = {{0x00, 0x00, 0x00},{0x00, 0x00, 0x00}};UInt8 groundVideoPortRGB444[MAX_UNITS][3] = {{0xFF, 0xFF, 0xFF},{0xFF, 0xFF, 0xFF}};/** * \brief Configuration Tables. This table can be modified by the customer             to choose its prefered configuration. */#ifdef TMFL_OS_WINDOWS         /* OS Windows */tmdlHdmiTxDriverConfigTable_t driverConfigTableTx[MAX_UNITS] = {    {        COMMAND_TASK_PRIORITY_0,        COMMAND_TASK_STACKSIZE_0,        COMMAND_TASK_QUEUESIZE_0,        HDCP_CHECK_TASK_PRIORITY_0,        HDCP_CHECK_TASK_STACKSIZE_0,        UNIT_I2C_ADDRESS_0,        windowsI2cReadFunction,        windowsI2cWriteFunction,        edidReadFunction,        Null,                           /* filled dynamically, do not modify */        RESOLUTION_NB,        &mirrorTableCCIR656[0][0],      /* filled dynamically, do not modify */        &swapTableCCIR656[0][0],        /* filled dynamically, do not modify */        &enableVideoPortCCIR656[0][0],  /* filled dynamically, do not modify */        &groundVideoPortCCIR656[0][0],  /* filled dynamically, do not modify */        &mirrorTableYUV422[0][0],       /* filled dynamically, do not modify */        &swapTableYUV422[0][0],         /* filled dynamically, do not modify */        &enableVideoPortYUV422[0][0],   /* filled dynamically, do not modify */        &groundVideoPortYUV422[0][0],   /* filled dynamically, do not modify */        &mirrorTableYUV444[0][0],       /* filled dynamically, do not modify */        &swapTableYUV444[0][0],         /* filled dynamically, do not modify */        &enableVideoPortYUV444[0][0],   /* filled dynamically, do not modify */        &groundVideoPortYUV444[0][0],   /* filled dynamically, do not modify */        &mirrorTableRGB444[0][0],       /* filled dynamically, do not modify */        &swapTableRGB444[0][0],         /* filled dynamically, do not modify */        &enableVideoPortRGB444[0][0],   /* filled dynamically, do not modify */        &groundVideoPortRGB444[0][0],   /* filled dynamically, do not modify */        &enableAudioPortSPDIF[0],        &groundAudioPortSPDIF[0],        &enableAudioClockPortSPDIF[0],        &groundAudioClockPortSPDIF[0],        &enableAudioPortI2S[0],        &groundAudioPortI2S[0],        &enableAudioPortI2S8C[0],        &groundAudioPortI2S8C[0],        &enableAudioClockPortI2S[0],        &groundAudioClockPortI2S[0],        &enableAudioPortOBA[0],        &groundAudioPortOBA[0],        &enableAudioClockPortOBA[0],        &groundAudioClockPortOBA[0],        &enableAudioPortDST[0],        &groundAudioPortDST[0],        &enableAudioClockPortDST[0],        &groundAudioClockPortDST[0],        &enableAudioPortHBR[0],        &groundAudioPortHBR[0],        &enableAudioClockPortHBR[0],        &groundAudioClockPortHBR[0],        KEY_SEED,        TMDL_HDMITX_PATTERN_BLUE    },    {        COMMAND_TASK_PRIORITY_1,        COMMAND_TASK_STACKSIZE_1,        COMMAND_TASK_QUEUESIZE_1,        HDCP_CHECK_TASK_PRIORITY_1,        HDCP_CHECK_TASK_STACKSIZE_1,        UNIT_I2C_ADDRESS_1,        windowsI2cReadFunction,        windowsI2cWriteFunction,        edidReadFunction,        Null,                           /* filled dynamically, do not modify */        RESOLUTION_NB,        &mirrorTableCCIR656[1][0],      /* filled dynamically, do not modify */        &swapTableCCIR656[1][0],        /* filled dynamically, do not modify */        &enableVideoPortCCIR656[1][0],  /* filled dynamically, do not modify */        &groundVideoPortCCIR656[1][0],  /* filled dynamically, do not modify */        &mirrorTableYUV422[1][0],       /* filled dynamically, do not modify */        &swapTableYUV422[1][0],         /* filled dynamically, do not modify */        &enableVideoPortYUV422[1][0],   /* filled dynamically, do not modify */        &groundVideoPortYUV422[1][0],   /* filled dynamically, do not modify */        &mirrorTableYUV444[1][0],       /* filled dynamically, do not modify */        &swapTableYUV444[1][0],         /* filled dynamically, do not modify */        &enableVideoPortYUV444[1][0],   /* filled dynamically, do not modify */        &groundVideoPortYUV444[1][0],   /* filled dynamically, do not modify */        &mirrorTableRGB444[1][0],       /* filled dynamically, do not modify */        &swapTableRGB444[1][0],         /* filled dynamically, do not modify */        &enableVideoPortRGB444[1][0],   /* filled dynamically, do not modify */        &groundVideoPortRGB444[1][0],   /* filled dynamically, do not modify */        &enableAudioPortSPDIF[1],        &groundAudioPortSPDIF[1],        &enableAudioClockPortSPDIF[1],        &groundAudioClockPortSPDIF[1],        &enableAudioPortI2S[1],        &groundAudioPortI2S[1],        &enableAudioPortI2S8C[1],        &groundAudioPortI2S8C[1],        &enableAudioClockPortI2S[1],        &groundAudioClockPortI2S[1],        &enableAudioPortOBA[1],        &groundAudioPortOBA[1],        &enableAudioClockPortOBA[1],        &groundAudioClockPortOBA[1],        &enableAudioPortDST[1],        &groundAudioPortDST[1],        &enableAudioClockPortDST[1],        &groundAudioClockPortDST[1],        &enableAudioPortHBR[1],        &groundAudioPortHBR[1],        &enableAudioClockPortHBR[1],        &groundAudioClockPortHBR[1],        KEY_SEED,        TMDL_HDMITX_PATTERN_BLUE    }};#else            /* OS ARM7 */tmdlHdmiTxDriverConfigTable_t driverConfigTableTx[MAX_UNITS] = {    {        COMMAND_TASK_PRIORITY_0,        COMMAND_TASK_STACKSIZE_0,        COMMAND_TASK_QUEUESIZE_0,        HDCP_CHECK_TASK_PRIORITY_0,        HDCP_CHECK_TASK_STACKSIZE_0,        UNIT_I2C_ADDRESS_0,        RtxTxI2cReadFunction,        RtxTxI2cWriteFunction,        edidReadFunction,        Null,                           /* filled dynamically, do not modify */        RESOLUTION_NB,        &mirrorTableCCIR656[0][0],      /* filled dynamically, do not modify */        &swapTableCCIR656[0][0],        /* filled dynamically, do not modify */        &enableVideoPortCCIR656[0][0],  /* filled dynamically, do not modify */        &groundVideoPortCCIR656[0][0],  /* filled dynamically, do not modify */        &mirrorTableYUV422[0][0],       /* filled dynamically, do not modify */        &swapTableYUV422[0][0],         /* filled dynamically, do not modify */        &enableVideoPortYUV422[0][0],   /* filled dynamically, do not modify */        &groundVideoPortYUV422[0][0],   /* filled dynamically, do not modify */        &mirrorTableYUV444[0][0],       /* filled dynamically, do not modify */        &swapTableYUV444[0][0],         /* filled dynamically, do not modify */        &enableVideoPortYUV444[0][0],   /* filled dynamically, do not modify */        &groundVideoPortYUV444[0][0],   /* filled dynamically, do not modify */        &mirrorTableRGB444[0][0],       /* filled dynamically, do not modify */        &swapTableRGB444[0][0],         /* filled dynamically, do not modify */        &enableVideoPortRGB444[0][0],   /* filled dynamically, do not modify */        &groundVideoPortRGB444[0][0],   /* filled dynamically, do not modify */        &enableAudioPortSPDIF[0],        &groundAudioPortSPDIF[0],        &enableAudioClockPortSPDIF[0],        &groundAudioClockPortSPDIF[0],        &enableAudioPortI2S[0],        &groundAudioPortI2S[0],        &enableAudioPortI2S8C[0],        &groundAudioPortI2S8C[0],        &enableAudioClockPortI2S[0],        &groundAudioClockPortI2S[0],        &enableAudioPortOBA[0],        &groundAudioPortOBA[0],        &enableAudioClockPortOBA[0],        &groundAudioClockPortOBA[0],        &enableAudioPortDST[0],        &groundAudioPortDST[0],        &enableAudioClockPortDST[0],        &groundAudioClockPortDST[0],        &enableAudioPortHBR[0],        &groundAudioPortHBR[0],        &enableAudioClockPortHBR[0],        &groundAudioClockPortHBR[0],        KEY_SEED,        TMDL_HDMITX_PATTERN_BLUE    },    {        COMMAND_TASK_PRIORITY_1,        COMMAND_TASK_STACKSIZE_1,        COMMAND_TASK_QUEUESIZE_1,        HDCP_CHECK_TASK_PRIORITY_1,        HDCP_CHECK_TASK_STACKSIZE_1,        UNIT_I2C_ADDRESS_1,        RtxTxI2cReadFunction,        RtxTxI2cWriteFunction,        edidReadFunction,        Null,                           /* filled dynamically, do not modify */        RESOLUTION_NB,        &mirrorTableCCIR656[1][0],      /* filled dynamically, do not modify */        &swapTableCCIR656[1][0],        /* filled dynamically, do not modify */        &enableVideoPortCCIR656[1][0],  /* filled dynamically, do not modify */        &groundVideoPortCCIR656[1][0],  /* filled dynamically, do not modify */        &mirrorTableYUV422[1][0],       /* filled dynamically, do not modify */        &swapTableYUV422[1][0],         /* filled dynamically, do not modify */        &enableVideoPortYUV422[1][0],   /* filled dynamically, do not modify */        &groundVideoPortYUV422[1][0],   /* filled dynamically, do not modify */        &mirrorTableYUV444[1][0],       /* filled dynamically, do not modify */        &swapTableYUV444[1][0],         /* filled dynamically, do not modify */        &enableVideoPortYUV444[1][0],   /* filled dynamically, do not modify */        &groundVideoPortYUV444[1][0],   /* filled dynamically, do not modify */        &mirrorTableRGB444[1][0],       /* filled dynamically, do not modify */        &swapTableRGB444[1][0],         /* filled dynamically, do not modify */

⌨️ 快捷键说明

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