Jump to main content

##

# DRV_MX25L_Status Function

## C

    SYS_STATUS DRV_MX25L_Status( const SYS_MODULE_INDEX drvIndex );

## Summary

Gets the current status of the MX25L driver module.

## Description

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

## Preconditions

Function DRV_MX25L_Initialize should have been called before calling this function.

## Parameters

Param | Description
--- | ---
drvIndex | Identifier for the instance used to initialize driver

## 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_STATUS Status;

    Status = DRV_MX25L_Status(DRV_MX25L_INDEX);

    if (status == SYS_STATUS_READY)
    {
        // MX25L driver is initialized and ready to accept requests.
    }

## Remarks

This routine will NEVER block wait for hardware.