1.1.3.3.3 DRV_GENERICCODEC_Status Function
SYS_STATUS DRV_GENERICCODEC_Status( SYS_MODULE_OBJ object)
Summary
Gets the current status of the Generic Codec driver module.
Description
This routine provides the current status of the Generic Codec driver module.
Preconditions
Function DRV_GENERICCODEC_Initialize should have been called before calling this function.
Parameters
Parameters | Description |
---|---|
object | Driver object handle, returned from the DRV_GENERICCODEC_Initialize routine |
Returns
SYS_STATUS_DEINITIALIZED - Indicates that the driver has been deinitialized
SYS_STATUS_READY - Indicates that any previous module operation for the specified module has completed
SYS_STATUS_BUSY - Indicates that a previous module operation for the specified module has not yet completed
SYS_STATUS_ERROR - Indicates that the specified module is in an error state
Remarks
A driver can opened only when its status is SYS_STATUS_READY.
Example
SYS_MODULE_OBJ object; _// Returned from DRV_GENERICCODEC_Initialize_ SYS_STATUS GENERICCODECStatus; GENERICCODECStatus = DRV_GENERICCODEC_Status(object); if (SYS_STATUS_READY == GENERICCODECStatus) { _// This means the driver can be opened using the_ _// DRV_GENERICCODEC_Open() function._ }
C
SYS_STATUS DRV_GENERICCODEC_Status(SYS_MODULE_OBJ object);