Пример #1
0
 /// <summary>
 /// Pins 3-7, 10-14, 27-32, 34-40 and 45-48 can be used with UART
 /// https://github.com/ytai/ioio/wiki/UART
 /// </summary>
 /// <param name="digitalInputSpec"></param>
 /// <param name="digitalOutputSpec"></param>
 /// <param name="baud"></param>
 /// <param name="parity"></param>
 /// <param name="stopbits"></param>
 internal UartConfigureCommand(Component.Types.DigitalInputSpec digitalInputSpec, Component.Types.DigitalOutputSpec digitalOutputSpec, int baud, Component.Types.UartParity parity, Component.Types.UartStopBits stopbits)
 {
     this.Baud     = baud;
     this.Parity   = parity;
     this.StopBits = stopbits;
     this.UartDef  = new UartSpec(digitalInputSpec, digitalOutputSpec);
 }
Пример #2
0
 public ISpiMasterConfigureCommand CreateSpiMasterConfigure(Component.Types.DigitalInputSpec miso, Component.Types.DigitalOutputSpec mosi, Component.Types.DigitalOutputSpec clk, Component.Types.DigitalOutputSpec[] slaveSelect, Component.Types.SpiMasterConfig config)
 {
     return(new SpiMasterConfigureCommand(miso, mosi, clk, slaveSelect, config));
 }
 public IUartConfigureCommand CreateUartConfigure(Component.Types.DigitalInputSpec rx, Component.Types.DigitalOutputSpec tx, int baud, Component.Types.UartParity parity, Component.Types.UartStopBits stopbits)
 {
     return(new UartConfigureCommand(rx, tx, baud, parity, stopbits));
 }
 public IPulseInputConfigureCommand CreatePulseInputConfigure(Component.Types.DigitalInputSpec spec, Component.Types.PulseInputClockRate rate, Component.Types.PulseInputMode mode, bool doublePrecision)
 {
     return(new PulseInputConfigureCommand());
 }