1.1.13.3.4 Library Interface

W25 driver library provides the following interfaces:

Functions

NameDescription
DRV_W25_InitializeInitializes the W25 Driver
DRV_W25_OpenOpens the specified W25 driver instance and returns a handle to it
DRV_W25_CloseCloses an opened-instance of the W25 driver
DRV_W25_StatusGets the current status of the W25 driver module
DRV_W25_UnlockFlashUnlocks the flash device for Erase and Program operations
DRV_W25_ReadJedecIdReads JEDEC-ID of the flash device
DRV_W25_SectorEraseErase the sector from the specified block start address
DRV_W25_BlockEraseErase a block from the specified block start address
DRV_W25_ChipEraseErase entire flash memory
DRV_W25_ReadReads n bytes of data from the specified start address of flash memory
DRV_W25_PageWriteWrites one page of data starting at the specified address
DRV_W25_TransferStatusGetGets the current status of the transfer request
DRV_W25_GeometryGetReturns the geometry of the device

Data types and constants

NameTypeDescription
DRV_W25_TRANSFER_STATUSEnumW25 Driver Transfer Status
DRV_W25_GEOMETRYStructW25 Device Geometry data