target

Struct target 

Source
#[repr(C)]
pub struct target {
Show 41 fields pub tc: *mut target_controller_s, pub attach: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>, pub detach: Option<unsafe extern "C" fn(target: *mut target_s)>, pub check_error: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>, pub mem_read: Option<unsafe extern "C" fn(target: *mut target_s, dest: *mut c_void, src: target_addr_t, len: usize)>, pub mem_write: Option<unsafe extern "C" fn(target: *mut target_s, dest: target_addr_t, src: *const c_void, len: usize)>, pub regs_size: usize, pub regs_description: Option<unsafe extern "C" fn(target: *mut target_s) -> *const c_char>, pub regs_read: Option<unsafe extern "C" fn(target: *mut target_s, data: *mut c_void)>, pub regs_write: Option<unsafe extern "C" fn(target: *mut target_s, data: *const c_void)>, pub reg_read: Option<unsafe extern "C" fn(target: *mut target_s, reg: u32, data: *mut c_void, max: usize) -> isize>, pub reg_write: Option<unsafe extern "C" fn(target: *mut target_s, reg: u32, data: *const c_void, size: usize) -> isize>, pub reset: Option<unsafe extern "C" fn(target: *mut target_s)>, pub extended_reset: Option<unsafe extern "C" fn(target: *mut target_s)>, pub halt_request: Option<unsafe extern "C" fn(target: *mut target_s)>, pub halt_poll: Option<unsafe extern "C" fn(target: *mut target_s, watch: *mut target_addr_t) -> target_halt_reason_e>, pub halt_resume: Option<unsafe extern "C" fn(target: *mut target_s, step: bool)>, pub breakwatch_set: Option<unsafe extern "C" fn(target: *mut target_s, arg1: *mut breakwatch_s) -> c_int>, pub breakwatch_clear: Option<unsafe extern "C" fn(target: *mut target_s, arg1: *mut breakwatch_s) -> c_int>, pub bw_list: *mut breakwatch_s, pub mass_erase: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>, pub enter_flash_mode: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>, pub exit_flash_mode: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>, pub flash_mode: bool, pub target_options: u32, pub target_storage: *mut c_void, pub __bindgen_anon_1: target__bindgen_ty_1, pub ram: *mut target_ram_s, pub flash: *mut target_flash_s, pub driver: *const c_char, pub cpuid: u32, pub core: *mut c_char, pub cmdline: [c_char; 81], pub heapinfo: [target_addr_t; 4], pub commands: *mut target_command_s, pub next: *mut target_s, pub priv_: *mut c_void, pub priv_free: Option<unsafe extern "C" fn(arg1: *mut c_void)>, pub designer_code: u16, pub part_id: u16, pub attached: bool,
}

Fields§

§tc: *mut target_controller_s§attach: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>§detach: Option<unsafe extern "C" fn(target: *mut target_s)>§check_error: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>§mem_read: Option<unsafe extern "C" fn(target: *mut target_s, dest: *mut c_void, src: target_addr_t, len: usize)>§mem_write: Option<unsafe extern "C" fn(target: *mut target_s, dest: target_addr_t, src: *const c_void, len: usize)>§regs_size: usize§regs_description: Option<unsafe extern "C" fn(target: *mut target_s) -> *const c_char>§regs_read: Option<unsafe extern "C" fn(target: *mut target_s, data: *mut c_void)>§regs_write: Option<unsafe extern "C" fn(target: *mut target_s, data: *const c_void)>§reg_read: Option<unsafe extern "C" fn(target: *mut target_s, reg: u32, data: *mut c_void, max: usize) -> isize>§reg_write: Option<unsafe extern "C" fn(target: *mut target_s, reg: u32, data: *const c_void, size: usize) -> isize>§reset: Option<unsafe extern "C" fn(target: *mut target_s)>§extended_reset: Option<unsafe extern "C" fn(target: *mut target_s)>§halt_request: Option<unsafe extern "C" fn(target: *mut target_s)>§halt_poll: Option<unsafe extern "C" fn(target: *mut target_s, watch: *mut target_addr_t) -> target_halt_reason_e>§halt_resume: Option<unsafe extern "C" fn(target: *mut target_s, step: bool)>§breakwatch_set: Option<unsafe extern "C" fn(target: *mut target_s, arg1: *mut breakwatch_s) -> c_int>§breakwatch_clear: Option<unsafe extern "C" fn(target: *mut target_s, arg1: *mut breakwatch_s) -> c_int>§bw_list: *mut breakwatch_s§mass_erase: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>§enter_flash_mode: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>§exit_flash_mode: Option<unsafe extern "C" fn(target: *mut target_s) -> bool>§flash_mode: bool§target_options: u32§target_storage: *mut c_void§__bindgen_anon_1: target__bindgen_ty_1§ram: *mut target_ram_s§flash: *mut target_flash_s§driver: *const c_char§cpuid: u32§core: *mut c_char§cmdline: [c_char; 81]§heapinfo: [target_addr_t; 4]§commands: *mut target_command_s§next: *mut target_s§priv_: *mut c_void§priv_free: Option<unsafe extern "C" fn(arg1: *mut c_void)>§designer_code: u16§part_id: u16§attached: bool

Trait Implementations§

Source§

impl Clone for target

Source§

fn clone(&self) -> target

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for target

Auto Trait Implementations§

§

impl Freeze for target

§

impl RefUnwindSafe for target

§

impl !Send for target

§

impl !Sync for target

§

impl Unpin for target

§

impl UnwindSafe for target

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.