Jump to main content

##

# DRV_MX25L_ReadJedecId Function

## C

    bool DRV_MX25L_ReadJedecId( const DRV_HANDLE handle, void *jedec_id );

## Summary

Reads JEDEC-ID of the flash device.

## Description

This function schedules a blocking operation for reading the JEDEC-ID. This information can be used to get the flash device geometry.

The request is sent in QUAD_MODE to flash device.

## Precondition

The DRV_MX25L_Open() routine must have been called for the specified MX25L driver instance.

## Parameters

Param | Description
--- | ---
handle | A valid open-instance handle, returned from the driver's open routine

## Returns

true - if the read is successfully completed

false - if read jedec-id command fails

## Example

    DRV_HANDLE handle; // Returned from DRV_MX25L_Open
    uint32_t jedec_id = 0;

    if(DRV_MX25L_ReadJedecId(handle, &jedec_id) == false)
    {
        // Error handling here
    }

## Remarks

This routine will block wait for transfer to complete.