Skip to content

Commit 5597a48

Browse files
committed
add UART errors for embedded-io
1 parent 5209452 commit 5597a48

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

embedded-io/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ pub enum ErrorKind {
118118
OutOfMemory,
119119
/// An attempted write could not write any data.
120120
WriteZero,
121+
122+
/// The peripheral receive buffer was overrun.
123+
Overrun,
124+
/// Received data does not conform to the peripheral configuration.
125+
/// Can be caused by a misconfigured device on either end of the serial line.
126+
FrameFormat,
127+
/// Parity check failed.
128+
Parity,
129+
/// Serial line is too noisy to read valid data.
130+
Noise,
121131
}
122132

123133
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)