Struct simics::api::interface::interfaces::I2cBusInterface
source · pub struct I2cBusInterface {
obj: *mut ConfObject,
interface: *mut i2c_bus_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut i2c_bus_interface
Implementations§
source§impl I2cBusInterface
impl I2cBusInterface
sourcepub fn start(&mut self, address: uint8) -> Result<c_int>
pub fn start(&mut self, address: uint8) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn write_data(&mut self, value: uint8) -> Result<()>
pub fn write_data(&mut self, value: uint8) -> Result<()>
Automatically generated method for the interface
sourcepub fn register_device(
&mut self,
device: *mut conf_object_t,
address: uint8,
mask: uint8,
flags: i2c_device_flag_t,
) -> Result<c_int>
pub fn register_device( &mut self, device: *mut conf_object_t, address: uint8, mask: uint8, flags: i2c_device_flag_t, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn unregister_device(
&mut self,
device: *mut conf_object_t,
address: uint8,
mask: uint8,
) -> Result<()>
pub fn unregister_device( &mut self, device: *mut conf_object_t, address: uint8, mask: uint8, ) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for I2cBusInterface
impl Interface for I2cBusInterface
source§type InternalInterface = i2c_bus_interface
type InternalInterface = i2c_bus_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for I2cBusInterface
impl RefUnwindSafe for I2cBusInterface
impl !Send for I2cBusInterface
impl !Sync for I2cBusInterface
impl Unpin for I2cBusInterface
impl UnwindSafe for I2cBusInterface
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