PM5358 S/UNI-4x622 Driver Manual

 

 

Application Programming Interface

 

 

 

 

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_CHAN

 

 

SUNI4x622_ERR_INVALID_ARG

Valid States

SUNI4x622_ACTIVE, SUNI4x622_INACTIVE

Side Effects

None

 

Setting SOH Interrupt Enable Mask: suni4x622SetMaskSOH

This function sets the contents of the SOH interrupt mask registers of the S/UNI-4x622 device. Any bits that are set in the passed structure are set in the associated S/UNI-4x622 registers.

Prototype

INT4 suni4x622SetMaskSOH(sSUNI4x622_HNDL

 

deviceHandle, UINT1 channel, sSUNI4x622_MASK_ISR

 

*pmask)

 

Inputs

deviceHandle

: device handle (from suni4x622Add)

 

channel

: channel number

 

pmask

: (pointer to) mask structure

Outputs

None

 

Returns

Success = SUNI4x622_SUCCESS

 

Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE

 

SUNI4x622_ERR_INVALID_DEV

 

SUNI4x622_ERR_INVALID_CHAN

 

SUNI4x622_ERR_INVALID_ARG

Valid States

SUNI4x622_ACTIVE, SUNI4x622_INACTIVE

Side Effects

May change the operation of the ISR / DPR

Clearing SOH Interrupt Enable Mask: suni4x622ClrMaskSOH

This function clears SOH individual interrupt bits and registers in the S/UNI-4x622 device. Any bits that are set in the passed structure are cleared in the associated S/UNI-4x622 registers.

Prototype

INT4 suni4x622ClrMaskSOH(sSUNI4x622_HNDL

 

deviceHandle, UINT1 channel, sSUNI4x622_MASK_ISR

 

*pmask)

 

Inputs

deviceHandle

: device handle (from suni4x622Add)

 

channel

: channel number

 

pmask

: (pointer to) mask structure

Proprietary and Confidential to PMC-Sierra, Inc.

83

Document ID: PMC-2010419, Issue 1

 

Page 83
Image 83
PMC-Sierra PM5358 S/UNI 4x622 manual Setting SOH Interrupt Enable Mask suni4x622SetMaskSOH