![]() |
v_hdmirx
Xilinx SDK Drivers API Documentation
|
This is the main file for Xilinx HDMI RX core.
Please see xv_hdmirx.h for more details of the driver.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 gm, mg 11/03/15 Initial release. 1.01 MG 30/12/15 Added DDC HDCP 2.2 calls 1.02 yh 15/01/16 Added 3D Video support 1.03 MG 19/02/16 Added link error callback 1.04 MG 08/03/16 Updated XV_HdmiRx_SetStream to use RefClk 1.05 MG 27/05/16 Updated XV_HdmiRx_CfgInitialize 1.06 YH 18/07/16 Replace xil_printf with xdbg_printf 1.07 YH 25/07/16 Used UINTPTR instead of u32 for BaseAddress XV_HdmiRx_CfgInitialize 1.08 YH 18/08/16 squash unused variable compiler warning 1.09 YH 29/08/16 Set Match to FALSE when HTotal = 0 1.10 MG 02/03/17 Fixed YUV420 reading in function XV_HdmiRx_GetVideoTiming 1.40 YH 19/07/17 Clean up Print Statement line ending to "\r\n" 05/09/17 Enhanced Video Timing checking 2.00 YH 16/11/17 Added dedicated reset for each clock domain YH 16/11/17 Added bridge overflow interrupt EB 18/01/18 Moved VicTable to Hdmi Common library EB 26/01/18 Updated XV_HdmiRx_GetVideoTiming to use XVidC_GetVideoModeIdExtensive
Functions | |
int | XV_HdmiRx_CfgInitialize (XV_HdmiRx *InstancePtr, XV_HdmiRx_Config *CfgPtr, UINTPTR EffectiveAddr) |
This function initializes the HDMI RX core. More... | |
void | XV_HdmiRx_Clear (XV_HdmiRx *InstancePtr) |
This function clears the HDMI RX variables and sets them to the defaults. More... | |
int | XV_HdmiRx_SetStream (XV_HdmiRx *InstancePtr, XVidC_PixelsPerClock Ppc, u32 Clock) |
This function sets the HDMI RX stream parameters. More... | |
void | XV_HdmiRx_INT_VRST (XV_HdmiRx *InstancePtr, u8 Reset) |
This function asserts or releases the HDMI RX Internal VRST. More... | |
void | XV_HdmiRx_INT_LRST (XV_HdmiRx *InstancePtr, u8 Reset) |
This function asserts or releases the HDMI RX Internal LRST. More... | |
void | XV_HdmiRx_EXT_VRST (XV_HdmiRx *InstancePtr, u8 Reset) |
This function asserts or releases the HDMI RX External VRST. More... | |
void | XV_HdmiRx_EXT_SYSRST (XV_HdmiRx *InstancePtr, u8 Reset) |
This function asserts or releases the HDMI RX External SYSRST. More... | |
int | XV_HdmiRx_SetPixelRate (XV_HdmiRx *InstancePtr) |
This function sets the pixel rate. More... | |
void | XV_HdmiRx_SetColorFormat (XV_HdmiRx *InstancePtr) |
This function sets the color format. More... | |
int | XV_HdmiRx_SetHpd (XV_HdmiRx *InstancePtr, u8 SetClr) |
This function enables/clear Hot-Plug-Detect. More... | |
u32 | XV_HdmiRx_GetLinkStatus (XV_HdmiRx *InstancePtr, u8 Type) |
This function provides status of the HDMI RX core Link Status peripheral. More... | |
int | XV_HdmiRx_IsLinkStatusErrMax (XV_HdmiRx *InstancePtr) |
This function provides status of one of the link error counters reached the maximum value. More... | |
void | XV_HdmiRx_ClearLinkStatus (XV_HdmiRx *InstancePtr) |
This function clears the link error counters. More... | |
u32 | XV_HdmiRx_GetAcrCts (XV_HdmiRx *InstancePtr) |
This function provides audio clock regenerating CTS (Cycle-Time Stamp) value at the HDMI sink device. More... | |
u32 | XV_HdmiRx_GetAcrN (XV_HdmiRx *InstancePtr) |
This function provides audio clock regenerating factor N value. More... | |
u16 | XV_HdmiRx_DdcGetEdidWords (XV_HdmiRx *InstancePtr) |
This function gets the size of the EDID buffer of the DDC slave. More... | |
int | XV_HdmiRx_DdcLoadEdid (XV_HdmiRx *InstancePtr, u8 *EdidData, u16 Length) |
This function loads the EDID data into the DDC slave. More... | |
void | XV_HdmiRx_DdcHdcpSetAddress (XV_HdmiRx *InstancePtr, u32 Address) |
This function sets the HDCP address in the DDC peripheral. More... | |
void | XV_HdmiRx_DdcHdcpWriteData (XV_HdmiRx *InstancePtr, u32 Data) |
This function writes HDCP data in the DDC peripheral. More... | |
u32 | XV_HdmiRx_DdcHdcpReadData (XV_HdmiRx *InstancePtr) |
This function reads HDCP data from the DDC peripheral. More... | |
u16 | XV_HdmiRx_DdcGetHdcpWriteMessageBufferWords (XV_HdmiRx *InstancePtr) |
This function gets the number of bytes of the HDCP 2.2 write buffer in the DDC slave. More... | |
int | XV_HdmiRx_DdcIsHdcpWriteMessageBufferEmpty (XV_HdmiRx *InstancePtr) |
This function returns the status of the HDCP 2.2 write buffer in the DDC slave. More... | |
u16 | XV_HdmiRx_DdcGetHdcpReadMessageBufferWords (XV_HdmiRx *InstancePtr) |
This function gets the number of bytes of the HDCP 2.2 read buffer in the DDC slave. More... | |
int | XV_HdmiRx_DdcIsHdcpReadMessageBufferEmpty (XV_HdmiRx *InstancePtr) |
This function returns the status of the HDCP 2.2 read message buffer in the DDC slave. More... | |
void | XV_HdmiRx_DebugInfo (XV_HdmiRx *InstancePtr) |
This function prints stream and timing information on STDIO/Uart console. More... | |
int | XV_HdmiRx_IsStreamUp (XV_HdmiRx *InstancePtr) |
This function provides status of the stream. More... | |
int | XV_HdmiRx_IsStreamScrambled (XV_HdmiRx *InstancePtr) |
This function provides the stream scrambler status. More... | |
int | XV_HdmiRx_IsStreamConnected (XV_HdmiRx *InstancePtr) |
This function provides the stream connected status. More... | |
int | XV_HdmiRx_GetTmdsClockRatio (XV_HdmiRx *InstancePtr) |
This function gets the SCDC TMDS clock ratio bit. More... | |
u8 | XV_HdmiRx_GetAviVic (XV_HdmiRx *InstancePtr) |
This function returns the AVI VIC (captured by the AUX peripheral) More... | |
XVidC_ColorFormat | XV_HdmiRx_GetAviColorSpace (XV_HdmiRx *InstancePtr) |
This function returns the AVI colorspace (captured by the AUX peripheral) More... | |
XVidC_ColorDepth | XV_HdmiRx_GetGcpColorDepth (XV_HdmiRx *InstancePtr) |
This function returns the GCP color depth (captured by the AUX peripheral) More... | |
u32 | XV_HdmiRx_Divide (u32 Dividend, u32 Divisor) |
This function calculates the divider for the frame calculation. More... | |
XVidC_VideoMode | XV_HdmiRx_LookupVmId (u8 Vic) |
This function searches for the video mode based on the vic. More... | |
int | XV_HdmiRx_GetVideoProperties (XV_HdmiRx *InstancePtr) |
This function reads the video properties from the aux peripheral. More... | |
int | XV_HdmiRx_GetVideoTiming (XV_HdmiRx *InstancePtr) |
This function reads the video timing from the VTD peripheral. More... | |
int XV_HdmiRx_CfgInitialize | ( | XV_HdmiRx * | InstancePtr, |
XV_HdmiRx_Config * | CfgPtr, | ||
UINTPTR | EffectiveAddr | ||
) |
This function initializes the HDMI RX core.
This function must be called prior to using the HDMI RX core. Initialization of the HDMI RX includes setting up the instance data, and ensuring the hardware is in a quiescent state.
InstancePtr | is a pointer to the XHdmiRx core instance. |
CfgPtr | points to the configuration structure associated with the HDMI RX core. |
EffectiveAddr | is the base address of the device. If address translation is being used, then this parameter must reflect the virtual base address. Otherwise, the physical address should be used. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HdmiRx::ConnectCallback, XV_HDMIRX_MASK_16, XV_HDMIRX_PIO_ID, XV_HDMIRX_PIO_ID_OFFSET, XV_HdmiRx_ReadReg, and XV_HDMIRX_SHIFT_16.
void XV_HdmiRx_Clear | ( | XV_HdmiRx * | InstancePtr | ) |
This function clears the HDMI RX variables and sets them to the defaults.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_AudioStream::Active, XV_HdmiRx::AudCts, XV_HdmiRx::AudFormat, XV_HdmiRx_Stream::Audio, XV_HdmiRx::AudN, XV_HdmiRx::Aux, XV_HdmiRx_AudioStream::Channels, XV_HdmiRx_Stream::IsHdmi, XV_HdmiRx::IsStreamDownCallbackSet, XV_HdmiRx_Stream::State, XV_HdmiRx::Stream, XV_HdmiRx::StreamDownCallback, XV_HdmiRx::StreamDownRef, XV_HdmiRx_Stream::Vic, XV_HdmiRx_Stream::Video, and XV_HDMIRX_STATE_STREAM_DOWN.
void XV_HdmiRx_ClearLinkStatus | ( | XV_HdmiRx * | InstancePtr | ) |
This function clears the link error counters.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_LNKSTA_CTRL_CLR_OFFSET, XV_HDMIRX_LNKSTA_CTRL_ERR_CLR_MASK, XV_HDMIRX_LNKSTA_CTRL_SET_OFFSET, and XV_HdmiRx_WriteReg.
u16 XV_HdmiRx_DdcGetEdidWords | ( | XV_HdmiRx * | InstancePtr | ) |
This function gets the size of the EDID buffer of the DDC slave.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_DDC_EDID_STA_OFFSET, XV_HDMIRX_DDC_STA_EDID_WORDS_MASK, XV_HDMIRX_DDC_STA_EDID_WORDS_SHIFT, and XV_HdmiRx_ReadReg.
Referenced by XV_HdmiRx_DdcLoadEdid().
u16 XV_HdmiRx_DdcGetHdcpReadMessageBufferWords | ( | XV_HdmiRx * | InstancePtr | ) |
This function gets the number of bytes of the HDCP 2.2 read buffer in the DDC slave.
InstancePtr | is a pointer to the XHdmi_Rx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_DDC_HDCP_STA_OFFSET, XV_HDMIRX_DDC_STA_HDCP_RMSG_WORDS_MASK, XV_HDMIRX_DDC_STA_HDCP_RMSG_WORDS_SHIFT, and XV_HdmiRx_ReadReg.
u16 XV_HdmiRx_DdcGetHdcpWriteMessageBufferWords | ( | XV_HdmiRx * | InstancePtr | ) |
This function gets the number of bytes of the HDCP 2.2 write buffer in the DDC slave.
InstancePtr | is a pointer to the XHdmi_Rx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_DDC_HDCP_STA_OFFSET, XV_HDMIRX_DDC_STA_HDCP_WMSG_WORDS_MASK, XV_HDMIRX_DDC_STA_HDCP_WMSG_WORDS_SHIFT, and XV_HdmiRx_ReadReg.
u32 XV_HdmiRx_DdcHdcpReadData | ( | XV_HdmiRx * | InstancePtr | ) |
This function reads HDCP data from the DDC peripheral.
This is implemented as a function and not a macro, so the HDCP driver can bind the function call with a handler.
InstancePtr | is a pointer to the XHdmi_Rx core instance. |
References XV_HDMIRX_DDC_HDCP_DATA_OFFSET, and XV_HdmiRx_ReadReg.
void XV_HdmiRx_DdcHdcpSetAddress | ( | XV_HdmiRx * | InstancePtr, |
u32 | Address | ||
) |
This function sets the HDCP address in the DDC peripheral.
This is implemented as a function and not a macro, so the HDCP driver can bind the function call with a handler.
InstancePtr | is a pointer to the XHdmi_Rx core instance. |
Address | is the HDCP address. |
References XV_HDMIRX_DDC_HDCP_ADDRESS_OFFSET, and XV_HdmiRx_WriteReg.
void XV_HdmiRx_DdcHdcpWriteData | ( | XV_HdmiRx * | InstancePtr, |
u32 | Data | ||
) |
This function writes HDCP data in the DDC peripheral.
This is implemented as a function and not a macro, so the HDCP driver can bind the function call with a handler.
InstancePtr | is a pointer to the XHdmi_Rx core instance. |
Data | is the HDCP data to be written. |
References XV_HDMIRX_DDC_HDCP_DATA_OFFSET, and XV_HdmiRx_WriteReg.
int XV_HdmiRx_DdcIsHdcpReadMessageBufferEmpty | ( | XV_HdmiRx * | InstancePtr | ) |
This function returns the status of the HDCP 2.2 read message buffer in the DDC slave.
InstancePtr | is a pointer to the XHdmi_Rx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_DDC_HDCP_STA_OFFSET, XV_HDMIRX_DDC_STA_HDCP_RMSG_EP_MASK, and XV_HdmiRx_ReadReg.
int XV_HdmiRx_DdcIsHdcpWriteMessageBufferEmpty | ( | XV_HdmiRx * | InstancePtr | ) |
This function returns the status of the HDCP 2.2 write buffer in the DDC slave.
InstancePtr | is a pointer to the XHdmi_Rx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_DDC_HDCP_STA_OFFSET, XV_HDMIRX_DDC_STA_HDCP_WMSG_EP_MASK, and XV_HdmiRx_ReadReg.
int XV_HdmiRx_DdcLoadEdid | ( | XV_HdmiRx * | InstancePtr, |
u8 * | EdidData, | ||
u16 | Length | ||
) |
This function loads the EDID data into the DDC slave.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
EdidData | is a pointer to the EDID data array. |
Length | is the length, in bytes, of the EDID array. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_DDC_CTRL_EDID_EN_MASK, XV_HDMIRX_DDC_CTRL_SET_OFFSET, XV_HDMIRX_DDC_EDID_DATA_OFFSET, XV_HDMIRX_DDC_EDID_WP_OFFSET, XV_HdmiRx_DdcGetEdidWords(), and XV_HdmiRx_WriteReg.
void XV_HdmiRx_DebugInfo | ( | XV_HdmiRx * | InstancePtr | ) |
This function prints stream and timing information on STDIO/Uart console.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx::Stream, and XV_HdmiRx_Stream::Video.
u32 XV_HdmiRx_Divide | ( | u32 | Dividend, |
u32 | Divisor | ||
) |
This function calculates the divider for the frame calculation.
Dividend | is the dividend value to use in the calculation. |
Divisor | is the divisor value to use in the calculation. |
Referenced by XV_HdmiRx_GetVideoTiming().
void XV_HdmiRx_EXT_SYSRST | ( | XV_HdmiRx * | InstancePtr, |
u8 | Reset | ||
) |
This function asserts or releases the HDMI RX External SYSRST.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
Reset | specifies TRUE/FALSE value to either assert or release HDMI RX External SYSRST. |
References XV_HDMIRX_PIO_OUT_CLR_OFFSET, XV_HDMIRX_PIO_OUT_EXT_SYSRST_MASK, XV_HDMIRX_PIO_OUT_SET_OFFSET, and XV_HdmiRx_WriteReg.
void XV_HdmiRx_EXT_VRST | ( | XV_HdmiRx * | InstancePtr, |
u8 | Reset | ||
) |
This function asserts or releases the HDMI RX External VRST.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
Reset | specifies TRUE/FALSE value to either assert or release HDMI RX External VRST. |
References XV_HDMIRX_PIO_OUT_CLR_OFFSET, XV_HDMIRX_PIO_OUT_EXT_VRST_MASK, XV_HDMIRX_PIO_OUT_SET_OFFSET, and XV_HdmiRx_WriteReg.
u32 XV_HdmiRx_GetAcrCts | ( | XV_HdmiRx * | InstancePtr | ) |
This function provides audio clock regenerating CTS (Cycle-Time Stamp) value at the HDMI sink device.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_AUD_CTS_OFFSET, and XV_HdmiRx_ReadReg.
u32 XV_HdmiRx_GetAcrN | ( | XV_HdmiRx * | InstancePtr | ) |
This function provides audio clock regenerating factor N value.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_AUD_N_OFFSET, and XV_HdmiRx_ReadReg.
XVidC_ColorFormat XV_HdmiRx_GetAviColorSpace | ( | XV_HdmiRx * | InstancePtr | ) |
This function returns the AVI colorspace (captured by the AUX peripheral)
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_AUX_STA_AVI_CS_MASK, XV_HDMIRX_AUX_STA_AVI_CS_SHIFT, XV_HDMIRX_AUX_STA_OFFSET, and XV_HdmiRx_ReadReg.
Referenced by XV_HdmiRx_GetVideoProperties().
u8 XV_HdmiRx_GetAviVic | ( | XV_HdmiRx * | InstancePtr | ) |
This function returns the AVI VIC (captured by the AUX peripheral)
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_AUX_STA_AVI_VIC_MASK, XV_HDMIRX_AUX_STA_AVI_VIC_SHIFT, XV_HDMIRX_AUX_STA_OFFSET, and XV_HdmiRx_ReadReg.
Referenced by XV_HdmiRx_GetVideoProperties().
XVidC_ColorDepth XV_HdmiRx_GetGcpColorDepth | ( | XV_HdmiRx * | InstancePtr | ) |
This function returns the GCP color depth (captured by the AUX peripheral)
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_AUX_STA_GCP_CD_MASK, XV_HDMIRX_AUX_STA_GCP_CD_SHIFT, XV_HDMIRX_AUX_STA_OFFSET, and XV_HdmiRx_ReadReg.
Referenced by XV_HdmiRx_GetVideoProperties().
u32 XV_HdmiRx_GetLinkStatus | ( | XV_HdmiRx * | InstancePtr, |
u8 | Type | ||
) |
This function provides status of the HDMI RX core Link Status peripheral.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
Type | specifies one of the type for which status to be provided:
|
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_LNKSTA_LNK_ERR0_OFFSET, and XV_HdmiRx_ReadReg.
int XV_HdmiRx_GetTmdsClockRatio | ( | XV_HdmiRx * | InstancePtr | ) |
This function gets the SCDC TMDS clock ratio bit.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_PIO_IN_OFFSET, XV_HDMIRX_PIO_IN_SCDC_TMDS_CLOCK_RATIO_MASK, and XV_HdmiRx_ReadReg.
int XV_HdmiRx_GetVideoProperties | ( | XV_HdmiRx * | InstancePtr | ) |
This function reads the video properties from the aux peripheral.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HdmiRx::Stream, XV_HdmiRx_Stream::Vic, XV_HdmiRx_Stream::Video, XV_HDMIRX_AUX_STA_AVI_MASK, XV_HDMIRX_AUX_STA_OFFSET, XV_HdmiRx_GetAviColorSpace(), XV_HdmiRx_GetAviVic(), XV_HdmiRx_GetGcpColorDepth(), and XV_HdmiRx_ReadReg.
int XV_HdmiRx_GetVideoTiming | ( | XV_HdmiRx * | InstancePtr | ) |
This function reads the video timing from the VTD peripheral.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HdmiRx_Stream::PixelClk, XV_HdmiRx::Stream, XV_HdmiRx_Stream::Vic, XV_HdmiRx_Stream::Video, XV_HdmiRx_Divide(), XV_HdmiRx_LookupVmId(), XV_HdmiRx_ReadReg, XV_HDMIRX_VTD_ACT_LIN_OFFSET, XV_HDMIRX_VTD_ACT_PIX_OFFSET, XV_HDMIRX_VTD_HBP_OFFSET, XV_HDMIRX_VTD_HFP_OFFSET, XV_HDMIRX_VTD_HSW_OFFSET, XV_HDMIRX_VTD_STA_FMT_MASK, XV_HDMIRX_VTD_STA_HS_POL_MASK, XV_HDMIRX_VTD_STA_OFFSET, XV_HDMIRX_VTD_STA_VS_POL_MASK, XV_HDMIRX_VTD_TOT_LIN_OFFSET, XV_HDMIRX_VTD_TOT_PIX_OFFSET, XV_HDMIRX_VTD_VBP_OFFSET, XV_HDMIRX_VTD_VFP_OFFSET, and XV_HDMIRX_VTD_VSW_OFFSET.
void XV_HdmiRx_INT_LRST | ( | XV_HdmiRx * | InstancePtr, |
u8 | Reset | ||
) |
This function asserts or releases the HDMI RX Internal LRST.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
Reset | specifies TRUE/FALSE value to either assert or release HDMI RX Internal LRST. |
References XV_HDMIRX_PIO_OUT_CLR_OFFSET, XV_HDMIRX_PIO_OUT_INT_LRST_MASK, XV_HDMIRX_PIO_OUT_SET_OFFSET, and XV_HdmiRx_WriteReg.
void XV_HdmiRx_INT_VRST | ( | XV_HdmiRx * | InstancePtr, |
u8 | Reset | ||
) |
This function asserts or releases the HDMI RX Internal VRST.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
Reset | specifies TRUE/FALSE value to either assert or release HDMI RX Internal VRST. |
References XV_HDMIRX_PIO_OUT_CLR_OFFSET, XV_HDMIRX_PIO_OUT_INT_VRST_MASK, XV_HDMIRX_PIO_OUT_SET_OFFSET, and XV_HdmiRx_WriteReg.
int XV_HdmiRx_IsLinkStatusErrMax | ( | XV_HdmiRx * | InstancePtr | ) |
This function provides status of one of the link error counters reached the maximum value.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_LNKSTA_STA_ERR_MAX_MASK, XV_HDMIRX_LNKSTA_STA_OFFSET, and XV_HdmiRx_ReadReg.
int XV_HdmiRx_IsStreamConnected | ( | XV_HdmiRx * | InstancePtr | ) |
This function provides the stream connected status.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Stream::IsConnected, and XV_HdmiRx::Stream.
int XV_HdmiRx_IsStreamScrambled | ( | XV_HdmiRx * | InstancePtr | ) |
This function provides the stream scrambler status.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Stream::IsScrambled, and XV_HdmiRx::Stream.
int XV_HdmiRx_IsStreamUp | ( | XV_HdmiRx * | InstancePtr | ) |
This function provides status of the stream.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Stream::State, XV_HdmiRx::Stream, and XV_HDMIRX_STATE_STREAM_UP.
XVidC_VideoMode XV_HdmiRx_LookupVmId | ( | u8 | Vic | ) |
This function searches for the video mode based on the vic.
Vic |
Referenced by XV_HdmiRx_GetVideoTiming().
void XV_HdmiRx_SetColorFormat | ( | XV_HdmiRx * | InstancePtr | ) |
This function sets the color format.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HdmiRx::Stream, XV_HdmiRx_Stream::Video, XV_HDMIRX_PIO_OUT_COLOR_SPACE_MASK, XV_HDMIRX_PIO_OUT_COLOR_SPACE_SHIFT, XV_HDMIRX_PIO_OUT_MSK_OFFSET, XV_HDMIRX_PIO_OUT_OFFSET, and XV_HdmiRx_WriteReg.
int XV_HdmiRx_SetHpd | ( | XV_HdmiRx * | InstancePtr, |
u8 | SetClr | ||
) |
This function enables/clear Hot-Plug-Detect.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
SetClr | specifies TRUE/FALSE value to either enable or clear HPD respectively. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HDMIRX_PIO_OUT_CLR_OFFSET, XV_HDMIRX_PIO_OUT_HPD_MASK, XV_HDMIRX_PIO_OUT_SET_OFFSET, and XV_HdmiRx_WriteReg.
int XV_HdmiRx_SetPixelRate | ( | XV_HdmiRx * | InstancePtr | ) |
This function sets the pixel rate.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HdmiRx::Stream, XV_HdmiRx_Stream::Video, XV_HDMIRX_PIO_OUT_MSK_OFFSET, XV_HDMIRX_PIO_OUT_OFFSET, XV_HDMIRX_PIO_OUT_PIXEL_RATE_MASK, XV_HDMIRX_PIO_OUT_PIXEL_RATE_SHIFT, and XV_HdmiRx_WriteReg.
Referenced by XV_HdmiRx_SetStream().
int XV_HdmiRx_SetStream | ( | XV_HdmiRx * | InstancePtr, |
XVidC_PixelsPerClock | Ppc, | ||
u32 | Clock | ||
) |
This function sets the HDMI RX stream parameters.
InstancePtr | is a pointer to the XV_HdmiRx core instance. |
Ppc | specifies the pixel per clock.
|
Clock | specifies reference pixel clock frequency. |
References XV_HdmiRx_Stream::RefClk, XV_HdmiRx::Stream, XV_HdmiRx_Stream::Video, and XV_HdmiRx_SetPixelRate().