Пример #1
0
        protected unsafe void OnRecoveryModeEnter(DeviceNotificationEventArgs args)
        {
            EventHandler recoveryModeEnter = this.RecoveryModeEnter;

            this.RecoveryDevice = args.Device;
            if (recoveryModeEnter != null)
            {
                recoveryModeEnter(this, args);
            }
        }
Пример #2
0
 public static extern unsafe int AMRestorePerformDFURestore(out AMRecoveryDevice recovery_device);
Пример #3
0
 public static extern unsafe void AMRecoveryModeDeviceSetAutoBoot(ref AMRecoveryDevice device, uint a1, uint a2, uint a3, uint a4);
Пример #4
0
 public static extern unsafe void AMRecoveryModeDeviceReboot(ref AMRecoveryDevice device);
Пример #5
0
 private void RecoveryDisconnectCallback(ref AMRecoveryDevice callback)
 {
     this.OnRecoveryModeLeave(new DeviceNotificationEventArgs(callback));
 }
Пример #6
0
 private void RecoveryConnectCallback(ref AMRecoveryDevice callback)
 {
     this.recovery = true;
     this.OnRecoveryModeEnter(new DeviceNotificationEventArgs(callback));
 }
Пример #7
0
 protected unsafe void OnRecoveryModeEnter(DeviceNotificationEventArgs args)
 {
     EventHandler recoveryModeEnter = this.RecoveryModeEnter;
     this.RecoveryDevice = args.Device;
     if (recoveryModeEnter != null)
     {
         recoveryModeEnter(this, args);
     }
 }
Пример #8
0
 private void DfuDisconnectCallback(ref AMRecoveryDevice callback)
 {
     this.OnDfuDisconnect(new DeviceNotificationEventArgs(callback));
 }
Пример #9
0
 public static extern unsafe int AMRestorePerformDFURestore(out AMRecoveryDevice recovery_device);
Пример #10
0
 public static extern unsafe void AMRecoveryModeDeviceSetAutoBoot(ref AMRecoveryDevice device, uint a1, uint a2, uint a3, uint a4);
Пример #11
0
 public static extern unsafe void AMRecoveryModeDeviceReboot(ref AMRecoveryDevice device);
Пример #12
0
 private void RecoveryConnectCallback(ref AMRecoveryDevice callback)
 {
     this.recovery = true;
     this.OnRecoveryModeEnter(new DeviceNotificationEventArgs(callback));
 }
Пример #13
0
 private void DfuDisconnectCallback(ref AMRecoveryDevice callback)
 {
     this.OnDfuDisconnect(new DeviceNotificationEventArgs(callback));
 }
Пример #14
0
 private void RecoveryDisconnectCallback(ref AMRecoveryDevice callback)
 {
     this.OnRecoveryModeLeave(new DeviceNotificationEventArgs(callback));
 }
Пример #15
0
 internal DeviceNotificationEventArgs(AMRecoveryDevice device)
 {
     this.device = device;
 }
 internal DeviceNotificationEventArgs(AMRecoveryDevice device)
 {
     this.device = device;
 }