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

📄 tmdlhdmitx_functions.h

📁 HDMI NXP9983 chipset controller driver
💻 H
📖 第 1 页 / 共 5 页
字号:
            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range******************************************************************************/tmErrorCode_t tmdlHdmiTxInstanceConfig(    tmInstance_t    instance);/*****************************************************************************//**    \brief Setup the instance with its configuration parameters. This function           allows basic instance configuration like enabling HDCP, choosing           HDCP encryption mode or enabling HDCP repeater mode.    \param instance   Instance identifier.    \param pSetupInfo Pointer to the structure containing all setup parameters.    \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_BAD_HANDLE: the handle number is wrong            - TMDL_ERR_DLHDMITX_INCONSISTENT_PARAMS: an input parameter is              inconsistent            - TMDL_ERR_DLHDMITX_RESOURCE_NOT_OWNED: the caller does not own              the resource            - TMDL_ERR_DLHDMITX_INVALID_STATE: the state is invalid for              the function******************************************************************************/tmErrorCode_t tmdlHdmiTxInstanceSetup(    tmInstance_t                    instance,    tmdlHdmiTxInstanceSetupInfo_t   *pSetupInfo);/*****************************************************************************//**    \brief Get instance setup parameters.    \param instance   Instance identifier.    \param pSetupInfo Pointer to the structure that will receive setup                      parameters.    \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_BAD_HANDLE: the handle number is wrong            - TMDL_ERR_DLHDMITX_INCONSISTENT_PARAMS: an input parameter is              inconsistent            - TMDL_ERR_DLHDMITX_RESOURCE_NOT_OWNED: the caller does not own              the resource******************************************************************************/tmErrorCode_t tmdlHdmiTxGetInstanceSetup(    tmInstance_t                    instance,    tmdlHdmiTxInstanceSetupInfo_t   *pSetupInfo);/*****************************************************************************//**    \brief Make device library handle an incoming interrupt. This function is           used by application to tell the device library that the hardware           sent an interrupt.    \param instance   Instance identifier.    \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_BAD_HANDLE: the handle number is wrong            - TMDL_ERR_DLHDMITX_RESOURCE_NOT_OWNED: the caller does not own              the resource            - TMDL_ERR_DLHDMITX_FULL: the queue is full ******************************************************************************/tmErrorCode_t tmdlHdmiTxHandleInterrupt(    tmInstance_t    instance);/*****************************************************************************//**    \brief Register event callbacks. Only one callback is registered through           this API. This callback will received the type of event that           occured throug a dedicated parameter and will be called as many           times as there is pending events.           This function is synchronous.           This function is ISR friendly.    \param instance   Instance identifier.    \param pCallback  Pointer to the callback function that will handle events                      from the devlib.    \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_BAD_HANDLE: the handle number is wrong            - TMDL_ERR_DLHDMITX_RESOURCE_NOT_OWNED: the caller does not own              the resource            - TMDL_ERR_DLHDMITX_INVALID_STATE: the state is invalid for              the function******************************************************************************/tmErrorCode_t tmdlHdmiTxRegisterCallbacks(    tmInstance_t            instance,    ptmdlHdmiTxCallback_t   pCallback);/*****************************************************************************//**    \brief This function allows enabling a specific event. By default, all           events are disabled, except input lock.    \param instance Instance identifier.    \param event    Event to enable.    \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_BAD_HANDLE: the handle number is wrong******************************************************************************/tmErrorCode_t tmdlHdmiTxEnableEvent(    tmInstance_t      instance,    tmdlHdmiTxEvent_t event);/*****************************************************************************//**    \brief This function allows disabling a specific event. By default, all           events are disabled, except input lock.    \param instance Instance identifier.    \param event    Event to disable.    \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_BAD_HANDLE: the handle number is wrong******************************************************************************/tmErrorCode_t tmdlHdmiTxDisableEvent(    tmInstance_t      instance,    tmdlHdmiTxEvent_t event);/*****************************************************************************//**    \brief Get specifications of a given video format. Application can use           this function to retreives all specifications (frequencies,           resolution, etc.) of a given IA/CEA 861-D video format.           This function is synchronous.           This function is ISR friendly.    \param instance         Instance identifier.    \param resolutionID     ID of the resolution to retrieve specs from.    \param pResolutionSpecs Pointer to the structure receiving specs.    \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_INCONSISTENT_PARAMS: an input parameter is              inconsistent            - TMDL_ERR_DLHDMITX_RESOLUTION_UNKNOWN: the resolution is unknown******************************************************************************/tmErrorCode_t tmdlHdmiTxGetVideoFormatSpecs(    tmInstance_t            instance,    tmdlHdmiTxVidFmt_t      resolutionID,    tmdlHdmiTxVidFmtSpecs_t *pResolutionSpecs);/*****************************************************************************//**    \brief Configures all input and output parameters : format, modes, rates,           etc. This is the main configuration function of the driver. Here           are transmitted all crucial input and output parameters of the           device.           This function is synchronous.           This function is not ISR friendly.    \param instance          Instance identifier.    \param videoInputConfig  Configuration of the input video.    \param videoOutputConfig Configuration of the output video.    \param audioInputConfig  Configuration of the input audio.    \param sinkType          Type of sink connected to the output of the Tx.    \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_BAD_HANDLE: the handle number is wrong            - TMBSL_ERR_HDMI_BAD_UNIT_NUMBER: bad transmitter unit number            - TMBSL_ERR_HDMI_BAD_PARAMETER: a parameter was out of range            - TMBSL_ERR_HDMI_NOT_INITIALIZED: transmitter not initialized            - TMBSL_ERR_HDMI_I2C_WRITE: failed when writing to the I2C bus            - TMBSL_ERR_HDMI_I2C_READ: failed when reading to the I2C bus            - TMBSL_ERR_HDMI_OPERATION_NOT_PERMITTED: not allowed in DVI mode******************************************************************************/tmErrorCode_t tmdlHdmiTxSetInputOutput(    tmInstance_t               instance,    tmdlHdmiTxVideoInConfig_t  videoInputConfig,    tmdlHdmiTxVideoOutConfig_t videoOutputConfig,    tmdlHdmiTxAudioInConfig_t  audioInputConfig,    tmdlHdmiTxSinkType_t       sinkType);/*****************************************************************************//**    \brief Configures audio input parameters : format, rate, etc.           This function is similar to tmdlHdmiTxSetInputOutput except that           video is not reconfigured.           This function is synchronous.           This function is not ISR friendly.    \param instance          Instance identifier.    \param audioInputConfig  Configuration of the input audio.    \param sinkType          Type of sink connected to the output of the Tx.    \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_BAD_HANDLE: the handle number is wrong            - TMBSL_ERR_HDMI_BAD_UNIT_NUMBER: bad transmitter unit number            - TMBSL_ERR_HDMI_BAD_PARAMETER: a parameter was out of range            - TMBSL_ERR_HDMI_NOT_INITIALIZED: transmitter not initialized            - TMBSL_ERR_HDMI_I2C_WRITE: failed when writing to the I2C bus            - TMBSL_ERR_HDMI_I2C_READ: failed when reading to the I2C bus            - TMBSL_ERR_HDMI_OPERATION_NOT_PERMITTED: not allowed in DVI mode******************************************************************************/tmErrorCode_t tmdlHdmiTxSetAudioInput(    tmInstance_t                instance,    tmdlHdmiTxAudioInConfig_t   audioInputConfig,    tmdlHdmiTxSinkType_t        sinkType);/*****************************************************************************//**    \brief Defines the content of AVI infoframe to be sent by Tx device.           This function is synchronous.           This function is not ISR friendly.    \param instance     Instance identifier.    \param enable       Enable/disable infoframe insertion.    \param pAviIfData   Pointer to the structure containing AVI infoframe                        parameters.     \return The call result:            - TM_OK: the call was successful            - TMDL_ERR_DLHDMITX_BAD_INSTANCE: the instance number is wrong or              out of range            - TMDL_ERR_DLHDMITX_BAD_HANDLE: the handle number is wrong            - TMDL_ERR_DLHDMITX_INCONSISTENT_PARAMS: an input parameter is              inconsistent            - TMBSL_ERR_HDMI_BAD_PARAMETER: a parameter was out of range            - TMBSL_ERR_HDMI_BAD_UNIT_NUMBER: bad transmitter unit number            - TMBSL_ERR_HDMI_I2C_WRITE: failed when writing to the I2C bus            - TMBSL_ERR_HDMI_I2C_READ: failed when reading to the I2C bus            - TMBSL_ERR_HDMI_NOT_INITIALIZED: transmitter not initialized            - TMBSL_ERR_HDMI_OPERATION_NOT_PERMITTED: not allowed in DVI mode******************************************************************************/tmErrorCode_t tmdlHdmiTxSetVideoInfoframe(    tmInstance_t            instance,    Bool                    enable,    tmdlHdmiTxAviIfData_t   *pAviIfData);/*****************************************************************************//**    \brief Defines the content of AUD infoframe to be sent by Tx device.           This function is synchronous.           This function is not ISR friendly.    \param instance     Instance identifier.    \param enable       Enable/disable infoframe insertion.    \param pAudIfData   Pointer to the structure containing AUD infoframe                        parameters.    \return The call result:            - TM_OK: the call was successful

⌨️ 快捷键说明

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