PM5358 S/UNI-4x622 Driver Manual

 

Application Programming Interface

 

 

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

Inputs

Outputs Returns

INT4 suni4x622TPOHWriteC2(sSUNI4x622_HNDL deviceHandle, UINT1 channel, UINT1 C2)

deviceHandle

: device handle (from suni4x622Add)

channel

: channel number

C2

: C2 byte to write

None

 

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

Inputs

Outputs Returns

INT4 suni4x622TPOHWriteNDF(sSUNI4x622_HNDL deviceHandle, UINT1 channel, UINT2 enable, UINT1 ndf)

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)

None

 

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

Proprietary and Confidential to PMC-Sierra, Inc.

70

Document ID: PMC-2010419, Issue 1

 

Page 70
Image 70
PMC-Sierra PM5358 S/UNI 4x622 manual Writing the C2 Byte suni4x622TPOHWriteC2