protected unsafe void OnRecoveryModeEnter(DeviceNotificationEventArgs args) { EventHandler recoveryModeEnter = this.RecoveryModeEnter; this.RecoveryDevice = args.Device; if (recoveryModeEnter != null) { recoveryModeEnter(this, args); } }
public static extern unsafe int AMRestorePerformDFURestore(out AMRecoveryDevice recovery_device);
public static extern unsafe void AMRecoveryModeDeviceSetAutoBoot(ref AMRecoveryDevice device, uint a1, uint a2, uint a3, uint a4);
public static extern unsafe void AMRecoveryModeDeviceReboot(ref AMRecoveryDevice device);
private void RecoveryDisconnectCallback(ref AMRecoveryDevice callback) { this.OnRecoveryModeLeave(new DeviceNotificationEventArgs(callback)); }
private void RecoveryConnectCallback(ref AMRecoveryDevice callback) { this.recovery = true; this.OnRecoveryModeEnter(new DeviceNotificationEventArgs(callback)); }
protected unsafe void OnRecoveryModeEnter(DeviceNotificationEventArgs args) { EventHandler recoveryModeEnter = this.RecoveryModeEnter; this.RecoveryDevice = args.Device; if (recoveryModeEnter != null) { recoveryModeEnter(this, args); } }
private void DfuDisconnectCallback(ref AMRecoveryDevice callback) { this.OnDfuDisconnect(new DeviceNotificationEventArgs(callback)); }
public static extern unsafe int AMRestorePerformDFURestore(out AMRecoveryDevice recovery_device);
public static extern unsafe void AMRecoveryModeDeviceSetAutoBoot(ref AMRecoveryDevice device, uint a1, uint a2, uint a3, uint a4);
public static extern unsafe void AMRecoveryModeDeviceReboot(ref AMRecoveryDevice device);
private void RecoveryConnectCallback(ref AMRecoveryDevice callback) { this.recovery = true; this.OnRecoveryModeEnter(new DeviceNotificationEventArgs(callback)); }
private void DfuDisconnectCallback(ref AMRecoveryDevice callback) { this.OnDfuDisconnect(new DeviceNotificationEventArgs(callback)); }
private void RecoveryDisconnectCallback(ref AMRecoveryDevice callback) { this.OnRecoveryModeLeave(new DeviceNotificationEventArgs(callback)); }
internal DeviceNotificationEventArgs(AMRecoveryDevice device) { this.device = device; }
internal DeviceNotificationEventArgs(AMRecoveryDevice device) { this.device = device; }