コード例 #1
0
ファイル: Serial.cs プロジェクト: h7ga40/PeachCamWin
        public Serial(UARTName uart, PinName tx, PinName rx, PinName rts = PinName.NC, PinName cts = PinName.NC)
        {
            this.uart = uart;
            this.tx   = tx;
            this.rx   = rx;
            this.rts  = rts;
            this.cts  = cts;

            serial = new SerialPort();
        }
コード例 #2
0
ファイル: PeripheralPins.cs プロジェクト: h7ga40/PeachCamWin
 public PinMap(PinName pin, UARTName peripheral, int function) :
     this(pin, (int)peripheral, function)
 {
 }