PM5358
Application Programming Interface
Side Effects None
Getting the Device Counts: suni4x622GetCountsPYLD
This function retrieves all the PYLD counts.
Prototype | INT4 suni4x622GetCountsPYLD(sSUNI4x622_HNDL | |
| deviceHandle, UINT1 channel, sSUNI4x622_CNTR_PYLD | |
| *pcountsPYLD) |
|
Inputs | deviceHandle | : device handle (from suni4x622Add) |
| channel | : channel number |
| pcountsPYLD | : (pointer to) PYLD counter block |
Outputs | pcountsPYLD | : (pointer to) updated PYLD 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 |
4.13 Device Diagnostics
Testing Register Accesses: suni4x622DiagTestReg
This function verifies the hardware access to the device registers by writing and reading back values.
Prototype | INT4 suni4x622DiagTestReg(sSUNI4x622_HNDL | |
| deviceHandle) |
|
Inputs | deviceHandle | : device handle (from suni4x622Add) |
Outputs | None |
|
Returns | Success = SUNI4x622_SUCCESS |
| Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE |
| SUNI4x622_ERR_INVALID_DEV |
Valid States | SUNI4x622_PRESENT, SUNI4x622_INACTIVE |
Side Effects | None |
Proprietary and Confidential to | 101 |
Document ID: |
|