#[non_exhaustive]pub struct RxConfig { /* private fields */ }Expand description
UART Receive part configuration.
Implementations§
Source§impl RxConfig
impl RxConfig
Sourcepub fn with_fifo_full_threshold(self, fifo_full_threshold: u16) -> Self
pub fn with_fifo_full_threshold(self, fifo_full_threshold: u16) -> Self
Assign the given value to the fifo_full_threshold field.
Sourcepub fn fifo_full_threshold(&self) -> u16
pub fn fifo_full_threshold(&self) -> u16
Threshold level at which the RX FIFO is considered full.
Sourcepub fn with_timeout(self, timeout: u8) -> Self
pub fn with_timeout(self, timeout: u8) -> Self
Assign the given value to the timeout field.
Sourcepub fn with_timeout_none(self) -> Self
pub fn with_timeout_none(self) -> Self
Set the value of timeout to None.
Sourcepub fn with_reported_errors(
self,
reported_errors: impl Into<EnumSet<RxErrorKind>>,
) -> Self
Available on crate feature unstable only.
pub fn with_reported_errors( self, reported_errors: impl Into<EnumSet<RxErrorKind>>, ) -> Self
unstable only.Assign the given value to the reported_errors field.
Sourcepub fn reported_errors(&self) -> EnumSet<RxErrorKind>
Available on crate feature unstable only.
pub fn reported_errors(&self) -> EnumSet<RxErrorKind>
unstable only.RX error conditions that read operations should report.
Error conditions not present in this set are cleared and ignored by UART read operations.
Sourcepub fn with_discard_erroneous_bytes(self, discard_erroneous_bytes: bool) -> Self
Available on crate feature unstable only.
pub fn with_discard_erroneous_bytes(self, discard_erroneous_bytes: bool) -> Self
unstable only.Assign the given value to the discard_erroneous_bytes field.
Sourcepub fn discard_erroneous_bytes(&self) -> bool
Available on crate feature unstable only.
pub fn discard_erroneous_bytes(&self) -> bool
unstable only.Whether received bytes with UART errors are discarded by the hardware.
When set to true (the default), bytes with UART errors (for example
parity or framing errors) are not stored in the RX FIFO. Set this to
false to keep those bytes in the RX FIFO. Use
Self::with_reported_errors to control whether those error
conditions make read operations fail.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RxConfig
impl RefUnwindSafe for RxConfig
impl Send for RxConfig
impl Sync for RxConfig
impl Unpin for RxConfig
impl UnsafeUnpin for RxConfig
impl UnwindSafe for RxConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)