PMC-Sierra PM5358 S/UNI 4x622 Power Screwdriver User Manual


 
PM5358 S/UNI-4x622 Driver Manual
Application Programming Interface
Proprietary and Confidential to PMC-Sierra, Inc. 64
Document ID: PMC-2010419, Issue 1
Forcing LOS: suni4x622SOHForceLOS
When the enable flag is set, this function forces a loss of signal condition in the data stream.
When the enable flag is not set, this function resumes normal processing.
Prototype
INT4 suni4x622SOHForceLOS(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, UINT2 enable)
Inputs
deviceHandle : device handle (from suni4x622Add)
channel : channel number
enable : flag to start/stop a loss of signal condition
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
4.6 Line Overhead (LOH)
The Line Overhead section provides functions to configure and monitor the line overhead on both
the receive and transmit sides. Read / Write access is given to the APS bytes (K1 and K2) and
most other overhead bytes. Signal failure and signal degrade can be monitored. For diagnostic
purposes, errors can be introduced in the line overhead bytes. Additional functions are provided to
automatically insert line RDI and line AIS.
Configuring SF Error Monitor: suni4x622LOHSFCfg
This function configures the Signal Failure BERM automatic monitoring of line bit error rate
threshold events.
Prototype
INT4 suni4x622LOHSFCfg(sSUNI4x622_HNDL deviceHandle,
UINT1 channel, sSUNI4x622_CFG_SF *psfcfg)
Inputs
deviceHandle : device handle (from suni4x622Add)
channel : channel number
psfcfg : (pointer to) SF configuration block
Outputs
None
Returns
Success =
SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_CHAN