1.1.7.4.2 DRV_SDSPI_Status Function
C
SYS_STATUS DRV_SDSPI_Status ( SYS_MODULE_OBJ object )
Summary
Provides the current status of the SDSPI driver module.
Description
This routine provides the current status of the SDSPI driver module.
Precondition
Function DRV_SDSPI_Initialize must have been called before calling this function
Parameters
Param | Description |
---|---|
object | Driver object handle, returned from the DRV_SDSPI_Initialize routine |
Returns
SYS_STATUS_READY - Indicates that the driver has been initialized and is ready to accept requests from the client.
SYS_STATUS_UNINITIALIZED - Indicates that the driver has not been initialized.
Example
SYS_MODULE_OBJ object; // Returned from DRV_SDSPI_Initialize SYS_STATUS status; status = DRV_SDSPI_Status(object); if (status == SYS_STATUS_READY) { // Driver is initialized and ready. }
Remarks
This operation can be used to determine if the driver is initialized or not.