![]() |
v_hdmirx
Xilinx SDK Drivers API Documentation
|
This file contains interrupt related functions 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 yh 14/01/16 Set AxisEnable PIO to high when RX stream locked 1.03 MG 18/02/16 Added Link Check callback 1.04 MG 08/03/16 Added pixel clock calculation to HdmiRx_TmrIntrHandler 1.05 MH 08/03/16 Added support for read not complete DDC event 1.06 MG 27/05/16 Updated HdmiRx_VtdIntrHandler 1.07 MG 27/05/16 Updated HdmiRx_TmrIntrHandler 1.08 MG 30/05/16 Fixed issue with pixel clock adjustment for YUV422 colorspace 1.09 MH 26/07/16 Added DDC HDCP protocol event. 1.10 YH 18/08/16 squash unused variable compiler warning 1.11 MG 03/03/17 Updated function HdmiRx_TmrIntrHandler with GetVideoPropertiesTries 1.12 YH 22/08/17 Update AudFormat when servicing Aud Interrupt 1.13 MH 31/08/17 Update Reset sequence for Video_Bridge
Functions | |
void | XV_HdmiRx_IntrHandler (void *InstancePtr) |
This function is the interrupt handler for the HDMI RX driver. More... | |
int | XV_HdmiRx_SetCallback (XV_HdmiRx *InstancePtr, u32 HandlerType, void *CallbackFunc, void *CallbackRef) |
This function installs an asynchronous callback function for the given HandlerType: More... | |
void XV_HdmiRx_IntrHandler | ( | void * | InstancePtr | ) |
This function is the interrupt handler for the HDMI RX driver.
This handler reads the pending interrupt from PIO, DDC, TIMDET, AUX, AUD and LNKSTA peripherals, determines the source of the interrupts, clears the interrupts and calls callbacks accordingly.
The application is responsible for connecting this function to the interrupt system. Application beyond this driver is also responsible for providing callbacks to handle interrupts and installing the callbacks using XV_HdmiRx_SetCallback() during initialization phase. An example delivered with this driver demonstrates how this could be done.
InstancePtr | is a pointer to the XV_HdmiRx instance that just interrupted. |
References XV_HdmiRx_Config::BaseAddress, XV_HdmiRx::Config, XV_HdmiRx::IsReady, XV_HDMIRX_PIO_STA_IRQ_MASK, XV_HDMIRX_PIO_STA_OFFSET, and XV_HdmiRx_ReadReg.
int XV_HdmiRx_SetCallback | ( | XV_HdmiRx * | InstancePtr, |
u32 | HandlerType, | ||
void * | CallbackFunc, | ||
void * | CallbackRef | ||
) |
This function installs an asynchronous callback function for the given HandlerType:
HandlerType Callback Function Type ------------------------- ----------------------------------------------- (XV_HDMIRX_HANDLER_VTD) VtdCallback (XV_HDMIRX_HANDLER_AUX) AuxCallback (XV_HDMIRX_HANDLER_AUD) AudCallback (XV_HDMIRX_HANDLER_LNKSTA) LnkStaCallback (XV_HDMIRX_HANDLER_PIO) PioCallback
InstancePtr | is a pointer to the HDMI RX core instance. |
HandlerType | specifies the type of handler. |
CallbackFunc | is the address of the callback function. |
CallbackRef | is a user data item that will be passed to the callback function when it is invoked. |
References XV_HdmiRx::AudCallback, XV_HdmiRx::AudRef, XV_HdmiRx::AuxCallback, XV_HdmiRx::AuxRef, XV_HdmiRx::ConnectCallback, XV_HdmiRx::ConnectRef, XV_HdmiRx::DdcCallback, XV_HdmiRx::DdcRef, XV_HdmiRx::HdcpCallback, XV_HdmiRx::IsAudCallbackSet, XV_HdmiRx::IsAuxCallbackSet, XV_HdmiRx::IsConnectCallbackSet, XV_HdmiRx::IsDdcCallbackSet, XV_HdmiRx::IsLnkStaCallbackSet, XV_HdmiRx::IsStreamDownCallbackSet, XV_HdmiRx::IsStreamInitCallbackSet, XV_HdmiRx::IsStreamUpCallbackSet, XV_HdmiRx::LnkStaCallback, XV_HdmiRx::LnkStaRef, XV_HdmiRx::StreamDownCallback, XV_HdmiRx::StreamDownRef, XV_HdmiRx::StreamInitCallback, XV_HdmiRx::StreamInitRef, XV_HdmiRx::StreamUpCallback, XV_HdmiRx::StreamUpRef, XV_HDMIRX_HANDLER_AUD, XV_HDMIRX_HANDLER_AUX, XV_HDMIRX_HANDLER_CONNECT, XV_HDMIRX_HANDLER_DDC, XV_HDMIRX_HANDLER_HDCP, XV_HDMIRX_HANDLER_LNKSTA, XV_HDMIRX_HANDLER_STREAM_DOWN, XV_HDMIRX_HANDLER_STREAM_INIT, and XV_HDMIRX_HANDLER_STREAM_UP.