#[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: boolTrait Implementations§
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> 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