Struct simics_api_sys::bindings::microwire_interface
source · #[repr(C)]pub struct microwire_interface {
pub set_cs: Option<unsafe extern "C" fn(obj: *mut conf_object_t, cs: c_int)>,
pub set_sk: Option<unsafe extern "C" fn(obj: *mut conf_object_t, sk: c_int)>,
pub set_di: Option<unsafe extern "C" fn(obj: *mut conf_object_t, di: c_int)>,
pub get_do: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>,
pub read_word: Option<unsafe extern "C" fn(obj: *mut conf_object_t, offset: c_int) -> uint16>,
pub write_word: Option<unsafe extern "C" fn(obj: *mut conf_object_t, offset: c_int, value: uint16)>,
}
Fields§
§set_cs: Option<unsafe extern "C" fn(obj: *mut conf_object_t, cs: c_int)>
§set_sk: Option<unsafe extern "C" fn(obj: *mut conf_object_t, sk: c_int)>
§set_di: Option<unsafe extern "C" fn(obj: *mut conf_object_t, di: c_int)>
§get_do: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>
§read_word: Option<unsafe extern "C" fn(obj: *mut conf_object_t, offset: c_int) -> uint16>
§write_word: Option<unsafe extern "C" fn(obj: *mut conf_object_t, offset: c_int, value: uint16)>
Trait Implementations§
source§impl Clone for microwire_interface
impl Clone for microwire_interface
source§fn clone(&self) -> microwire_interface
fn clone(&self) -> microwire_interface
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 microwire_interface
impl Debug for microwire_interface
source§impl Default for microwire_interface
impl Default for microwire_interface
source§fn default() -> microwire_interface
fn default() -> microwire_interface
Returns the “default value” for a type. Read more
source§impl Hash for microwire_interface
impl Hash for microwire_interface
source§impl Ord for microwire_interface
impl Ord for microwire_interface
source§fn cmp(&self, other: µwire_interface) -> Ordering
fn cmp(&self, other: µwire_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for microwire_interface
impl PartialEq for microwire_interface
source§impl PartialOrd for microwire_interface
impl PartialOrd for microwire_interface
impl Copy for microwire_interface
impl Eq for microwire_interface
impl StructuralPartialEq for microwire_interface
Auto Trait Implementations§
impl Freeze for microwire_interface
impl RefUnwindSafe for microwire_interface
impl Send for microwire_interface
impl Sync for microwire_interface
impl Unpin for microwire_interface
impl UnwindSafe for microwire_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)