.

Physical Device Interface

SafeFTL has been carefully designed to work with most NAND flash types. Creating the interface to a particular device is straightforward. Functions are provided for accessing the NAND flash device. In addition,  sample drivers are included for several NAND flash types; the interface is designed to be easy to port to any NAND device. Also included are sample ECC algorithms; the user should recognize that whenever possible these are best done with hardware support. The interface functions - called by SafeFTL - that the lower level interface must provide are:
 
ll_init()
Initialises physical layer and gets config info
ll_erase()
Erases a flash block
ll_write()
Writes a flash page from a buffer pointer
ll_writedouble()
Writes a flash page from two buffer pointers
ll_read()
Reads a flash page