mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
Merge "Add USB serial port option. Uses kUSB for ALSR3"
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
enum StopBits {kStopBits_One=10, kStopBits_OnePointFive=15, kStopBits_Two=20};
|
||||
enum FlowControl {kFlowControl_None=0, kFlowControl_XonXoff=1, kFlowControl_RtsCts=2, kFlowControl_DtrDsr=4};
|
||||
enum WriteBufferMode {kFlushOnAccess=1, kFlushWhenFull=2};
|
||||
enum Port {kOnboard=0, kMXP=1};
|
||||
enum Port {kOnboard=0, kMXP=1, kUSB=2};
|
||||
|
||||
SerialPort(uint32_t baudRate, Port port = kOnboard, uint8_t dataBits = 8, Parity parity = kParity_None,
|
||||
StopBits stopBits = kStopBits_One);
|
||||
|
||||
Reference in New Issue
Block a user