private void ConfigureDigitalInput(IOIOMessageCommandFactory commandFactory) { DigitalInputSpec InSpec_ = new DigitalInputSpec(2, DigitalInputSpecMode.PULL_UP); IDigitalInputConfigureCommand createDigitalInput = commandFactory.CreateDigitalInputConfigure(InSpec_, true); OurImpl_.PostMessage(createDigitalInput); }
/// <summary> /// Do we even need all these parameters? Isn't there only one SpiMaster on the board /// </summary> /// <param name="miso"></param> /// <param name="mosi"></param> /// <param name="clock"></param> /// <param name="slaveSelect"></param> /// <param name="rate"></param> internal SpiMasterConfigureCommand(DigitalInputSpec miso, DigitalOutputSpec mosi, DigitalOutputSpec clock, DigitalOutputSpec[] slaveSelect, SpiMasterConfig rate) { this.Miso = miso; this.Mosi = mosi; this.Clock = Clock; this.SlaveSelect = slaveSelect; this.Rate = rate; throw new NotImplementedException("Post(IOpenSpiMasterTo) not tied together in outgoing protocol"); }
/// <summary> /// Create an inbound digital Port_ that notifies on state change /// </summary> /// <param name="digitalInputSpec"></param> /// <param name="notifyOnChange">You must notify on state change if you ever want to know the state of a pin</param> public DigitalInputConfigureCommand(DigitalInputSpec digitalInputSpec, bool notifyOnChange) { this.PinDef = digitalInputSpec; ChangeNotify = notifyOnChange; }
internal DigitalInputConfigureCommand(DigitalInputSpec digitalInputSpec) { this.PinDef = digitalInputSpec; ChangeNotify = null; }
public IDigitaInputCloseCommand CreateDigitalInputClose(DigitalInputSpec spec) { return(new DigitalInputCloseCommand(spec)); }
public IDigitalInputConfigureCommand CreateDigitalInputConfigure(DigitalInputSpec spec, bool trackChanges) { return(new DigitalInputConfigureCommand(spec, trackChanges)); }
public IDigitalInputConfigureCommand CreateDigitalInputConfigure(DigitalInputSpec spec) { return(new DigitalInputConfigureCommand(spec)); }
public DigitalInputCloseCommand(DigitalInputSpec spec) { this.PinDef = spec; }