pub struct ResetHandlerGenerator { /* private fields */ }Expand description
Reset handler generator
Implementations§
Source§impl ResetHandlerGenerator
impl ResetHandlerGenerator
Sourcepub fn with_memory_layout(
self,
stack_top: u32,
data_start: u32,
data_end: u32,
data_load: u32,
bss_start: u32,
bss_end: u32,
) -> Self
pub fn with_memory_layout( self, stack_top: u32, data_start: u32, data_end: u32, data_load: u32, bss_start: u32, bss_end: u32, ) -> Self
Configure memory regions
Sourcepub fn generate_instructions(&self) -> Vec<ArmOp>
pub fn generate_instructions(&self) -> Vec<ArmOp>
Generate ARM instructions for reset handler
Sourcepub fn generate_assembly(&self) -> String
pub fn generate_assembly(&self) -> String
Generate complete reset handler assembly
Sourcepub fn generate_binary(&self) -> Result<Vec<u8>>
pub fn generate_binary(&self) -> Result<Vec<u8>>
Generate binary code for reset handler
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResetHandlerGenerator
impl RefUnwindSafe for ResetHandlerGenerator
impl Send for ResetHandlerGenerator
impl Sync for ResetHandlerGenerator
impl Unpin for ResetHandlerGenerator
impl UnsafeUnpin for ResetHandlerGenerator
impl UnwindSafe for ResetHandlerGenerator
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