pub trait ICore {
// Required methods
fn new() -> Self;
fn set_systick_div(&mut self, divisor: u32);
fn start(&mut self);
fn bkpt();
fn execution_mode() -> ExecMode;
fn is_in_interrupt() -> bool;
fn debug_time() -> u32;
}Expand description
CPU core peripherals.
Required Methods§
Sourcefn set_systick_div(&mut self, divisor: u32)
fn set_systick_div(&mut self, divisor: u32)
Set the system tick divisor.
Sourcefn execution_mode() -> ExecMode
fn execution_mode() -> ExecMode
CPU execution mode.
Sourcefn is_in_interrupt() -> bool
fn is_in_interrupt() -> bool
Returns true if the CPU is processing an interrupt.
Sourcefn debug_time() -> u32
fn debug_time() -> u32
Cycles counted by CPU for debug purposes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.