![]() |
sdiaud
Xilinx SDK Drivers API Documentation
|
Functions | |
void | XSdiAud_IntrHandler (void *InstancePtr) |
This function is the interrupt handler for the XSdiaud driver. More... | |
int | XSdiAud_SetHandler (XSdiAud *InstancePtr, XSdiAud_HandlerType HandlerType, XSdiAud_Callback FuncPtr, void *CallbackRef) |
This function installs an asynchronous callback function for the given HandlerType. More... | |
XSdiAud_Config * | XSdiAud_LookupConfig (u16 DeviceId) |
This function returns a reference to an XSdiAud_Config structure based on the core id, DeviceId. More... | |
int | XSdiAud_Initialize (XSdiAud *InstancePtr, u16 DeviceId) |
Initializes a specific XsdiAud instance such that the driver is ready to use. More... | |
int XSdiAud_Initialize | ( | XSdiAud * | InstancePtr, |
u16 | DeviceId | ||
) |
#include <xsdiaud_sinit.c>
Initializes a specific XsdiAud instance such that the driver is ready to use.
InstancePtr | is a pointer to the XSdiAud instance to be worked on. |
DeviceId | is the unique id of the device controlled by this XSdiAud instance. Passing in a device id associates the generic XSdiAud instance to a specific device, as chosen by the caller or application developer. |
References XSdiAud_Config::BaseAddress, XSdiAud_CfgInitialize(), and XSdiAud_LookupConfig().
Referenced by SdiAud_SelfTestExample().
void XSdiAud_IntrHandler | ( | void * | InstancePtr | ) |
#include <xsdiaud_intr.c>
This function is the interrupt handler for the XSdiaud driver.
This handler reads the pending interrupt from the XSdiaud peripheral, determines the source of the interrupts, clears the interrupts and calls call backs accordingly.
InstancePtr | is a pointer to the XSdiaud instance. |
References XSdiAud::IsReady.
XSdiAud_Config* XSdiAud_LookupConfig | ( | u16 | DeviceId | ) |
#include <xsdiaud_sinit.c>
This function returns a reference to an XSdiAud_Config structure based on the core id, DeviceId.
The return value will refer to an entry in the device configuration table defined in the xsdiaud_g.c file.
DeviceId | is the unique core ID of the XSdiAud core for the lookup operation. |
Referenced by XSdiAud_Initialize().
int XSdiAud_SetHandler | ( | XSdiAud * | InstancePtr, |
XSdiAud_HandlerType | HandlerType, | ||
XSdiAud_Callback | FuncPtr, | ||
void * | CallbackRef | ||
) |
#include <xsdiaud_intr.c>
This function installs an asynchronous callback function for the given HandlerType.
HandlerType Callback Function ------------------------------------ ---------------------------------- (XSDIAUD_HANDLER_AUD_GRP_CHNG_DET) GrpChangeDetHandler (XSDIAUD_HANDLER_CNTRL_PKT_CHNG_DET) CntrlPktDetHandler (XSDIAUD_HANDLER_CHSTAT_CHNG_DET) StatChangeDetHandler (XSDIAUD_HANDLER_FIFO_OVRFLW_DET) FifoOvrflwDetHandler (XSDIAUD_HANDLER_PARITY_ERR_DET) ParityErrDetHandler (XSDIAUD_HANDLER_CHECKSUM_ERR_DET) ChecksumErrDetHandler
InstancePtr | is a pointer to the XSdiAud core instance. |
HandlerType | specifies the type of handler. |
FuncPtr | is a pointer to the callback function. |
CallbackRef | is a reference pointer passed on actual calling of the callback function. |