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. 76
Document ID: PMC-2010419, Issue 1
Inputs
deviceHandle : device handle (from suni4x622Add)
channel : channel number
pfifocfg : (pointer to) FIFO configuration block
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
Configuring the System interface: suni4x622SysIntfCfg
This function configures the system interface based on the configuration parameters.
Prototype
INT4 suni4x622SysIntfCfg(sSUNI4x622_HNDL
deviceHandle, sSUNI4x622_CFG_INTF_SYS_GLOBAL *psyscfg
)
Inputs
deviceHandle : device handle (from suni4x622Add)
psyscfg : (pointer to) system interface configuration
block
Outputs
None
Returns
Success =
SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_ARG
Valid States
SUNI4x622_ACTIVE, SUNI4x622_INACTIVE
Side Effects
None
Configuring the Device-Wide Line interface: suni4x622IntfLineCfg
This function configures the device-wide line interface based on the configuration parameters.
Prototype
INT4 suni4x622IntfLineCfg(sSUNI4x622_HNDL
deviceHandle, sSUNI4x622_CFG_INTF_LINE_GLOBAL
*plinecfg )
Inputs
deviceHandle : device handle (from suni4x622Add)
plinecfg : (pointer to) device-wide line interface
configuration block