public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { outBound.setPinDigitalIn(this.PinDef.Pin, this.PinDef.Mode); if (ChangeNotify.HasValue && ChangeNotify.Value) { outBound.setChangeNotify(this.PinDef.Pin, ChangeNotify.Value); } return(true); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { outBound.setPinAnalogIn(this.BoundPin); if (ChangeNotify.HasValue && ChangeNotify.Value) { outBound.setAnalogInSampling(this.BoundPin, ChangeNotify.Value); } return(true); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { if (UartDef.RxSpec != null) { outBound.setPinDigitalIn(UartDef.RxSpec.Pin, UartDef.RxSpec.Mode); outBound.setPinUart(UartDef.RxSpec.Pin, UartDef.UartNumber, false, true); } if (UartDef.TxSpec != null) { outBound.setPinDigitalOut(UartDef.TxSpec.Pin, true, UartDef.TxSpec.Mode); outBound.setPinUart(UartDef.TxSpec.Pin, UartDef.UartNumber, true, true); } CalculateRateAndSpeed4X(this.Baud); outBound.uartConfigure(UartDef.UartNumber, RateCalculated, Speed4xCalculated, StopBits, Parity); return(true); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { // luckily? outbound ignores resource allcoation try { outBound.uartClose(this.UartDef.UartNumber); } catch (Exception e) { LOG.Debug("Caught exception while closing UART ", e); } if (this.UartDef.RxSpec != null) { outBound.setPinDigitalIn(this.UartDef.RxSpec.Pin, DigitalInputSpecMode.FLOATING); } if (this.UartDef.TxSpec != null) { outBound.setPinDigitalIn(this.UartDef.TxSpec.Pin, DigitalInputSpecMode.FLOATING); } return(true); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { outBound.checkInterfaceVersion(); return(true); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { throw new NotImplementedException(); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { // TODO verify this pin is an output pin outBound.setDigitalOutLevel(PinDef.Pin, Level); return(true); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { outBound.setPinDigitalIn(this.PwmDef.PinSpec.Pin, DigitalInputSpecMode.FLOATING); outBound.setPwmPeriod(this.PwmDef.PwmNumber, 0, PwmScale.Scale1X); return(true); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { outBound.setPinDigitalIn(this.PinDef.Pin, DigitalInputSpecMode.FLOATING); return(true); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { outBound.uartData(UartDef.UartNumber, Data.Length, Data); return(true); }
public bool ExecuteMessage(Device.Impl.IOIOProtocolOutgoing outBound) { outBound.setPinDigitalOut(this.PinDef.Pin, this.StartValue, this.PinDef.Mode); return(true); }