1.1.4.4.2 DRV_RF215_Status Function

C

SYS_STATUS DRV_RF215_Status( SYS_MODULE_OBJ object );

Summary

Gets the current status of the RF215 driver module.

Description

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

Precondition

The DRV_RF215_Initialize routine must have been called to obtain a valid system object.

Parameters

ParamDescription
objectDriver object handle, returned from the DRV_RF215_Initialize routine.

Returns

SYS_STATUS valueDescription
SYS_STATUS_READYThe RF215 driver module initialization has completed successfully.
SYS_STATUS_BUSYThe RF215 driver module initialization has not completed yet.
SYS_STATUS_ERRORThe RF215 driver module is in an error state.
SYS_STATUS_UNINITIALIZEDThe RF215 driver module is not initialized.

Example

SYS_MODULE_OBJ sysObjDrvRf215; // Returned from DRV_RF215_Initialize
SYS_STATUS drvRf215Status;

drvRf215Status = DRV_RF215_Status(sysObjDrvRf215);
if (drvRf215Status == SYS_STATUS_READY)
{
    // This means now the driver can be opened using DRV_RF215_Open routine
}

Remarks

The RF215 driver can be opened (DRV_RF215_Open) only when its status is SYS_STATUS_READY.