pub struct VectorTable {
pub initial_sp: u32,
pub reset_handler: u32,
pub handlers: Vec<VectorEntry>,
}Expand description
ARM Cortex-M Vector Table
Fields§
§initial_sp: u32Initial stack pointer value
reset_handler: u32Reset handler address
handlers: Vec<VectorEntry>Exception and interrupt handlers
Implementations§
Source§impl VectorTable
impl VectorTable
Sourcepub fn new_cortex_m(stack_top: u32) -> Self
pub fn new_cortex_m(stack_top: u32) -> Self
Create a new vector table for Cortex-M
Sourcepub fn generate_binary(&self) -> Result<Vec<u8>>
pub fn generate_binary(&self) -> Result<Vec<u8>>
Generate vector table as binary data
Sourcepub fn generate_assembly(&self) -> String
pub fn generate_assembly(&self) -> String
Generate assembly source for vector table
Sourcepub fn size_bytes(&self) -> usize
pub fn size_bytes(&self) -> usize
Get total size in bytes
Auto Trait Implementations§
impl Freeze for VectorTable
impl RefUnwindSafe for VectorTable
impl Send for VectorTable
impl Sync for VectorTable
impl Unpin for VectorTable
impl UnsafeUnpin for VectorTable
impl UnwindSafe for VectorTable
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