Write data to a previously erased region of the device's flash.
| C# | Visual Basic | Visual 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 )
- 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