1.1.8.4.6 DRV_SFDP_ReadJedecId Function
1.1.8.4.6 C
bool DRV_SFDP_ReadJedecId( const DRV_HANDLE handle, void *jedec_id );1.1.8.4.6 Summary
Reads JEDEC-ID of the Flash device.
1.1.8.4.6 Description
This function schedules a blocking operation for reading the JEDEC-ID. This information can be used to get the Flash device geometry.
1.1.8.4.6 Precondition
The DRV_SFDP_Open() routine must have been called for the specified SFDP driver instance.
1.1.8.4.6 Parameters
| Parameters | Description |
|---|---|
| handle | A valid open-instance handle, returned from the driver's open routine |
| *jedec_id | Pointer to store the JEDEC ID value |
1.1.8.4.6 Returns
True - If the read is successfully completed.
False - If read jedec-id command fails.
1.1.8.4.6 Example
DRV_HANDLE handle; // Returned from DRV_SFDP_Open
uint32_t jedec_id = 0;
if(DRV_SFDP_ReadJedecId(handle, &jedec_id) == false)
{
// Error handling here
}1.1.8.4.6 Remarks
None.
