PM5358 S/UNI-4x622 Driver Manual

Application Programming Interface

Notifying the Application of FIFO Events: cbackSuni4x622FIFO

This callback function is provided by the USER and is used by the DPR to report significant FIFO section events back to the application. This function should be non-blocking. Typically, the callback routine sends a message to another task with the event identifier and other context information. The task that receives this message can then process this information according to the system requirements. Note: the callback function’s addresses are passed to the driver doing the suni4x622Init call. If the address of the callback function was passed as a NULL at initialization no callback will be made.

Prototype

Inputs

Outputs

Returns

Valid States

Side Effects

void cbackSuni4x622FIFO(sSUNI4x622_USR_CTXT usrCtxt, sSUNI4x622_DPV *pdpv)

usrCtxt

: user context (from suni4x622Add)

pdpv

: (pointer to) DPV that describes this event

None

 

None

 

SUNI4x622_ACTIVE

 

None

 

Proprietary and Confidential to PMC-Sierra, Inc.

107

Document ID: PMC-2010419, Issue 1

 

Page 107
Image 107
PMC-Sierra PM5358 S/UNI 4x622 manual Notifying the Application of Fifo Events cbackSuni4x622FIFO