PM5358 S/UNI-4x622 Driver Manual Application Programming Interface

Prototype

Inputs

Outputs Returns

INT4 suni4x622DiagDataLoop(sSUNI4x622_HNDL deviceHandle, UINT1 channel, UINT2 enable)

deviceHandle

: device handle (from suni4x622Add)

channel

: channel number

enable

: sets loop if non-zero, else clears loop

None

 

Success = SUNI4x622_SUCCESS

Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE

SUNI4x622_ERR_INVALID_DEV

SUNI4x622_ERR_INVALID_CHAN

Valid States SUNI4x622_ACTIVE

Side Effects Will inhibit the flow of active data

Enabling Parallel Diagnostics Loopbacks: suni4x622DiagParaLoop

This function clears / sets a Parallel Diagnostics Loopback. It is up to the USER to perform any tests on the looped data.

Prototype

Inputs

Outputs Returns

INT4 suni4x622DiagParaLoop(sSUNI4x622_HNDL deviceHandle, UINT1 channel, UINT2 enable)

deviceHandle

: device handle (from suni4x622Add)

channel

: channel number

enable

: sets loop if non-zero, else clears loop

None

 

Success = SUNI4x622_SUCCESS

Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE

SUNI4x622_ERR_INVALID_DEV

SUNI4x622_ERR_INVALID_CHAN

Valid States SUNI4x622_ACTIVE

Side Effects Will inhibit the flow of active data

Enabling Serial Diagnostics Loopbacks: suni4x622DiagSerialLoop

This function clears / sets a Serial Diagnostics Loopback. It is up to the USER to perform any tests on the looped data.

Prototype

INT4 suni4x622DiagSerialLoop(sSUNI4x622_HNDL

 

deviceHandle, UINT1 channel, UINT2 enable)

Inputs

deviceHandle

: device handle (from suni4x622Add)

Proprietary and Confidential to PMC-Sierra, Inc.

103

Document ID: PMC-2010419, Issue 1

 

Page 103
Image 103
PMC-Sierra PM5358 S/UNI 4x622 manual INT4 suni4x622DiagSerialLoopsSUNI4x622HNDL