Struct simics_api_sys::i2c_link_interface
source · #[repr(C)]pub struct i2c_link_interface {Show 13 fields
pub register_slave_address: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, address: uint32, mask: uint32)>,
pub unregister_slave_address: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, address: uint32, mask: uint32)>,
pub register_bridge: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, bridge: *mut conf_object_t)>,
pub disconnect_device: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, device: *mut conf_object_t)>,
pub start_request: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t, address: uint32)>,
pub read_request: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t)>,
pub ack_read_request: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t, ack: i2c_status_t)>,
pub write_request: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t, value: uint8)>,
pub read_response: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, value: uint8)>,
pub ack_read_response: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t)>,
pub write_response: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, status: i2c_status_t)>,
pub start_response: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, status: i2c_status_t)>,
pub stop: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t)>,
}
Fields§
§register_slave_address: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, address: uint32, mask: uint32)>
§unregister_slave_address: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, address: uint32, mask: uint32)>
§register_bridge: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, bridge: *mut conf_object_t)>
§disconnect_device: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, device: *mut conf_object_t)>
§start_request: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t, address: uint32)>
§read_request: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t)>
§ack_read_request: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t, ack: i2c_status_t)>
§write_request: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t, value: uint8)>
§read_response: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, value: uint8)>
§ack_read_response: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t)>
§write_response: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, status: i2c_status_t)>
§start_response: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, slave: *mut conf_object_t, status: i2c_status_t)>
§stop: Option<unsafe extern "C" fn(i2c_link: *mut conf_object_t, master: *mut conf_object_t)>
Trait Implementations§
source§impl Clone for i2c_link_interface
impl Clone for i2c_link_interface
source§fn clone(&self) -> i2c_link_interface
fn clone(&self) -> i2c_link_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 i2c_link_interface
impl Debug for i2c_link_interface
source§impl Default for i2c_link_interface
impl Default for i2c_link_interface
source§fn default() -> i2c_link_interface
fn default() -> i2c_link_interface
Returns the “default value” for a type. Read more
source§impl Hash for i2c_link_interface
impl Hash for i2c_link_interface
source§impl Ord for i2c_link_interface
impl Ord for i2c_link_interface
source§fn cmp(&self, other: &i2c_link_interface) -> Ordering
fn cmp(&self, other: &i2c_link_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 i2c_link_interface
impl PartialEq for i2c_link_interface
source§impl PartialOrd for i2c_link_interface
impl PartialOrd for i2c_link_interface
impl Copy for i2c_link_interface
impl Eq for i2c_link_interface
impl StructuralPartialEq for i2c_link_interface
Auto Trait Implementations§
impl Freeze for i2c_link_interface
impl RefUnwindSafe for i2c_link_interface
impl Send for i2c_link_interface
impl Sync for i2c_link_interface
impl Unpin for i2c_link_interface
impl UnwindSafe for i2c_link_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
)