.

Upper Layer Interface

The SafeFTL is designed for ease of use by standard file systems. It provides a very simple logical sector-based interface for the higher level application. The interface functions are:
hl_init
Initialises the SafeFTL
hl_format
Performs an initial low-level format of the flash
hl_getmaxsector
Returns the number of logical sectors in the system
hl_open
Opens one or more sectors for a read/write operation
hl_close
Closes an operation
hl_read
Reads a number of logical sectors from the flash
hl_write
Writes a number of logical sectors to the flash
This interface is suitable for use in conjunction with HCC’s FAT, THIN and EUSB-MS. Integrated projects can be provided on request.