We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2508703 commit ece84daCopy full SHA for ece84da
src/port.rs
@@ -86,6 +86,14 @@ impl SerialPort {
86
}
87
88
89
+ /// Sends a raw byte on the serial port, intended for binary data.
90
+ pub fn send_raw(&mut self, data: u8) {
91
+ unsafe {
92
+ wait_for!(self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY));
93
+ self.data.write(data);
94
+ }
95
96
+
97
/// Receives a byte on the serial port.
98
pub fn receive(&mut self) -> u8 {
99
unsafe {
0 commit comments