The AT26 serial firmware Dataflash driver is based on top of the corresponding Spi driver. A Dataflash structure instance has to be initialized using the DF_Init function. Then basic dataflash operations can be launched using macros such as DF_continuous_read. These macros invoke the DF_Command() function which invokes the DPI low driver using the SPI_SendCommand() function. Beware to compute the dataflash internal address, the dataflash sector description must be known (DataflashDesc). Dataflash can be automatically detected using the DF_Scan() function.
Usage
Initializes an AT26 instance and configures SPI chip select pin using AT26_Configure().
Detect DF and returns DF description corresponding to the device connected using AT26_FindDevice().This function shall be called by the application before AT26_SendCommand().
Sends a command to the DF through the SPI using AT26_SendCommand(). The command is identified by its command code and the number of bytes to transfer.
Example code for sending command to write a page to DF.