diff --git a/embedded-io/CHANGELOG.md b/embedded-io/CHANGELOG.md index f7c2e0e6..9ccfac03 100644 --- a/embedded-io/CHANGELOG.md +++ b/embedded-io/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Migrated `std` feature-gated `std::error::Error` implementations to `core::error::Error` - Increased MSRV to 1.81 due to `core::error::Error` - Implemented `ReadReady` for `&[u8]` and `WriteReady` for `&mut [u8]` +- Added UART error variants `Overrun`, `FrameFormat`, `Parity` and `Noise` ## 0.6.1 - 2023-10-22 diff --git a/embedded-io/src/lib.rs b/embedded-io/src/lib.rs index ae5ff485..34f12206 100644 --- a/embedded-io/src/lib.rs +++ b/embedded-io/src/lib.rs @@ -118,6 +118,16 @@ pub enum ErrorKind { OutOfMemory, /// An attempted write could not write any data. WriteZero, + + /// The peripheral receive buffer was overrun. + Overrun, + /// Received data does not conform to the peripheral configuration. + /// Can be caused by a misconfigured device on either end of the serial line. + FrameFormat, + /// Parity check failed. + Parity, + /// Serial line is too noisy to read valid data. + Noise, } #[cfg(feature = "std")]