pub enum SwFlowControl {
Disabled,
Enabled {
xon_char: u8,
xoff_char: u8,
xon_threshold: u8,
xoff_threshold: u8,
},
}Available on crate feature
unstable only.Expand description
Software flow control settings.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Variants§
Disabled
Disables software flow control.
Enabled
Enables software flow control with configured parameters
Fields
§
xon_char: u8Xon flow control byte.
§
xoff_char: u8Xoff flow control byte.
§
xon_threshold: u8If the software flow control is enabled and the data amount in rxfifo is less than xon_thrd, an xon_char will be sent.
§
xoff_threshold: u8If the software flow control is enabled and the data amount in rxfifo is more than xoff_thrd, an xoff_char will be sent
Trait Implementations§
Source§impl Clone for SwFlowControl
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
impl Clone for SwFlowControl
Available on
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Source§fn clone(&self) -> SwFlowControl
fn clone(&self) -> SwFlowControl
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwFlowControl
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
impl Debug for SwFlowControl
Available on
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Source§impl Default for SwFlowControl
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
impl Default for SwFlowControl
Available on
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Source§fn default() -> SwFlowControl
fn default() -> SwFlowControl
Returns the “default value” for a type. Read more
Source§impl PartialEq for SwFlowControl
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
impl PartialEq for SwFlowControl
Available on
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.impl Copy for SwFlowControl
Available on
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.impl Eq for SwFlowControl
Available on
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.impl StructuralPartialEq for SwFlowControl
Available on
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Auto Trait Implementations§
impl Freeze for SwFlowControl
impl RefUnwindSafe for SwFlowControl
impl Send for SwFlowControl
impl Sync for SwFlowControl
impl Unpin for SwFlowControl
impl UnwindSafe for SwFlowControl
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)