pub struct Target {
pub name: String,
pub cores: Vec<Core>,
pub flash_algorithms: Vec<RawFlashAlgorithm>,
pub memory_map: Vec<MemoryRegion>,
pub debug_sequence: DebugSequence,
/* private fields */
}
Expand description
This describes a complete target with a fixed chip model and variant.
Fields
name: String
The name of the target.
cores: Vec<Core>
The cores of the target.
flash_algorithms: Vec<RawFlashAlgorithm>
The name of the flash algorithm.
memory_map: Vec<MemoryRegion>
The memory map of the target.
debug_sequence: DebugSequence
Debug sequences for the given target.
Implementations
sourceimpl Target
impl Target
sourcepub fn architecture(&self) -> Architecture
pub fn architecture(&self) -> Architecture
Get the architecture of the target
sourcepub fn source(&self) -> &TargetDescriptionSource
pub fn source(&self) -> &TargetDescriptionSource
Source description of this target.
sourcepub fn flash_loader(&self) -> FlashLoader
pub fn flash_loader(&self) -> FlashLoader
Create a FlashLoader for this target, which can be used to program its non-volatile memory.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl !UnwindSafe for Target
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more