Type Alias target_s
Source pub type target_s = target;
#[repr(C)]
pub struct target_s {Show 41 fields
pub tc: *mut target_controller,
pub attach: Option<unsafe extern "C" fn(*mut target) -> bool>,
pub detach: Option<unsafe extern "C" fn(*mut target)>,
pub check_error: Option<unsafe extern "C" fn(*mut target) -> bool>,
pub mem_read: Option<unsafe extern "C" fn(*mut target, *mut c_void, u32, usize)>,
pub mem_write: Option<unsafe extern "C" fn(*mut target, u32, *const c_void, usize)>,
pub regs_size: usize,
pub regs_description: Option<unsafe extern "C" fn(*mut target) -> *const i8>,
pub regs_read: Option<unsafe extern "C" fn(*mut target, *mut c_void)>,
pub regs_write: Option<unsafe extern "C" fn(*mut target, *const c_void)>,
pub reg_read: Option<unsafe extern "C" fn(*mut target, u32, *mut c_void, usize) -> isize>,
pub reg_write: Option<unsafe extern "C" fn(*mut target, u32, *const c_void, usize) -> isize>,
pub reset: Option<unsafe extern "C" fn(*mut target)>,
pub extended_reset: Option<unsafe extern "C" fn(*mut target)>,
pub halt_request: Option<unsafe extern "C" fn(*mut target)>,
pub halt_poll: Option<unsafe extern "C" fn(*mut target, *mut u32) -> u32>,
pub halt_resume: Option<unsafe extern "C" fn(*mut target, bool)>,
pub breakwatch_set: Option<unsafe extern "C" fn(*mut target, *mut breakwatch) -> i32>,
pub breakwatch_clear: Option<unsafe extern "C" fn(*mut target, *mut breakwatch) -> i32>,
pub bw_list: *mut breakwatch,
pub mass_erase: Option<unsafe extern "C" fn(*mut target) -> bool>,
pub enter_flash_mode: Option<unsafe extern "C" fn(*mut target) -> bool>,
pub exit_flash_mode: Option<unsafe extern "C" fn(*mut target) -> 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,
pub flash: *mut target_flash,
pub driver: *const i8,
pub cpuid: u32,
pub core: *mut i8,
pub cmdline: [i8; 81],
pub heapinfo: [u32; 4],
pub commands: *mut target_command,
pub next: *mut target,
pub priv_: *mut c_void,
pub priv_free: Option<unsafe extern "C" fn(*mut c_void)>,
pub designer_code: u16,
pub part_id: u16,
pub attached: bool,
}
§commands: *mut target_command