v_voip_depacketizer56
Xilinx SDK Drivers API Documentation
xdepacketizer56_intr.c File Reference

Overview

This file contains interrupt related functions for Xilinx VoIP ST2022-6 Depacketizer core.

Please see xdepacketizer56.h for more details of the driver.

MODIFICATION HISTORY:
Ver   Who    Date     Changes


1.00 mmo 02/12/16 Initial release.

 

Functions

void XDepacketizer56_IntrHandler (void *InstancePtr)
 This function is the interrupt handler for the VoIP ST2022-6 Depacketizer driver. More...
 
int XDepacketizer56_SetCallback (XDepacketizer56 *InstancePtr, XDepacketizer56_HandlerType HandlerType, void *CallbackFunc, void *CallbackRef)
 This function installs an asynchronous callback function for the given HandlerType: More...
 

Function Documentation

void XDepacketizer56_IntrHandler ( void *  InstancePtr)

This function is the interrupt handler for the VoIP ST2022-6 Depacketizer driver.

This handler reads the pending interrupt from VoIP ST2022-6 Depacketizer, 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 XDepacketizer56_SetCallback() during initialization phase. An example delivered with this driver demonstrates how this could be done.

Parameters
InstancePtris a pointer to the XDepacketizer56 instance that just interrupted.
Returns
None.
Note
None.

References XDepacketizer56_ReadReg.

int XDepacketizer56_SetCallback ( XDepacketizer56 InstancePtr,
XDepacketizer56_HandlerType  HandlerType,
void *  CallbackFunc,
void *  CallbackRef 
)

This function installs an asynchronous callback function for the given HandlerType:

HandlerType                 Callback Function Type
-------------------------   -----------------------------------------------
Parameters
InstancePtris a pointer to the VoIP ST2022-6 Depacketizer core instance.
HandlerTypespecifies the type of handler.
CallbackFuncis the address of the callback function.
CallbackRefis a user data item that will be passed to the callback function when it is invoked.
Returns
  • XST_SUCCESS if callback function installed successfully.
  • XST_INVALID_PARAM when HandlerType is invalid.
Note
Invoking this function for a handler that already has been installed replaces it with the new handler.

References XDepacketizer56::BufferEmptyCallback, XDepacketizer56::BufferEmptyRef, XDepacketizer56::DatagramMismatchCallback, XDepacketizer56::DatagramMismatchRef, XDepacketizer56::IsBufferEmptyCallbackSet, and XDepacketizer56::IsDatagramMismatchCallbackSet.