PM5358
Application Programming Interface
Interrupt-Service Routine: suni4x622ISR
This function reads the state of the interrupt registers in the
Prototype
Inputs
Outputs
Returns
Valid States
Side Effects
Pseudocode
void * suni4x622ISR(sSUNI4x622_HNDL deviceHandle)
deviceHandle | : device handle (from suni4x622Add) |
None
(pointer to) ISV buffer (to send to the DPR) or NULL (pointer)
SUNI4x622_ACTIVE
None
Begin
get an ISV buffer
update ISV with current interrupt status if no valid interrupt condition
return NULL
if in ISR mode
disable all detected interrupts return ISV
else (Polling mode)
call suni4x622DPR output NULL
End
Deferred-Processing Routine: suni4x622DPR
This function acts on data contained in the passed ISV, allocates one or more DPV buffers (via sysSuni4x622DPVBufferGet) and invokes one or more callbacks (if defined and enabled). This routine is called by the application code, within sysSuni4x622DPRTask. Note that the callbacks are responsible for releasing the passed DPV. It is recommended that it be done as soon as possible to avoid running out of DPV buffers.
Prototype | void suni4x622DPR(void *ptmpisv) | |
Inputs | ptmpisv | : (pointer to) ISV buffer |
Outputs | None |
|
Returns | None |
|
Proprietary and Confidential to | 95 |
Document ID: |
|