pub struct Power { /* private fields */ }
Implementations§
Source§impl Power
impl Power
pub fn new(pwr: PWR, rcc: &mut Rcc) -> Self
pub fn get_standby_flag(&mut self) -> bool
pub fn get_wakeup_flag<L: Into<WakeUp>>(&self, lane: L) -> bool
pub fn clear_wakeup_flag<L: Into<WakeUp>>(&mut self, lane: L)
pub fn clear_standby_flag(&mut self)
pub fn enable_wakeup_lane<L: Into<WakeUp>>(&mut self, lane: L, edge: SignalEdge)
pub fn disable_wakeup_lane<L: Into<WakeUp>>(&mut self, lane: L)
pub fn set_mode(&mut self, mode: PowerMode)
Auto Trait Implementations§
impl Freeze for Power
impl RefUnwindSafe for Power
impl Send for Power
impl !Sync for Power
impl Unpin for Power
impl UnwindSafe for Power
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more