PMC-Sierra PM5358 S/UNI 4x622 Manuale Utente

Pagina di 136
PM5358 S/UNI-4x622 Driver Manual
Application Programming Interface
Proprietary and Confidential to PMC-Sierra, Inc.
63
Document ID: PMC-2010419, Issue 1
               
SUNI4x622_ERR_INVALID_CHAN
Valid States
SUNI4x622_ACTIVE, SUNI4x622_INACTIVE
Side Effects
None
Forcing B1 Error: suni4x622SOHForceB1
This function inserts the B1 BIP-8 errors  byte to be inserted to the section overhead.
Prototype
INT4 suni4x622SOHForceB1(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, UINT2 enable)
Inputs
deviceHandle
: device handle (from 
suni4x622Add
)
channel
: channel number
enable
: flag to start/stop B1 error insertion
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
Forcing OOF: suni4x622SOHForceOOF
This function forces the Section Overhead Processor temporarily out of frame. The Section
Overhead Processor will attempt to lock back onto the frame.
Prototype
INT4 suni4x622SOHForceOOF(sSUNI4x622_HNDL
deviceHandle, UINT1 channel)
Inputs
deviceHandle
: device handle (from 
suni4x622Add
)
channel
: channel number
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