Jump to main content

##

# 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

Param | 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.