[−][src]Struct cortex_m::peripheral::SCB
pub struct SCB { /* fields omitted */ }System Control Block
Methods
impl SCB[src]
impl SCBpub fn vect_active() -> VectActive[src]
pub fn vect_active() -> VectActiveReturns the active exception number
impl SCB[src]
impl SCBpub fn enable_icache(&mut self)[src]
pub fn enable_icache(&mut self)Enables I-Cache if currently disabled
pub fn disable_icache(&mut self)[src]
pub fn disable_icache(&mut self)Disables I-Cache if currently enabled
pub fn icache_enabled() -> bool[src]
pub fn icache_enabled() -> boolReturns whether the I-Cache is currently enabled
pub fn invalidate_icache(&mut self)[src]
pub fn invalidate_icache(&mut self)Invalidates I-Cache
pub fn enable_dcache(&mut self, cpuid: &mut CPUID)[src]
pub fn enable_dcache(&mut self, cpuid: &mut CPUID)Enables D-cache if currently disabled
pub fn disable_dcache(&mut self, cpuid: &mut CPUID)[src]
pub fn disable_dcache(&mut self, cpuid: &mut CPUID)Disables D-cache if currently enabled
pub fn dcache_enabled() -> bool[src]
pub fn dcache_enabled() -> boolReturns whether the D-Cache is currently enabled
pub fn clean_dcache(&mut self, cpuid: &mut CPUID)[src]
pub fn clean_dcache(&mut self, cpuid: &mut CPUID)Cleans D-cache
pub fn clean_invalidate_dcache(&mut self, cpuid: &mut CPUID)[src]
pub fn clean_invalidate_dcache(&mut self, cpuid: &mut CPUID)Cleans and invalidates D-cache
pub fn invalidate_dcache_by_address(&mut self, addr: usize, size: usize)[src]
pub fn invalidate_dcache_by_address(&mut self, addr: usize, size: usize)Invalidates D-cache by address
addr: the address to invalidate
size: size of the memory block, in number of bytes
Invalidates cache starting from the lowest 32-byte aligned address represented by addr,
in blocks of 32 bytes until at least size bytes have been invalidated.
pub fn clean_dcache_by_address(&mut self, addr: usize, size: usize)[src]
pub fn clean_dcache_by_address(&mut self, addr: usize, size: usize)Cleans D-cache by address
addr: the address to clean
size: size of the memory block, in number of bytes
Cleans cache starting from the lowest 32-byte aligned address represented by addr,
in blocks of 32 bytes until at least size bytes have been cleaned.
pub fn clean_invalidate_dcache_by_address(&mut self, addr: usize, size: usize)[src]
pub fn clean_invalidate_dcache_by_address(&mut self, addr: usize, size: usize)Cleans and invalidates D-cache by address
addr: the address to clean and invalidate
size: size of the memory block, in number of bytes
Cleans and invalidates cache starting from the lowest 32-byte aligned address represented
by addr, in blocks of 32 bytes until at least size bytes have been cleaned and
invalidated.
impl SCB[src]
impl SCBpub fn set_sleepdeep(&mut self)[src]
pub fn set_sleepdeep(&mut self)Set the SLEEPDEEP bit in the SCR register
pub fn clear_sleepdeep(&mut self)[src]
pub fn clear_sleepdeep(&mut self)Clear the SLEEPDEEP bit in the SCR register
impl SCB[src]
impl SCBpub fn system_reset(&mut self) -> ![src]
pub fn system_reset(&mut self) -> !Initiate a system reset request to reset the MCU
impl SCB[src]
impl SCBpub fn ptr() -> *const RegisterBlock[src]
pub fn ptr() -> *const RegisterBlockReturns a pointer to the register block
Trait Implementations
impl Send for SCB[src]
impl Send for SCBimpl Deref for SCB[src]
impl Deref for SCBtype Target = RegisterBlock
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more