PM5358 S/UNI-4x622 Driver Manual
Application Programming Interface
Proprietary and Confidential to PMC-Sierra, Inc. 70
Document ID: PMC-2010419, Issue 1
Valid States SUNI4x622_ACTIVE, SUNI4x622_INACTIVE
Side Effects None

Writing the C2 Byte: suni4x622TPOHWriteC2

This function writes the C2 byte into the path overhead.
Prototype INT4 suni4x622TPOHWriteC2(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, UINT1 C2)
Inputs deviceHandle : device handle (from suni4x622Add)
channel : channel number
C2 : C2 byte to write
Outputs None
Returns Success = SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_CHAN
Valid States SUNI4x622_ACTIVE, SUNI4x622_INACTIVE
Side Effects None

Writing the New Data Flag Bits: suni4x622TPOHWriteNDF

This function writes the passed new data flag bits (NDF[3:0]) in the NDF bit positions.
Prototype INT4 suni4x622TPOHWriteNDF(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, UINT2 enable, UINT1 ndf)
Inputs deviceHandle : device handle (from suni4x622Add)
channel : channel number
enable :flag to start/stop inserting the NDF value
passed in this function
ndf : NDF value (lower nibble)
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 None