PM5358 S/UNI-4x622 Driver Manual

Application Programming Interface

Enabling Line Loopbacks: suni4x622DiagLineLoop

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

Prototype

Inputs

Outputs Returns

INT4 suni4x622DiagLineLoop(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 Path Diagnostic Loopbacks: suni4x622DiagPathLoop

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

Prototype

Inputs

Outputs Returns

INT4 suni4x622DiagPathLoop(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 Data Diagnostic Loopbacks: suni4x622DiagDataLoop

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

Proprietary and Confidential to PMC-Sierra, Inc.

102

Document ID: PMC-2010419, Issue 1

 

Page 102
Image 102
PMC-Sierra PM5358 S/UNI 4x622 manual Enabling Line Loopbacks suni4x622DiagLineLoop, Sets loop if non-zero, else clears loop