#[repr(C)]pub struct MappingTableEntry {
pub source_addr_start: *const u32,
pub dest_addr_start: *const u32,
pub dest_addr_end: *const u32,
}
Expand description
Allows us to tell picotool where values are in the UF2 given their run-time address.
The most obvious example is RAM variables, which must be found in the
.data
section of the UF2.
Fields§
§source_addr_start: *const u32
The start address in RAM (or wherever the address picotool finds will point)
dest_addr_start: *const u32
The start address in flash (or whever the data actually lives in the ELF)
dest_addr_end: *const u32
The end address in flash
Implementations§
Source§impl MappingTableEntry
impl MappingTableEntry
Sourcepub const fn null() -> MappingTableEntry
pub const fn null() -> MappingTableEntry
Generate a null entry to mark the end of the list
Trait Implementations§
impl Sync for MappingTableEntry
Auto Trait Implementations§
impl Freeze for MappingTableEntry
impl RefUnwindSafe for MappingTableEntry
impl !Send for MappingTableEntry
impl Unpin for MappingTableEntry
impl UnwindSafe for MappingTableEntry
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