Home |
Function ProgramData |
Function ProgramDataMTD driver function ProgramData writes data to the flash: int RTFAPI ProgramData(void * DriveData, void * Address, void * Data, UINT Length); ParametersDriveDataPointer to the DeviceData found in the MTDData member of the RTFDrvFlashData structure of the flash device. AddressAddress in the currently mapped memory window. It indicates the address in the flash where the written data should appear. DataPointer to the data to write. LengthNumber of bytes to write. return valueIf the function succeeds, it returns RTF_NO_ERROR. If it fails, the return value is a negative error code. The function should verify that writing was successful and return an error if it was not.
|