Beispiel #1
0
 /// <summary>
 /// Start the UART with the specified baud
 /// </summary>
 /// <param name="baud">The baud, in bps, to use</param>
 public Task StartUartAsync(int baud)
 {
     _baud      = baud;
     _mode      = UartMode.Uart;
     _isEnabled = true;
     return(UpdateConfigAsync());
 }
Beispiel #2
0
 /// <summary>
 ///     Start one-wire mode on this interface
 /// </summary>
 public Task StartOneWireAsync()
 {
     _mode      = UartMode.OneWire;
     _isEnabled = true;
     return(UpdateConfigAsync());
 }