📄 tmdlhdmitx_functions.h
字号:
( tmInstance_t instance, Bool enable);/*****************************************************************************//** \brief Send one single NULL packet (only used for debug purpose). This function is synchronous. This function is not ISR friendly. \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 - 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 tmdlHdmiTxDebugSetSingleNullPacket( tmInstance_t instance);/*****************************************************************************//** \brief Set the audio output mute status. This function can be used to mute audio output, without muting video. This can be typically used when reconfiguring the audio HW after a sample rate change. This function is synchronous. This function is not ISR friendly. \param instance Instance identifier. \param muteStatus Mute status (True/False). \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_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 tmdlHdmiTxSetAudioMute( tmInstance_t instance, Bool audioMute);/*****************************************************************************//** \brief Reset audio CTS. This function is synchronous. This function is not ISR friendly. \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 - 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 tmdlHdmiTxResetAudioCts( tmInstance_t instance);/*****************************************************************************//** \brief Retrieve EDID Status from driver. This function is synchronous. This function is ISR friendly. \param instance Instance identifier. \param pEdidStatus Pointer to the array that will receive the EDID Status. \param pEdidBlkCount Pointer to the integer that will receive the number of read EDID block. \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_NOT_INITIALIZED: transmitter not initialized******************************************************************************/tmErrorCode_t tmdlHdmiTxGetEdidStatus( tmInstance_t instance, tmdlHdmiTxEdidStatus_t *pEdidStatus, UInt8 *pEdidBlkCount);/*****************************************************************************//** \brief Retrieves audio descriptors from receiver's EDID. This function parses the EDID of Tx device to get the relevant data. This function is synchronous. This function is not ISR friendly. \param instance Instance identifier. \param pAudioDescs Pointer to the array that will receive audio descriptors. \param maxAudioDescs Size of the array. \param pWrittenAudioDescs Pointer to the integer that will receive the actual number of written descriptors. \param pAudioFlags Pointer to the byte to receive Audio Capabilities Flags. \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_INVALID_STATE: the state is invalid for the function - TMBSL_ERR_HDMI_BAD_PARAMETER: a parameter was out of range - TMBSL_ERR_HDMI_BAD_UNIT_NUMBER: bad transmitter unit number - TMBSL_ERR_HDMI_RESOURCE_NOT_AVAILABLE : EDID not read - TMBSL_ERR_HDMI_NOT_INITIALIZED: transmitter not initialized******************************************************************************/tmErrorCode_t tmdlHdmiTxGetEdidAudioCaps( tmInstance_t instance, tmdlHdmiTxEdidAudioDesc_t *pAudioDescs, UInt maxAudioDescs, UInt *pWrittenAudioDescs, UInt8 *pAudioFlags);/*****************************************************************************//** \brief Retrieves supported video formats (short descriptors) from receiver's EDID. This function parses the EDID of Rx device to get the relevant data. This function is synchronous. This function is not ISR friendly. \param instance Instance identifier. \param pVideoDesc Pointer to the structure that will receive short video descriptors. \param maxVideoFormats Size of the array. \param pWrittenVideoFormats Pointer to the integer that will receive the actual number of written descriptors. \param pVideoFlags Pointer to the byte to receive Video Capability Flags. b7: underscan supported b6: YCbCr 4:4:4 supported b5: YCbCr 4:2:2 supported \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_INVALID_STATE: the state is invalid for the function - TMBSL_ERR_HDMI_BAD_PARAMETER: a parameter was out of range - TMBSL_ERR_HDMI_BAD_UNIT_NUMBER: bad transmitter unit number - TMBSL_ERR_HDMI_RESOURCE_NOT_AVAILABLE : EDID not read - TMBSL_ERR_HDMI_NOT_INITIALIZED: transmitter not initialized******************************************************************************/tmErrorCode_t tmdlHdmiTxGetEdidVideoCaps( tmInstance_t instance, tmdlHdmiTxShortVidDesc_t *pVideoDesc, UInt maxVideoFormats, UInt *pWrittenVideoFormats, UInt8 *pVideoFlags);/*****************************************************************************//** \brief Retrieves supported video formats (short descriptors) from receiver's EDID. This function parses the EDID of Rx device to get the relevant data. This function is synchronous. This function is not ISR friendly. \param instance Instance identifier. \param pPreferredVideoFormat Pointer to the array that will receive video timing descriptor. \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_INVALID_STATE: the state is invalid for the function - TMBSL_ERR_HDMI_BAD_PARAMETER: a parameter was out of range - TMBSL_ERR_HDMI_BAD_UNIT_NUMBER: bad transmitter unit number - TMBSL_ERR_HDMI_RESOURCE_NOT_AVAILABLE : EDID not read - TMBSL_ERR_HDMI_NOT_INITIALIZED: transmitter not initialized******************************************************************************/tmErrorCode_t tmdlHdmiTxGetEdidVideoPreferred( tmInstance_t instance, tmdlHdmiTxEdidVideoTimings_t *pPreferredVideoFormat);/*****************************************************************************//** \brief Retrieves the sink type from receiver's EDID (HDMI or DVI). This function parses the EDID of Rx device to get the relevant data. This function is synchronous. This function is not ISR friendly. \param instance Instance identifier. \param pSinkType Pointer to the array that will receive sink type. \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_BAD_PARAMETER: a parameter is invalid or out of range - TMDL_ERR_DLHDMITX_NO_RESOURCES: the resource is not available - TMDL_ERR_DLHDMITX_BAD_UNIT_NUMBER: bad transmitter unit number - TMDL_ERR_DLHDMITX_NOT_INITIALIZED: the transmitter is not initialized - TMDL_ERR_DLHDMITX_INVALID_STATE: the state is invalid for the function******************************************************************************/tmErrorCode_t tmdlHdmiTxGetEdidSinkType( tmInstance_t instance, tmdlHdmiTxSinkType_t *pSinkType);/*****************************************************************************//** \brief Retrieves source address from receivers's EDID. This function parses the EDID of Rx device to get the relevant data. This function is synchronous. This function is not ISR friendly. \param instance Instance identifier. \param pSourceAddress Pointer to the integer that will receive the EDID source address. \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_INVALID_STATE: the state is invalid for the function - TMBSL_ERR_HDMI_BAD_PARAMETER: a parameter was out of range - TMBSL_ERR_HDMI_BAD_UNIT_NUMBER: bad transmitter unit number - TMBSL_ERR_HDMI_RESOURCE_NOT_AVAILABLE : EDID not read - TMBSL_ERR_HDMI_NOT_INITIALIZED: transmitter not initialized******************************************************************************/tmErrorCode_t tmdlHdmiTxGetEdidSourceAddress( tmInstance_t instance, UInt16 *pSourceAddress);/*****************************************************************************//** \brief Resets Tx device. This function is synchronous. This function is not ISR friendly.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -