DRV_W25_ReadJedecId Function

C

bool DRV_W25_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.

Precondition

The DRV_W25_Open() routine must have been called for the specified W25 driver instance.

Parameters

ParamDescription
handleA 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_W25_Open
uint32_t jedec_id = 0;

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

Remarks

This routine will block wait for transfer to complete.