//------------------------------------------------------------------------- /** * Starts a flash reading session. * * @param a_fileName name of target file */ public virtual void readFlash(string a_fileName) { lock (this.m_synchObject) { this.m_command = FlashCommand.ReadCommand; } }
//------------------------------------------------------------------------- /** * Starts a symbol map reading session. * * @param a_fileName name of target file */ public virtual void readSymbolMap(string a_fileName) { lock (m_synchObject) { m_command = FlashCommand.ReadSymbolMapCommand; } }
/// <summary> /// Constructor for T7Flasher. /// </summary> /// <param name="a_kwpHandler">The KWPHandler to be used for the communication.</param> public T7Flasher() { m_command = FlashCommand.NoCommand; m_flashStatus = FlashStatus.DoinNuthin; m_thread = new Thread(run); m_thread.Start(); }
//------------------------------------------------------------------------- /** * Starts writing to flash memory. * * @param a_fileName name of source file */ public virtual void writeFlash(string a_fileName) { lock (m_synchObject) { m_command = FlashCommand.WriteCommand; } }
//------------------------------------------------------------------------- /** * Interrupts ongoing read or write session. */ public virtual void stopFlasher() { lock (this.m_synchObject) { this.m_command = FlashCommand.StopCommand; } }
//------------------------------------------------------------------------- /** * Interrupts ongoing read or write session. */ public virtual void stopFlasher() { lock (this.m_synchObject) { this.m_command = FlashCommand.StopCommand; this.m_flashStatus = FlashStatus.DoinNuthin; } }
//------------------------------------------------------------------------- /** * Starts a SRAM reading session. * * @param a_fileName name of target file * @param a_offset source offset * @param a_length source length, bytes */ public virtual void readMemory(string a_fileName, UInt32 a_offset, UInt32 a_length) { lock (this.m_synchObject) { m_command = FlashCommand.ReadMemoryCommand; } }
protected void SendCommand(FlashCommand command) { Write((byte)command); }
protected void SendCommand(FlashCommand command) { Write((byte) command); }
/// <summary> /// This method starts writing to flash. /// </summary> /// <param name="a_fileName">The name of the file from where to read the data from.</param> public void writeFlash(string a_fileName) { lock (m_synchObject) { m_command = FlashCommand.WriteCommand; m_fileName = a_fileName; } m_resetEvent.Set(); }
/// <summary> /// This method interrupts ongoing read or write session. /// </summary> public void stopFlasher() { lock (m_synchObject) { m_command = FlashCommand.StopCommand; } }
private bool m_EnableCanLog = false; ///< CAN logging flag #endregion Fields #region Constructors //------------------------------------------------------------------------- /** Default constructor. */ public IFlasher() { // clear state this.m_flashStatus = FlashStatus.DoinNuthin; this.m_command = FlashCommand.NoCommand; }
//------------------------------------------------------------------------- /** Starts friting to flash memory. @param a_fileName name of source file */ public virtual void writeFlash(string a_fileName) { lock (m_synchObject) { m_command = FlashCommand.WriteCommand; } }
//------------------------------------------------------------------------- /** Interrupts ongoing read or write session. */ public virtual void stopFlasher() { lock (this.m_synchObject) { this.m_command = FlashCommand.StopCommand; } }
//------------------------------------------------------------------------- /** Starts a symbol map reading session. @param a_fileName name of target file */ public virtual void readSymbolMap(string a_fileName) { lock (m_synchObject) { m_command = FlashCommand.ReadSymbolMapCommand; } }
//------------------------------------------------------------------------- /** Starts a SRAM reading session. @param a_fileName name of target file @param a_offset source offset @param a_length source length, bytes */ public virtual void readMemory(string a_fileName, UInt32 a_offset, UInt32 a_length) { lock (this.m_synchObject) { m_command = FlashCommand.ReadMemoryCommand; } }
//------------------------------------------------------------------------- /** Starts a flash reading session. @param a_fileName name of target file */ public virtual void readFlash(string a_fileName) { lock (this.m_synchObject) { this.m_command = FlashCommand.ReadCommand; } }
/// <summary> /// This method starts a reading session for reading memory. /// </summary> /// <param name="a_fileName">Name of the file where the flash contents is saved.</param> /// <param name="a_offset">Starting address to read from.</param> /// <param name="a_length">Length to read.</param> public void readMemory(string a_fileName, UInt32 a_offset, UInt32 a_length) { lock (m_synchObject) { m_command = FlashCommand.ReadMemoryCommand; m_fileName = a_fileName; m_offset = a_offset; m_length = a_length; } m_resetEvent.Set(); }
/// <summary> /// This method starts symbol map. /// </summary> /// <param name="a_fileName">Name of the file where the flash contents is saved.</param> /// <param name="a_offset">Starting address to read from.</param> /// <param name="a_length">Length to read.</param> public void readSymbolMap(string a_fileName) { lock (m_synchObject) { m_command = FlashCommand.ReadSymbolMapCommand; m_fileName = a_fileName; } m_resetEvent.Set(); }
private bool m_EnableCanLog = false; ///< CAN logging flag //------------------------------------------------------------------------- /** * Default constructor. */ public IFlasher() { // clear state this.m_flashStatus = FlashStatus.DoinNuthin; this.m_command = FlashCommand.NoCommand; }
//------------------------------------------------------------------------- /** Interrupts ongoing read or write session. */ public virtual void stopFlasher() { lock (this.m_synchObject) { this.m_command = FlashCommand.StopCommand; this.m_flashStatus = FlashStatus.DoinNuthin; } }