PM5358 S/UNI-4x622 Driver Manual

Application Programming Interface

Writing SS Bits: suni4x622TPOHWriteSS

This function writes the passed SS bits (SS[1:0]) in the SS bit positions.

Prototype

Inputs

Outputs Returns

INT4 suni4x622TPOHWriteSS(sSUNI4x622_HNDL deviceHandle, UINT1 channel, UINT1 ss)

deviceHandle

: device handle (from suni4x622Add)

channel

: channel number

ss

: SS bits value(bit 0 and bit 1)

None

 

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

Inserting a Pointer Value: suni4x622TPOHInsertTxPtr

This function enables the insertion of the pointer value passed in argument into the H1 and H2 bytes of the transmit stream. As a result, the upstream payload mapping circuitry and a valid SPE can continue functioning and generating normally.

Prototype

Inputs

Outputs Returns

INT4 suni4x622TPOHInsertTxPtr(sSUNI4x622_HNDL deviceHandle, UINT1 channel, UINT2 aptr)

deviceHandle

: device handle (from suni4x622Add)

channel

: channel number

aptr

: pointer value to insert in (H1, H2)

None

 

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

Force Path BIP-8 Errors: suni4x622TPOHForceB3

This function forces the B3 error in the transmit stream.

Proprietary and Confidential to PMC-Sierra, Inc.

71

Document ID: PMC-2010419, Issue 1

 

Page 71
Image 71
PMC-Sierra PM5358 S/UNI 4x622 Writing SS Bits suni4x622TPOHWriteSS, Inserting a Pointer Value suni4x622TPOHInsertTxPtr