
PM5358
Application Programming Interface
Configuring ISR Processing: suni4x622ISRConfig
Allows the USER to configure how ISR processing is to be handled: polling
(SUNI4x622_POLL_MODE) or interrupt driven (SUNI4x622_ISR_MODE). If polling is selected, the USER is responsible for calling periodically suni4x622Poll to collect exception data from the device.
Prototype | INT4 suni4x622ISRConfig(sSUNI4x622_HNDL deviceHandle, | |
| eSUNI4x622_ISR_MODE mode) | |
Inputs | deviceHandle | : device handle (from suni4x622Add) |
| mode | : mode of operation |
Outputs | None |
|
Returns | Success = SUNI4x622_SUCCESS | |
| Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE | |
| SUNI4x622_ERR_INVALID_DEV | |
| SUNI4x622_ERR_INVALID_ARG | |
Valid States | SUNI4x622_ACTIVE, SUNI4x622_INACTIVE | |
Side Effects | None |
|
Getting Device Interrupt Enable Mask: suni4x622GetMask
This function returns the contents of the interrupt mask registers of the
Prototype
Inputs
Outputs Returns
INT4 suni4x622GetMask(sSUNI4x622_HNDL deviceHandle, sSUNI4x622_MASK_ISR *pmask)
deviceHandle | : device handle (from suni4x622Add) |
pmask | : (pointer to) mask structure |
pmask | : (pointer to) updated mask structure |
Success = SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_ARG
Valid States | SUNI4x622_ACTIVE, SUNI4x622_INACTIVE |
Side Effects | None |
Setting Device Interrupt Enable Mask: suni4x622SetMask
This function sets the contents of the interrupt mask registers of the
Proprietary and Confidential to | 81 |
Document ID: |
|