Esempio n. 1
0
        //-------------------------------------------------------------------------

        /**
         *  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;
            }
        }
Esempio n. 2
0
        //-------------------------------------------------------------------------

        /**
         *  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;
            }
        }
Esempio n. 3
0
 /// <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();
 }
Esempio n. 4
0
        //-------------------------------------------------------------------------

        /**
         *  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;
            }
        }
Esempio n. 5
0
        //-------------------------------------------------------------------------

        /**
         *  Interrupts ongoing read or write session.
         */
        public virtual void stopFlasher()
        {
            lock (this.m_synchObject)
            {
                this.m_command = FlashCommand.StopCommand;
            }
        }
Esempio n. 6
0
        //-------------------------------------------------------------------------

        /**
         *  Interrupts ongoing read or write session.
         */
        public virtual void stopFlasher()
        {
            lock (this.m_synchObject)
            {
                this.m_command     = FlashCommand.StopCommand;
                this.m_flashStatus = FlashStatus.DoinNuthin;
            }
        }
Esempio n. 7
0
        //-------------------------------------------------------------------------

        /**
         *  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;
            }
        }
Esempio n. 8
0
 protected void SendCommand(FlashCommand command)
 {
     Write((byte)command);
 }
Esempio n. 9
0
 protected void SendCommand(FlashCommand command)
 {
     Write((byte) command);
 }
Esempio n. 10
0
 /// <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();
 }
Esempio n. 11
0
 /// <summary>
 /// This method interrupts ongoing read or write session.
 /// </summary>
 public void stopFlasher()
 {
     lock (m_synchObject)
     {
         m_command = FlashCommand.StopCommand;
     }
 }
Esempio n. 12
0
        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;
        }
Esempio n. 13
0
        //-------------------------------------------------------------------------
        /**
            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;
            }
        }
Esempio n. 14
0
 //-------------------------------------------------------------------------
 /**
     Interrupts ongoing read or write session.
 */
 public virtual void stopFlasher()
 {
     lock (this.m_synchObject)
     {
         this.m_command = FlashCommand.StopCommand;
     }
 }
Esempio n. 15
0
        //-------------------------------------------------------------------------
        /**
            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;
            }
        }
Esempio n. 16
0
        //-------------------------------------------------------------------------
        /**
            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;
            }
        }
Esempio n. 17
0
        //-------------------------------------------------------------------------
        /**
            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;
            }
        }
Esempio n. 18
0
 /// <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();
 }
Esempio n. 19
0
 /// <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();
 }
Esempio n. 20
0
        private bool m_EnableCanLog = false;            ///< CAN logging flag

        //-------------------------------------------------------------------------

        /**
         *  Default constructor.
         */
        public IFlasher()
        {
            // clear state
            this.m_flashStatus = FlashStatus.DoinNuthin;
            this.m_command     = FlashCommand.NoCommand;
        }
Esempio n. 21
0
 //-------------------------------------------------------------------------
 /**
     Interrupts ongoing read or write session.
 */
 public virtual void stopFlasher()
 {
     lock (this.m_synchObject)
     {
         this.m_command = FlashCommand.StopCommand;
         this.m_flashStatus = FlashStatus.DoinNuthin;
     }
 }