pub struct SramProgramParams {
pub elf: Option<PathBuf>,
pub vmem: Option<PathBuf>,
pub load_addr: Option<u32>,
}
Expand description
Command-line parameters.
Fields§
§elf: Option<PathBuf>
Path to the ELF file to load.
vmem: Option<PathBuf>
Path to the VMEM file to load.
load_addr: Option<u32>
Address where to load the VMEM file.
Implementations§
Source§impl SramProgramParams
impl SramProgramParams
pub fn get_file(&self) -> SramProgramFile
pub fn load(&self, jtag: &mut dyn Jtag) -> Result<SramProgramInfo>
pub fn load_and_execute( &self, jtag: &mut dyn Jtag, exec_mode: ExecutionMode, ) -> Result<ExecutionResult>
Trait Implementations§
Source§impl Args for SramProgramParams
impl Args for SramProgramParams
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§impl Clone for SramProgramParams
impl Clone for SramProgramParams
Source§fn clone(&self) -> SramProgramParams
fn clone(&self) -> SramProgramParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SramProgramParams
impl Debug for SramProgramParams
Source§impl Default for SramProgramParams
impl Default for SramProgramParams
Source§fn default() -> SramProgramParams
fn default() -> SramProgramParams
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for SramProgramParams
impl FromArgMatches for SramProgramParams
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for SramProgramParams
impl RefUnwindSafe for SramProgramParams
impl Send for SramProgramParams
impl Sync for SramProgramParams
impl Unpin for SramProgramParams
impl UnwindSafe for SramProgramParams
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