Mercury API
CmdWriteFlash Method (sector, address, password, length, data, offset)
NamespacesThingMagicSerialReaderCmdWriteFlash(Byte, UInt32, UInt32, Int32, array<Byte>[]()[], Int32)
Write data to a previously erased region of the device's flash.
Declaration Syntax
C#Visual BasicVisual C++
public void CmdWriteFlash(
	byte sector,
	uint address,
	uint password,
	int length,
	byte[] data,
	int offset
)
Public Sub CmdWriteFlash ( _
	sector As Byte, _
	address As UInteger, _
	password As UInteger, _
	length As Integer, _
	data As Byte(), _
	offset As Integer _
)
public:
void CmdWriteFlash(
	unsigned char sector, 
	unsigned int address, 
	unsigned int password, 
	int length, 
	array<unsigned char>^ data, 
	int offset
)
Parameters
sector (Byte)
the flash sector, as described in the embedded module user manual
address (UInt32)
the byte address to start writing from
password (UInt32)
the write password for the sector
length (Int32)
the amount of data to write. Limited to 240 bytes.
data (array< Byte >[]()[])
the data to write (from offset to offset + length - 1)
offset (Int32)
the index of the data to be writtin in the data array

Assembly: MercuryAPI (Module: MercuryAPI) Version: 1.29.4.34 (1.29.4.34)