.Buffernum Property

Top  Previous  Next

Function:

Sets/returns the number of the RAM buffer that will be used for direct sector access.

Type:

Byte

Value Range:

0 or 1. Default= 0 (RAM buffer #0 selected).

See Also:

Direct Sector Access,

fd.getbuffer, fd.setbuffer, fd.getsector, fd.setsector, fd.checksum, fd.copyfirmware, fd.copyfirmwarelzo

 


Details

All file-based operations of the flash disk also load data into the RAM buffers. Switch to the RAM buffer #0 each time before performing direct sector access with this or other related methods — this will guarantee that you won't corrupt the files and/or the file system and cause disk dismounting (fd.ready becoming 0- NO).