1.1.3.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
| Param | Description |
|---|---|
| object | Driver object handle, returned from the DRV_RF215_Initialize routine. |
Returns
| SYS_STATUS value | Description |
|---|---|
| SYS_STATUS_READY | The RF215 driver module initialization has completed successfully. |
| SYS_STATUS_BUSY | The RF215 driver module initialization has not completed yet. |
| SYS_STATUS_ERROR | The RF215 driver module is in an error state. |
| SYS_STATUS_UNINITIALIZED | The 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.
