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

Configuring SD Error Monitor: suni4x622LOHSDCfg

This function configures the Signal Defect BERM automatic monitoring of line bit error rate
threshold events.
Prototype INT4 suni4x622LOHSDCfg(sSUNI4x622_HNDL deviceHandle,
UINT1 channel, sSUNI4x622_CFG_SD *psdcfg)
Inputs deviceHandle : device handle (from suni4x622Add)
channel : channel number
psdcfg : (pointer to) SD configuration block
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

Writing the K1K2 Byte: suni4x622LOHWriteK1K2

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