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. 96
Document ID: PMC-2010419, Issue 1
Valid States
SUNI4x622_ACTIVE
Side Effects
None
Pseudocode
Begin
for each ISV element (section)
get and fill out a DPV buffer
if callback (from
suni4x622Init) is not NULL
invoke (section) callback
release ISV by calling
sysSuni4x622ISVBufferRtn
End
4.12 Alarm, Status and Counts Functions
Getting the Device Status: suni4x622GetStatusChan
This function reports the current SOH, LOH, RPOH, payload and line interface status for a
specific channel.
Prototype
INT4 suni4x622GetStatusChan(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, sSUNI4x622_STATUS_CHAN
*pstatusChan)
Inputs
deviceHandle : device handle (from suni4x622Add)
channel : channel number
pstatusChan : (pointer to) channel status block
Outputs
pstatusChan : (pointer to) updated channel status block
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
Getting the Device Status: suni4x622GetStatusSOH
This function retrieves the SOH status.
Prototype
INT4 suni4x622GetStatusSOH(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, sSUNI4x622_STATUS_SOH
*pstatusSOH)
Inputs
deviceHandle : device handle (from suni4x622Add)
channel : channel number