PMC-Sierra PM5358 S/UNI 4x622 Power Screwdriver User Manual


 
PM5358 S/UNI-4x622 Driver Manual
Application Programming Interface
Proprietary and Confidential to PMC-Sierra, Inc. 94
Document ID: PMC-2010419, Issue 1
Clearing APS Interrupt Enable Mask: suni4x622ClrMaskAPS
This function clears the contents of the APS interrupt mask registers of the S/UNI-4x622 device.
Prototype
INT4 suni4x622ClrMaskAPS(sSUNI4x622_HNDL
deviceHandle, UINT1 apslink, sSUNI4x622_MASK_ISR
*pmask)
Inputs
deviceHandle : device handle (from suni4x622Add)
apslink : APS link number
pmask : (pointer to) mask structure
Outputs
pmask : (pointer to) updated mask structure
Returns
Success =
SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_APSLINK
SUNI4x622_ERR_INVALID_ARG
Valid States
SUNI4x622_ACTIVE, SUNI4x622_INACTIVE
Side Effects
None
Polling the Interrupt Status Registers: suni4x622Poll
This function commands the driver to poll the interrupt registers in the device. The call will fail
unless the device was initialized (via
suni4x622Init) or configured (via
suni4x622ISRConfig) into polling mode.
Prototype
INT4 suni4x622Poll(sSUNI4x622_HNDL deviceHandle)
Inputs
deviceHandle : device handle (from suni4x622Add)
Outputs
None
Returns
Success =
SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_MODE
SUNI4x622_FAILURE
Valid States
SUNI4x622_ACTIVE
Side Effects
None
Pseudocode
Begin
if device is configured in polling mode
call
suni4x622ISR
End