DRV_SST26_ReadJedecId Function
C
bool DRV_SST26_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_SST26_Open() routine must have been called for the specified SST26 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_SST26_Open
uint32_t jedec_id = 0;
if(DRV_SST26_ReadJedecId(handle, &jedec_id) == false)
{
// Error handling here
}
Remarks
None.