1.1.5.1.2 DRV_I2S_Status Function

SYS_STATUS DRV_I2S_Status( SYS_MODULE_OBJ object )

Summary

Gets the current status of the I2S driver module.

Description

This routine provides the current status of the I2S driver module.

Preconditions

Function DRV_I2S_Initialize should have been called before calling this function.

Parameters

ParametersDescription
objectDriver object handle, returned from the DRV_I2S_Initialize routine

Returns

SYS_STATUS_READY - Initialization have succeeded and the I2S is ready for additional operations

SYS_STATUS_DEINITIALIZED - Indicates that the driver has been deinitialized

Remarks

A driver can opened only when its status is SYS_STATUS_READY.

Example

SYS_MODULE_OBJ object; _// Returned from DRV_I2S_Initialize_

SYS_STATUS i2sStatus; i2sStatus = DRV_I2S _Status(object); if (SYS_STATUS_READY == i2sStatus) {

_// This means the driver can be opened using the_ _// DRV_I2S_Open() function._

}

C

SYS_STATUS DRV_I2S_Status(SYS_MODULE_OBJ object);