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. 99
Document ID: PMC-2010419, Issue 1
SUNI4x622_ERR_INVALID_CHAN
SUNI4x622_ERR_INVALID_ARG
Valid States
SUNI4x622_ACTIVE, SUNI4x622_INACTIVE
Side Effects
None
Getting the Device Counts: suni4x622GetCountsChan
This function retrieves all the counts for a specific channel.
Prototype
INT4 suni4x622GetCountsChan(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, sSUNI4x622_CNTR_CHAN
*pcountsChan)
Inputs
deviceHandle : device handle (from suni4x622Add)
channel : channel number
pcountsChan : (pointer to) counter block
Outputs
pcountsChan : (pointer to) updated counter 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 Counts: suni4x622GetCountsSOH
This function retrieves all the SOH counts.
Prototype
INT4 suni4x622GetCountsSOH(sSUNI4x622_HNDL
deviceHandle, UINT1 channel, sSUNI4x622_CNTR_SOH
*pcountsSOH)
Inputs
deviceHandle : device handle (from suni4x622Add)
channel : channel number
pcountsSOH : (pointer to) SOH counter block
Outputs
pcountsSOH : (pointer to) updated SOH counter block
Returns
Success =
SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_CHAN
SUNI4x622_ERR_INVALID_ARG