PM5358 S/UNI-4x622 Driver Manual

Application Programming Interface

Clearing APS Interrupt Enable Mask: suni4x622ClrMaskAPS

This function clears the contents of the APS interrupt mask registers of the S/UNI-4x622 device.

Prototype

Inputs

Outputs Returns

INT4 suni4x622ClrMaskAPS(sSUNI4x622_HNDL deviceHandle, UINT1 apslink, sSUNI4x622_MASK_ISR *pmask)

deviceHandle

: device handle (from suni4x622Add)

apslink

: APS link number

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_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

Inputs

Outputs

Returns

INT4 suni4x622Poll(sSUNI4x622_HNDL deviceHandle)

deviceHandle

: device handle (from suni4x622Add)

None

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

Proprietary and Confidential to PMC-Sierra, Inc.

94

Document ID: PMC-2010419, Issue 1

 

Page 94
Image 94
PMC-Sierra PM5358 S/UNI 4x622 manual Clearing APS Interrupt Enable Mask suni4x622ClrMaskAPS, Pseudocode