DRV_SST26_UnlockFlash Function
C
bool DRV_SST26_UnlockFlash( const DRV_HANDLE handle );
Summary
Unlocks the Flash device for Erase and Program operations.
Description
This function schedules a blocking operation for unlocking the Flash blocks globally. This allows to perform erase and program operations on the Flash.
Precondition
The DRV_SST26_Open() routine must have been called for the specified SST26 driver instance.
Parameters
| Parameters | Description |
|---|---|
| handle | A valid open-instance handle, returned from the driver's open routine |
Returns
True:
- if the unlock is successfully completed
False:
- if Write enable fails before sending unlock command to Flash and
- if Unlock Flash command itself fails
Example
DRV_HANDLE handle; // Returned from DRV_SST26_Open
if(DRV_SST26_UnlockFlash(handle) == false)
{
// Error handling here
}
Remarks
None.
