MTD Device Driver API
The linear flash disk driver does not know how to actually handle flash memory. Rather, it interfaces to an MTD driver to manipulate the flash. Thus, the same flash disk driver can support many different types of flash memory through different MTDs.
MTDs have a similar structure as RTFiles-32 device drivers. They consist of a structure with function pointers to the driver's various entrypoints.
Structure RTF_MTD
Function MountDevice
Function ShutDown
Function MapWindow
Function EraseBlock
Function ProgramData
RTFiles-32 Error Codes
|