Mercury API
CmdModifyFlash Method (sector, address, password, length, data, offset)
Namespaces ► ThingMagic ► SerialReader ► CmdModifyFlash(Byte, UInt32, UInt32, Int32, array<Byte>[]()[], Int32)
Write data to the device's flash, erasing if necessary.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void CmdModifyFlash(
    	byte sector,
    	uint address,
    	uint password,
    	int length,
    	byte[] data,
    	int offset
    )

    Public Sub CmdModifyFlash ( _
    	sector As Byte, _
    	address As UInteger, _
    	password As UInteger, _
    	length As Integer, _
    	data As Byte(), _
    	offset As Integer _
    )

    public:
    void CmdModifyFlash(
    	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)