The 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_HdmiRxSs_SetCallback(XV_HdmiRxSs *InstancePtr,
u32 HandlerType,
void *CallbackFuncPtr,
void *CallbackRef);
Available handlers are defined in xv_hdmirxss.h
:
- XV_HDMIRXSS_HANDLER_CONNECT
- XV_HDMIRXSS_HANDLER_AUX
- XV_HDMIRXSS_HANDLER_AUD
- XV_HDMIRXSS_HANDLER_STREAM_UP
- XV_HDMIRXSS_HANDLER_STREAM_DOWN
- XV_HDMIRXSS_HANDLER_STREAM_INIT