at26.h
Default mainpageat91libmemoriesspi-flashat26.h
Description Overview
Classes Brief description
 _At26 Serial flash driver structure.
 _At26Desc Describes a serial firmware flash device parameters.
Methods  
 AT26_Configure Initializes an AT26 driver instance with the given SPI driver and chip select value.
 AT26_FindDevice Tries to detect a serial firmware flash device given its JEDEC identifier.
 AT26_IsBusy Returns 1 if the serial flash driver is currently busy executing a command; otherwise returns 0.
 AT26_SendCommand Sends a command to the serial flash through the SPI.
Defines  
 AT26_BLOCK_ERASE_32K Block erase command code (32K block).
 AT26_BLOCK_ERASE_4K Block erase command code (4K block).
 AT26_BLOCK_ERASE_64K Block erase command code (64K block).
 AT26_BYTE_PAGE_PROGRAM Byte/page program command code.
 AT26_CHIP_ERASE_1 Chip erase command code 1.
 AT26_CHIP_ERASE_2 Chip erase command code 2.
 AT26_DEEP_PDOWN Deep power-down command code.
 AT26_ERROR_BUSY Device is busy executing a command.
 AT26_ERROR_PROGRAM There was a problem while trying to program page data.
 AT26_ERROR_PROTECTED Device is protected, operation cannot be carried out.
 AT26_ERROR_SPI There was an SPI communication error.
 AT26_PROTECT_SECTOR Protect sector command code.
 AT26_READ_ARRAY Read array command code.
 AT26_READ_ARRAY_LF Read array (low frequency) command code.
 AT26_READ_JEDEC_ID Read manufacturer and device ID command code.
 AT26_READ_SECTOR_PROT Read sector protection registers command code.
 AT26_READ_STATUS Read status register command code.
 AT26_RES_DEEP_PDOWN Resume from deep power-down command code.
 AT26_SEQUENTIAL_PROGRAM_1 Sequential program mode command code 1.
 AT26_SEQUENTIAL_PROGRAM_2 Sequential program mode command code 2.
 AT26_STATUS_EPE Erase/program error bit.
 AT26_STATUS_EPE_ERROR Erase or program error detected.
 AT26_STATUS_EPE_SUCCESS Erase or program operation was successful.
 AT26_STATUS_RDYBSY Device ready/busy status bit.
 AT26_STATUS_RDYBSY_BUSY Device is busy with internal operations.
 AT26_STATUS_RDYBSY_READY Device is ready.
 AT26_STATUS_SPRL Sector protection registers locked bit.
 AT26_STATUS_SPRL_LOCKED Sector protection registers are locked.
 AT26_STATUS_SPRL_UNLOCKED Sector protection registers are unlocked.
 AT26_STATUS_SWP Software protection status bitfield.
 AT26_STATUS_SWP_PROTALL All sectors are software protected.
 AT26_STATUS_SWP_PROTNONE No sector is software protected.
 AT26_STATUS_SWP_PROTSOME Some sectors are software protected.
 AT26_STATUS_WEL Write enable latch status bit.
 AT26_STATUS_WEL_DISABLED Device is not write enabled.
 AT26_STATUS_WEL_ENABLED Device is write enabled.
 AT26_STATUS_WPP Write protect pin status bit.
 AT26_STATUS_WPP_ASSERTED Write protect signal is asserted.
 AT26_STATUS_WPP_NOTASSERTED Write protect signal is not asserted.
 AT26_UNPROTECT_SECTOR Unprotect sector command code.
 AT26_WRITE_DISABLE Write disable command code.
 AT26_WRITE_ENABLE Write enable command code.
 AT26_WRITE_STATUS Write status register command code.
Types  
 At26 Serial flash driver structure.
 At26Desc Describes a serial firmware flash device parameters.