PM5358
Application Programming Interface
perrDevice : (pointer to) errDevice (inside the DDB)
Returns Success = Device Handle (to be used bas an argument to most of the
Failure = NULL (pointer)
Valid States SUNI4x622_MOD_READY
Side Effects Changes the DEVICE state to SUNI4x622_PRESENT
Deleting a Device: suni4x622Delete
This function removes the specified device from the list of devices being controlled by the
Prototype
Inputs
Outputs
Returns
Valid States
Side Effects
INT4 suni4x622Delete(sSUNI4x622_HNDL deviceHandle)
deviceHandle | : device handle (from suni4x622Add) |
None
Success = SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEV
SUNI4x622_PRESENT, SUNI4x622_ACTIVE,
SUNI4x622_INACTIVE
Changes the DEVICE state to SUNI4x622_PRESENT
Initializing a Device: suni4x622Init
This function initializes the Device Data Block (DDB) associated with that device during suni4x622Add, applies a soft reset to the device and configures it according to the DIV passed by the application. If the DIV is passed as a NULL the profile number is used. A profile number of zero indicates that all the register bits are to be left in their default state (after a soft reset). Note that the profile number is ignored UNLESS the passed DIV is NULL.
Prototype
Inputs
Outputs Returns
INT4 suni4x622Init(sSUNI4x622_HNDL deviceHandle, sSUNI4x622_DIV *pdiv, UINT2 profileNum)
deviceHandle | : device handle (from suni4x622Add) |
pdiv | : (pointer to) Device Initialization Vector |
profileNum | : profile number (ignored if pdiv is NULL) |
None |
|
Success = SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_PROFILE_NUM
Proprietary and Confidential to | 56 |
Document ID: |
|