Struct stm32f40x::SCB
[−]
[src]
pub struct SCB { /* fields omitted */ }
System Control Block
Methods
impl SCB
[src]
fn enable_icache(&mut self)
[src]
Enables I-Cache if currently disabled
fn disable_icache(&mut self)
[src]
Disables I-Cache if currently enabled
fn icache_enabled() -> bool
[src]
Returns whether the I-Cache is currently enabled
fn invalidate_icache(&mut self)
[src]
Invalidates I-Cache
fn enable_dcache(&mut self, cpuid: &mut CPUID)
[src]
Enables D-cache if currently disabled
fn disable_dcache(&mut self, cpuid: &mut CPUID)
[src]
Disables D-cache if currently enabled
fn dcache_enabled() -> bool
[src]
Returns whether the D-Cache is currently enabled
fn clean_dcache(&mut self, cpuid: &mut CPUID)
[src]
Cleans D-cache
fn clean_invalidate_dcache(&mut self, cpuid: &mut CPUID)
[src]
Cleans and invalidates D-cache
fn invalidate_dcache_by_address(&mut self, addr: usize, size: usize)
[src]
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.
fn clean_dcache_by_address(&mut self, addr: usize, size: usize)
[src]
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.
fn clean_invalidate_dcache_by_address(&mut self, addr: usize, size: usize)
[src]
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]
fn ptr() -> *const RegisterBlock
[src]
Returns a pointer to the register block