aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Drivers/Tiva USB/i386/lmdfu.lib
blob: 8c80a2c9ad8b2b0f02d33ff1df8005f339066a7f (plain)
ofshex dumpascii
0000 21 3c 61 72 63 68 3e 0a 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 34 33 30 39 37 39 33 !<arch>./...............14309793
0020 39 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 38 39 36 20 20 20 20 20 92..............0.......896.....
0040 20 20 60 0a 00 00 00 21 00 00 07 8a 00 00 09 ac 00 00 0a e0 00 00 10 1c 00 00 10 1c 00 00 0d 82 ..`....!........................
0060 00 00 0d 82 00 00 0d 14 00 00 0d 14 00 00 0d f0 00 00 0d f0 00 00 0c 9c 00 00 0c 9c 00 00 11 62 ...............................b
0080 00 00 11 62 00 00 0e 64 00 00 0e 64 00 00 0e d0 00 00 0e d0 00 00 0f 40 00 00 0f 40 00 00 12 3a ...b...d...d...........@...@...:
00a0 00 00 12 3a 00 00 10 84 00 00 10 84 00 00 11 ce 00 00 11 ce 00 00 0f aa 00 00 0f aa 00 00 0c 2e ...:............................
00c0 00 00 0c 2e 00 00 10 f4 00 00 10 f4 5f 5f 49 4d 50 4f 52 54 5f 44 45 53 43 52 49 50 54 4f 52 5f ............__IMPORT_DESCRIPTOR_
00e0 6c 6d 64 66 75 00 5f 5f 4e 55 4c 4c 5f 49 4d 50 4f 52 54 5f 44 45 53 43 52 49 50 54 4f 52 00 7f lmdfu.__NULL_IMPORT_DESCRIPTOR..
0100 6c 6d 64 66 75 5f 4e 55 4c 4c 5f 54 48 55 4e 4b 5f 44 41 54 41 00 5f 4c 4d 44 46 55 49 6e 69 74 lmdfu_NULL_THUNK_DATA._LMDFUInit
0120 40 30 00 5f 5f 69 6d 70 5f 5f 4c 4d 44 46 55 49 6e 69 74 40 30 00 5f 4c 4d 44 46 55 44 65 76 69 @0.__imp__LMDFUInit@0._LMDFUDevi
0140 63 65 4f 70 65 6e 40 31 32 00 5f 5f 69 6d 70 5f 5f 4c 4d 44 46 55 44 65 76 69 63 65 4f 70 65 6e ceOpen@12.__imp__LMDFUDeviceOpen
0160 40 31 32 00 5f 4c 4d 44 46 55 44 65 76 69 63 65 43 6c 6f 73 65 40 38 00 5f 5f 69 6d 70 5f 5f 4c @12._LMDFUDeviceClose@8.__imp__L
0180 4d 44 46 55 44 65 76 69 63 65 43 6c 6f 73 65 40 38 00 5f 4c 4d 44 46 55 44 65 76 69 63 65 53 74 MDFUDeviceClose@8._LMDFUDeviceSt
01a0 72 69 6e 67 47 65 74 40 32 30 00 5f 5f 69 6d 70 5f 5f 4c 4d 44 46 55 44 65 76 69 63 65 53 74 72 ringGet@20.__imp__LMDFUDeviceStr
01c0 69 6e 67 47 65 74 40 32 30 00 5f 4c 4d 44 46 55 44 65 76 69 63 65 41 53 43 49 49 53 74 72 69 6e ingGet@20._LMDFUDeviceASCIIStrin
01e0 67 47 65 74 40 31 36 00 5f 5f 69 6d 70 5f 5f 4
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Threading;
using Tango.Integration.ExternalBridge;
using Tango.PMR.Integration;
using Tango.SharedUI;

namespace Tango.PPC.UI.Dialogs
{
    public class SafetyLevelOperationsConfirmationViewVM : DialogViewVM
    {
        private DispatcherTimer _timer;

        private int _maxSeconds;
        public int MaxSeconds
        {
            get { return _maxSeconds; }
            set { _maxSeconds = value; RaisePropertyChangedAuto(); }
        }

        private int _secondsRemaining;
        public int SecondsRemaining
        {
            get { return _secondsRemaining; }
            set { _secondsRemaining = value; RaisePropertyChangedAuto(); }
        }

        private ExternalBridgeClientConnectedEventArgs _connection;
        /// <summary>
        /// Gets or sets the last client connection event arguments.
        /// </summary>
        public ExternalBridgeClientConnectedEventArgs Connection
        {
            get { return _connection; }
            set { _connection = value; RaisePropertyChangedAuto(); }
        }

        public SafetyLevelOperationsConfirmationViewVM(ExternalBridgeClientConnectedEventArgs connection)
        {
            Connection = connection;

            MaxSeconds = 30;
            SecondsRemaining = 30;

            _timer = new DispatcherTimer(DispatcherPriority.Background, Application.Current.Dispatcher);
            _timer.Interval = TimeSpan.FromMilliseconds(800);
            _timer.Tick += _timer_Tick;
        }

        public override void OnShow()
        {
            base.OnShow();
            _timer.Start();
        }

        protected override void Accept()
        {
            _timer.Stop();
            base.Accept();
        }

        protected override void Cancel()
        {
            _timer.Stop();
            base.Cancel();
        }

        private void _timer_Tick(object sender, EventArgs e)
        {
            SecondsRemaining--;

            if (SecondsRemaining == 0)
            {
                Cancel();
            }
        }
    }
}
00 00 00 00 00 00 40 63 6f 6d 70 2e 69 64 1e 52 93 00 ff ff 00 00 03 R).LINK........@comp.id.R....... 0c00 00 00 00 00 00 04 00 00 00 00 00 00 00 02 00 00 00 02 00 1b 00 00 00 7f 6c 6d 64 66 75 5f 4e 55 ........................lmdfu_NU 0c20 4c 4c 5f 54 48 55 4e 4b 5f 44 41 54 41 00 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 LL_THUNK_DATA.lmdfu.dll/......14 0c40 33 30 39 37 39 33 39 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 35 30 30979392..............0.......50 0c60 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 40 03 4b 55 1e 00 00 00 0e 00 00 00 5f 4c ........`.......L.@.KU........_L 0c80 4d 44 46 55 42 6c 61 6e 6b 43 68 65 63 6b 40 31 32 00 6c 6d 64 66 75 2e 64 6c 6c 00 6c 6d 64 66 MDFUBlankCheck@12.lmdfu.dll.lmdf 0ca0 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 20 20 20 20 20 20 20 20 u.dll/......1430979392.......... 0cc0 20 20 20 20 30 20 20 20 20 20 20 20 36 30 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 ....0.......60........`.......L. 0ce0 40 03 4b 55 28 00 00 00 05 00 00 00 5f 4c 4d 44 46 55 44 65 76 69 63 65 41 53 43 49 49 53 74 72 @.KU(......._LMDFUDeviceASCIIStr 0d00 69 6e 67 47 65 74 40 31 36 00 6c 6d 64 66 75 2e 64 6c 6c 00 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 ingGet@16.lmdfu.dll.lmdfu.dll/.. 0d20 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 ....1430979392..............0... 0d40 20 20 20 20 35 30 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 40 03 4b 55 1e 00 00 00 ....50........`.......L.@.KU.... 0d60 03 00 00 00 5f 4c 4d 44 46 55 44 65 76 69 63 65 43 6c 6f 73 65 40 38 00 6c 6d 64 66 75 2e 64 6c ...._LMDFUDeviceClose@8.lmdfu.dl 0d80 6c 00 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 20 20 l.lmdfu.dll/......1430979392.... 0da0 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 35 30 20 20 20 20 20 20 20 20 60 0a 00 00 ..........0.......50........`... 0dc0 ff ff 00 00 4c 01 40 03 4b 55 1e 00 00 00 02 00 00 00 5f 4c 4d 44 46 55 44 65 76 69 63 65 4f 70 ....L.@.KU........_LMDFUDeviceOp 0de0 65 6e 40 31 32 00 6c 6d 64 66 75 2e 64 6c 6c 00 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 en@12.lmdfu.dll.lmdfu.dll/...... 0e00 31 34 33 30 39 37 39 33 39 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 1430979392..............0....... 0e20 35 35 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 40 03 4b 55 23 00 00 00 04 00 00 00 55........`.......L.@.KU#....... 0e40 5f 4c 4d 44 46 55 44 65 76 69 63 65 53 74 72 69 6e 67 47 65 74 40 32 30 00 6c 6d 64 66 75 2e 64 _LMDFUDeviceStringGet@20.lmdfu.d 0e60 6c 6c 00 0a 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 ll..lmdfu.dll/......1430979392.. 0e80 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 34 38 20 20 20 20 20 20 20 20 60 0a ............0.......48........`. 0ea0 00 00 ff ff 00 00 4c 01 40 03 4b 55 1c 00 00 00 07 00 00 00 5f 4c 4d 44 46 55 44 6f 77 6e 6c 6f ......L.@.KU........_LMDFUDownlo 0ec0 61 64 40 32 34 00 6c 6d 64 66 75 2e 64 6c 6c 00 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 ad@24.lmdfu.dll.lmdfu.dll/...... 0ee0 31 34 33 30 39 37 39 33 39 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 1430979392..............0....... 0f00 35 31 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 40 03 4b 55 1f 00 00 00 08 00 00 00 51........`.......L.@.KU........ 0f20 5f 4c 4d 44 46 55 44 6f 77 6e 6c 6f 61 64 42 69 6e 40 32 34 00 6c 6d 64 66 75 2e 64 6c 6c 00 0a _LMDFUDownloadBin@24.lmdfu.dll.. 0f40 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 20 20 20 20 lmdfu.dll/......1430979392...... 0f60 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 34 35 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff ........0.......45........`..... 0f80 00 00 4c 01 40 03 4b 55 19 00 00 00 09 00 00 00 5f 4c 4d 44 46 55 45 72 61 73 65 40 32 30 00 6c ..L.@.KU........_LMDFUErase@20.l 0fa0 6d 64 66 75 2e 64 6c 6c 00 0a 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 33 30 39 37 mdfu.dll..lmdfu.dll/......143097 0fc0 39 33 39 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 35 33 20 20 20 20 9392..............0.......53.... 0fe0 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 40 03 4b 55 21 00 00 00 0d 00 00 00 5f 4c 4d 44 46 55 ....`.......L.@.KU!......._LMDFU 1000 45 72 72 6f 72 53 74 72 69 6e 67 47 65 74 40 34 00 6c 6d 64 66 75 2e 64 6c 6c 00 0a 6c 6d 64 66 ErrorStringGet@4.lmdfu.dll..lmdf 1020 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 20 20 20 20 20 20 20 20 u.dll/......1430979392.......... 1040 20 20 20 20 30 20 20 20 20 20 20 20 34 33 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 ....0.......43........`.......L. 1060 40 03 4b 55 17 00 00 00 01 00 00 00 5f 4c 4d 44 46 55 49 6e 69 74 40 30 00 6c 6d 64 66 75 2e 64 @.KU........_LMDFUInit@0.lmdfu.d 1080 6c 6c 00 0a 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 ll..lmdfu.dll/......1430979392.. 10a0 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 35 32 20 20 20 20 20 20 20 20 60 0a ............0.......52........`. 10c0 00 00 ff ff 00 00 4c 01 40 03 4b 55 20 00 00 00 0b 00 00 00 5f 4c 4d 44 46 55 49 73 56 61 6c 69 ......L.@.KU........_LMDFUIsVali 10e0 64 49 6d 61 67 65 40 31 36 00 6c 6d 64 66 75 2e 64 6c 6c 00 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 dImage@16.lmdfu.dll.lmdfu.dll/.. 1100 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 ....1430979392..............0... 1120 20 20 20 20 34 39 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 40 03 4b 55 1d 00 00 00 ....49........`.......L.@.KU.... 1140 0f 00 00 00 5f 4c 4d 44 46 55 4d 6f 64 65 53 77 69 74 63 68 40 34 00 6c 6d 64 66 75 2e 64 6c 6c ...._LMDFUModeSwitch@4.lmdfu.dll 1160 00 0a 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 20 20 ..lmdfu.dll/......1430979392.... 1180 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 34 38 20 20 20 20 20 20 20 20 60 0a 00 00 ..........0.......48........`... 11a0 ff ff 00 00 4c 01 40 03 4b 55 1c 00 00 00 06 00 00 00 5f 4c 4d 44 46 55 50 61 72 61 6d 73 47 65 ....L.@.KU........_LMDFUParamsGe 11c0 74 40 38 00 6c 6d 64 66 75 2e 64 6c 6c 00 6c 6d 64 66 75 2e 64 6c 6c 2f 20 20 20 20 20 20 31 34 t@8.lmdfu.dll.lmdfu.dll/......14 11e0 33 30 39 37 39 33 39 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 34 38 30979392..............0.......48 1200 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 40 03 4b 55 1c 00 00 00 0c 00 00 00 5f 4c ........`.......L.@.KU........_L 1220 4d 44 46 55 53 74 61 74 75 73 47 65 74 40 38 00 6c 6d 64 66 75 2e 64 6c 6c 00 6c 6d 64 66 75 2e MDFUStatusGet@8.lmdfu.dll.lmdfu. 1240 64 6c 6c 2f 20 20 20 20 20 20 31 34 33 30 39 37 39 33 39 32 20 20 20 20 20 20 20 20 20 20 20 20 dll/......1430979392............ 1260 20 20 30 20 20 20 20 20 20 20 34 36 20 20 20 20 20 20 20 20 60 0a 00 00 ff ff 00 00 4c 01 40 03 ..0.......46........`.......L.@. 1280 4b 55 1a 00 00 00 0a 00 00 00 5f 4c 4d 44 46 55 55 70 6c 6f 61 64 40 32 34 00 6c 6d 64 66 75 2e KU........_LMDFUUpload@24.lmdfu. 12a0 64 6c 6c 00 dll.