PM5365 PMC-Sierra, Inc., PM5365 Datasheet - Page 51

no-image

PM5365

Manufacturer Part Number
PM5365
Description
TEMUX/TEMAP/TECT3 T1/E1 FRAMER, VT/TU MAPPER, M12/M13 MUX DRIVER MANUAL
Manufacturer
PMC-Sierra, Inc.
Datasheet
5.3
Proprietary and Confidential to PMC-Sierra, Inc., and for its Customers’ Internal Use
Document ID: PMC-1991611, Issue 2
Device Initialization
Adding Devices: temuxAdd
This function verifies the presence of a new device in the hardware, configures a Device Data
Block (DDB), stores the contents of the passed Device Initialization Vector (DIV) and passes a
handle back to the application. The handle is used as a parameter to most of the device API
functions. Caution: It is the user’s responsibility to ensure enough space has been allocated for the
MDB and DDBs if the user decides to handle this task (indicated by passing NULL for the
parameter).
Inputs
Outputs
Returns
Valid States
Side Effects
Prototype
Inputs
Outputs
Returns
Valid States
Side Effects
None
None
Success =
Failure =
READY
Changes the STATE of the MODULE to IDLE
sTMX_HNDL temuxAdd (sTMX_DIV *pDIV)
pDIV
Places the address of the DDB into the DIV passed by the
application. Places any error codes into the MDB.
Success = Handle that must be used with most other device calls
Failure = NULL with
START
changes the STATE of the DEVICE to PRESENT
TMX_ERR_ARG,
TMX_ERR_CLOSED,
TMX_ERR_INVALID,
TMX_ERR_NOTREADY,
TMX_ERR_MAXDEVICE,
TMX_ERR_ADD,
TMX_ERR_HNDL,
TMX_ERR_HWFAIL
TMX_OK
TMX_ERR_INVALID
TMX_ERR_ISIDLE
TMX_ERR_NOTREADY
TMX_ERR_CLOSED
TEMUX/TEMAP/TECT3 (PM8315, PM5365, PM4328) Driver Manual
temuxMdb->errModule
: (pointer to) the DIV
Application Programming Interface
set to either
pDIV
51

Related parts for PM5365