Ejemplo n.º 1
0
 public ResetDeviceCommand(
     IDenseDacEvalBoard evalBoard,
     IUSBControlTransfer usbControlTransferCommand = null,
     ILockFactory lockFactory = null)
 {
     _evalBoard = evalBoard;
     _usbControlTransferCommand = usbControlTransferCommand ?? new USBControlTransferCommand(evalBoard);
     _lockFactory = lockFactory ?? new LockFactory();
 }
 public UploadFirmwareCommand(
     IDenseDacEvalBoard evalBoard,
     IResetDevice resetDeviceCommand = null,
     IUSBControlTransfer usbControlTransferCommand = null,
     ILockFactory lockFactory = null)
 {
     _resetDeviceCommand        = resetDeviceCommand ?? new ResetDeviceCommand(evalBoard);
     _usbControlTransferCommand = usbControlTransferCommand ?? new USBControlTransferCommand(evalBoard);
     _lockFactory = lockFactory ?? new LockFactory();
 }
Ejemplo n.º 3
0
 public ReadSPICommand(
     IDenseDacEvalBoard evalBoard,
     IUSBControlTransfer usbControlTransferCommand = null,
     IInitializeSPIPins initializeSPIPinsCommand   = null,
     ILockFactory lockFactory = null)
 {
     _evalBoard = evalBoard;
     _usbControlTransferCommand = usbControlTransferCommand ?? new USBControlTransferCommand(evalBoard);
     _initializeSPIPinsCommand  = initializeSPIPinsCommand ?? new InitializeSPIPinsCommand(evalBoard);
     _lockFactory = lockFactory ?? new LockFactory();
 }