HDMI 1.4/2.0 TX Subsystem
98
PG235 October 4, 2017
Appendix
C:
Application Software Development
5. HDCP 1.4 Timer Interrupt (only available when HDCP 1.4 is enabled in hardware)
6. HDCP 2.2 Timer Interrupt (only available when HDCP 2.2 is enabled in hardware)
Application Callback Functions
Subsystem driver provides a mechanism for the application to register a user-defined
function that gets called within an interrupt context.
Callback functions defined in the application code must be registered with provided
handlers, using the following defined API:
int XV_HdmiTxSs_SetCallback(XV_HdmiTxSs *InstancePtr,
u32 HandlerType,
void *CallbackFuncPtr,
void *CallbackRef);
Available handlers are defined in
xv_hdmitxss.h
:
•
•
•
•
XV_HDMITXSS_HANDLER_STREAM_DOWN
•
XV_HDMITXSS_HANDLER_HDCP_AUTHENTICATE
Table
C
‐
1:
Mapping between Interrupt Sources and Application Callback Functions
Interrupts
Callback
HPD
XV_HDMITXSS_HANDLER_CONNECT
Link Ready
Note:
It is edge triggered.
XV_HDMITXSS_HANDLER_STREAM_UP
XV_HDMITXSS_HANDLER_STREAM_DOWN
Note:
Two callbacks are mapped to the same interrupt source.
Link Ready rising edge: Stream Up
Link Ready falling edge: Stream Down
Vertical Sync
XV_HDMITXSS_HANDLER_VS
HDCP 1.4 Interrupt
HDCP 1.4 Timer Interrupt
HDCP 2.2 Timer Interrupt
XV_HDMITXSS_HANDLER_HDCP_AUTHENTICATE
Note:
This callback function is not directly mapped to any interrupt source.
Instead it is executed when the HDCP authentication state machine has
reached the authenticated state.