Jump to main content

##

# 1.1.3.4.2 DRV_MEMORY_Status Function

## C

    SYS_STATUS DRV_MEMORY_Status( SYS_MODULE_OBJ object );

## Summary

Gets the current status of the Memory driver module.

## Description

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

## Preconditions

Function DRV_MEMORY_Initialize should have been called before calling this function.

## Parameters

Param | Description
--- | ---
object | Driver object handle, returned from the DRV_MEMORY_Initialize routine

## Returns

SYS_STATUS_READY - Indicates that the driver is ready and accept requests for new operations.

SYS_STATUS_UNINITIALIZED - Indicates the driver is not initialized.

SYS_STATUS_BUSY - Indicates the driver is in busy state.

## Example

    SYS_MODULE_OBJ object; // Returned from DRV_MEMORY_Initialize
    SYS_STATUS MEMORYStatus;

    MEMORYStatus = DRV_MEMORY_Status(object);

## Remarks

This routine will NEVER block waiting for hardware.