Struct drone_cortexm::map::reg::scb::scr::Hold [−][src]
System control register.
Implementations
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn seveonpend(&self) -> bool
[src]
Send Event on Pending bit.
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn set_seveonpend(&mut self) -> &mut Self
[src]
Send Event on Pending bit.
pub fn clear_seveonpend(&mut self) -> &mut Self
[src]
Send Event on Pending bit.
pub fn toggle_seveonpend(&mut self) -> &mut Self
[src]
Send Event on Pending bit.
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn sleepdeep(&self) -> bool
[src]
Controls whether the processor uses sleep or deep sleep as its low power mode.
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn set_sleepdeep(&mut self) -> &mut Self
[src]
Controls whether the processor uses sleep or deep sleep as its low power mode.
pub fn clear_sleepdeep(&mut self) -> &mut Self
[src]
Controls whether the processor uses sleep or deep sleep as its low power mode.
pub fn toggle_sleepdeep(&mut self) -> &mut Self
[src]
Controls whether the processor uses sleep or deep sleep as its low power mode.
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn sleeponexit(&self) -> bool
[src]
Configures sleep-on-exit when returning from Handler mode to Thread mode.
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn set_sleeponexit(&mut self) -> &mut Self
[src]
Configures sleep-on-exit when returning from Handler mode to Thread mode.
pub fn clear_sleeponexit(&mut self) -> &mut Self
[src]
Configures sleep-on-exit when returning from Handler mode to Thread mode.
pub fn toggle_sleeponexit(&mut self) -> &mut Self
[src]
Configures sleep-on-exit when returning from Handler mode to Thread mode.
Trait Implementations
Auto Trait Implementations
impl<'a, _T> Send for Hold<'a, _T>
impl<'a, _T> Sync for Hold<'a, _T>
impl<'a, _T> Unpin for Hold<'a, _T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,