#[non_exhaustive]pub struct WakeupConfig { /* private fields */ }unstable only.Expand description
Configures how the UART wakes the chip from light sleep.
§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.
Implementations§
Source§impl WakeupConfig
impl WakeupConfig
Sourcepub fn with_rising_edges(self, rising_edges: u16) -> Self
pub fn with_rising_edges(self, rising_edges: u16) -> Self
Assign the given value to the rising_edges field.
Sourcepub fn rising_edges(&self) -> u16
pub fn rising_edges(&self) -> u16
The number of rising edges on the RX line that wakes the chip.
The hardware counts edges, and not bytes, so the number of bytes that the chip needs depends on the data of the sender. Each byte gives one rising edge at its stop bit, and one more edge for each change from 0 to 1 in the data. The number of edges is therefore the smallest possible number of bytes. The default is the smallest value that the hardware accepts.
The permitted range on this chip is
3..=1026.
Trait Implementations§
Source§impl Clone for WakeupConfig
impl Clone for WakeupConfig
Source§fn clone(&self) -> WakeupConfig
fn clone(&self) -> WakeupConfig
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WakeupConfig
Source§impl Debug for WakeupConfig
impl Debug for WakeupConfig
Source§impl Default for WakeupConfig
impl Default for WakeupConfig
impl Eq for WakeupConfig
Source§impl Hash for WakeupConfig
impl Hash for WakeupConfig
Source§impl PartialEq for WakeupConfig
impl PartialEq for WakeupConfig
impl StructuralPartialEq for WakeupConfig
Auto Trait Implementations§
impl Freeze for WakeupConfig
impl RefUnwindSafe for WakeupConfig
impl Send for WakeupConfig
impl Sync for WakeupConfig
impl Unpin for WakeupConfig
impl UnsafeUnpin for WakeupConfig
impl UnwindSafe for WakeupConfig
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)