PM5358 S/UNI-4x622 Driver Manual

 

 

Application Programming Interface

 

 

 

 

ppyldcfg

: (pointer to) payload configuration parameters

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

 

4.9Interface Configuration

The Interface Configuration provides FIFO management to separate the line side timing from the high layer ATM/POS link layer timing, the line and system interface configuration.

Resetting the Receive/Transmit FIFO: suni4x622FIFOReset

This function resets the receive and/or transmit FIFO.

Prototype

Inputs

Outputs Returns

INT4 suni4x622FIFOReset(sSUNI4x622_HNDL deviceHandle, UINT1 channel, UINT1 fifotype)

deviceHandle

: device handle (from suni4x622Add)

channel

: channel number

fifotype

: =0 if RX; = 1 if TX; = 2 if both

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

Configuring the Receive and Transmit FIFO: suni4x622FIFOCfg

This function configures the FIFO based on the FIFO configuration supplied.

Prototype

INT4 suni4x622FIFOCfg(sSUNI4x622_HNDL deviceHandle,

 

UINT1 channel, sSUNI4x622_CFG_FIFO *pfifocfg)

Proprietary and Confidential to PMC-Sierra, Inc.

75

Document ID: PMC-2010419, Issue 1

 

Page 75
Image 75
PMC-Sierra PM5358 S/UNI 4x622 manual Interface Configuration, Resetting the Receive/Transmit Fifo suni4x622FIFOReset