at45.h
Default mainpageat91libmemoriesspi-flashat45.h
Description Overview
Classes Brief description
 _Dataflash Dataflash driver structure.
 At45Desc Dataflash description.
Methods  
 AT45_Configure Initializes an AT45 instance and configures SPI chip select register.
 AT45_FindDevice This function returns the At45Desc structure corresponding to the device connected It automatically initializes pAt45->pDesc field structure.
 AT45_IsBusy This function returns 1 if the At45 driver is not executing any command; otherwise it returns 0.
 AT45_PageSize This function returns the pagesize corresponding to the device connected.
 AT45_SendCommand Sends a command to the dataflash through the SPI.
Macros  
 AT45_STATUS_BINARY Returns 1 if the device is configured in binary page mode; otherwise 0.
 AT45_STATUS_ID Returns the device ID code.
 AT45_STATUS_READY Returns 1 if the device is ready; otherwise 0.
Defines  
 AT45_AUTO_REWRITE_BUF1 Auto page rewrite through buffer 1 command code.
 AT45_AUTO_REWRITE_BUF2 Auto page rewrite through buffer 2 command code.
 AT45_BINARY_PAGE_FIRST_OPCODE Power-of-2 binary page size configuration command code.
 AT45_BLOCK_ERASE Block erase command code.
 AT45_BUF1_MEM_ERASE Buffer 1 to main memory page program with erase command code.
 AT45_BUF1_MEM_NOERASE Buffer 1 to main memory page program without erase command code.
 AT45_BUF1_READ_8B Buffer 1 read (8-bit) command code.
 AT45_BUF1_READ_LF Buffer 1 read (low frequency) command code.
 AT45_BUF1_READ_SER Buffer 1 read (serial) command code.
 AT45_BUF1_WRITE Buffer 1 write command code.
 AT45_BUF2_MEM_ERASE Buffer 2 to main memory page program with erase command code.
 AT45_BUF2_MEM_NOERASE Buffer 2 to main memory page program without erase command code.
 AT45_BUF2_READ_8B Buffer 2 read (8-bit) command code.
 AT45_BUF2_READ_LF Buffer 2 read (low frequency) command code.
 AT45_BUF2_READ_SER Buffer 2 read (serial) command code.
 AT45_BUF2_WRITE Buffer 2 write command code.
 AT45_CHIP_ERASE Chip erase command code.
 AT45_CONTINUOUS_READ Continous array read command code.
 AT45_CONTINUOUS_READ_LEG Continous array read (legacy) command code.
 AT45_CONTINUOUS_READ_LF Continous array read (low frequency) command code.
 AT45_DEEP_PDOWN Deep power-down command code.
 AT45_ERROR_LOCK The dataflash driver is currently in use.
 AT45_ERROR_SPI There was an error with the SPI driver.
 AT45_ID_READ Manufacturer and device ID read command code.
 AT45_PAGE_BUF1_CMP Main memory page to buffer 1 compare command code.
 AT45_PAGE_BUF1_TX Main memory page to buffer 1 transfer command code.
 AT45_PAGE_BUF2_CMP Main memory page to buffer 2 compare command code.
 AT45_PAGE_BUF2_TX Main memory page to buffer 2 transfer command code.
 AT45_PAGE_ERASE Page erase command code.
 AT45_PAGE_READ Main memory page read command code.
 AT45_PAGE_WRITE_BUF1 Main memory page program through buffer 1 command code.
 AT45_PAGE_WRITE_BUF2 Main memory page program through buffer 2 command code.
 AT45_RES_DEEP_PDOWN Resume from deep power-down command code.
 AT45_SECTOR_ERASE Sector erase command code.
 AT45_STATUS_READ Status register read command code.
Types  
 At45 Dataflash driver structure.