public override IAvrChannel CreateChannel() { var port = ComPortSettings.CreateSerialPort(); var spiMaster = new SpiMaster(port, ClkPin.CreatePin(port), MosiPin.CreatePin(port), MisoPin.CreatePin(port)); return(new SpiMasterChannel(spiMaster, ResetPin.CreatePin(port))); }
public ComBitBangConfig(string keyPrefix) : base(keyPrefix) { _comPortSettings = new ComPortSettings(keyPrefix); _resetPin = new ComBitBangPinConfig(keyPrefix + "ResetPin."); _clkPin = new ComBitBangPinConfig(keyPrefix + "ClkPin."); _mosiPin = new ComBitBangPinConfig(keyPrefix + "MosiPin."); _misoPin = new ComBitBangPinConfig(keyPrefix + "MisoPin."); }
public StkV1Config(string keyPrefix) : base(keyPrefix) { _comPortSettings = new ComPortSettings(keyPrefix); _resetPin = new ComBitBangPinConfig(keyPrefix + "ResetPin."); }
public override IAvrChannel CreateChannel() { var port = ComPortSettings.CreateSerialPort(); return(new SerialPortChannel(port, ResetPin.CreatePin(port))); }