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

Reading the K1K2 Byte: suni4x622LOHReadK1K2

This function reads the K1K2 byte from the line overhead.
Prototype INT4 suni4x622LOHReadK1K2(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, UINT1 *pK1, UINT1 *pK2)
Inputs deviceHandle : device handle (from suni4x622Add)
channel : channel number
pK1 : (pointer to) store K1 byte read
pK2 : (pointer to) store K2 byte read
Outputs pK1 : (pointer to ) K1 byte read
pK2 : (pointer to ) K2 byte read
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

Writing the S1 Byte: suni4x622LOHWriteS1

This function writes the S1 byte into the line overhead.
Prototype INT4 suni4x622LOHWriteS1(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, UINT1 S1)
Inputs deviceHandle : device handle (from suni4x622Add)
channel : channel number
S1 : S1 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