target_s

Type Alias target_s 

Source
pub type target_s = target;

Aliased Type§

#[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,
}

Fields§

§tc: *mut target_controller§attach: Option<unsafe extern "C" fn(*mut target) -> bool>§detach: Option<unsafe extern "C" fn(*mut target)>§check_error: Option<unsafe extern "C" fn(*mut target) -> bool>§mem_read: Option<unsafe extern "C" fn(*mut target, *mut c_void, u32, usize)>§mem_write: Option<unsafe extern "C" fn(*mut target, u32, *const c_void, usize)>§regs_size: usize§regs_description: Option<unsafe extern "C" fn(*mut target) -> *const i8>§regs_read: Option<unsafe extern "C" fn(*mut target, *mut c_void)>§regs_write: Option<unsafe extern "C" fn(*mut target, *const c_void)>§reg_read: Option<unsafe extern "C" fn(*mut target, u32, *mut c_void, usize) -> isize>§reg_write: Option<unsafe extern "C" fn(*mut target, u32, *const c_void, usize) -> isize>§reset: Option<unsafe extern "C" fn(*mut target)>§extended_reset: Option<unsafe extern "C" fn(*mut target)>§halt_request: Option<unsafe extern "C" fn(*mut target)>§halt_poll: Option<unsafe extern "C" fn(*mut target, *mut u32) -> u32>§halt_resume: Option<unsafe extern "C" fn(*mut target, bool)>§breakwatch_set: Option<unsafe extern "C" fn(*mut target, *mut breakwatch) -> i32>§breakwatch_clear: Option<unsafe extern "C" fn(*mut target, *mut breakwatch) -> i32>§bw_list: *mut breakwatch§mass_erase: Option<unsafe extern "C" fn(*mut target) -> bool>§enter_flash_mode: Option<unsafe extern "C" fn(*mut target) -> bool>§exit_flash_mode: Option<unsafe extern "C" fn(*mut target) -> bool>§flash_mode: bool§target_options: u32§target_storage: *mut c_void§__bindgen_anon_1: target__bindgen_ty_1§ram: *mut target_ram§flash: *mut target_flash§driver: *const i8§cpuid: u32§core: *mut i8§cmdline: [i8; 81]§heapinfo: [u32; 4]§commands: *mut target_command§next: *mut target§priv_: *mut c_void§priv_free: Option<unsafe extern "C" fn(*mut c_void)>§designer_code: u16§part_id: u16§attached: bool