Struct simics::api::interface::interfaces::Rs232DeviceInterface
source · pub struct Rs232DeviceInterface {
obj: *mut ConfObject,
interface: *mut rs232_device_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut rs232_device_interface
Implementations§
source§impl Rs232DeviceInterface
impl Rs232DeviceInterface
sourcepub fn cts(&mut self, status: c_int) -> Result<()>
pub fn cts(&mut self, status: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn dsr(&mut self, status: c_int) -> Result<()>
pub fn dsr(&mut self, status: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn ring(&mut self, status: c_int) -> Result<()>
pub fn ring(&mut self, status: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn carrier(&mut self, status: c_int) -> Result<()>
pub fn carrier(&mut self, status: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn got_frame_error(&mut self) -> Result<()>
pub fn got_frame_error(&mut self) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for Rs232DeviceInterface
impl Interface for Rs232DeviceInterface
source§type InternalInterface = rs232_device_interface
type InternalInterface = rs232_device_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 Rs232DeviceInterface
impl RefUnwindSafe for Rs232DeviceInterface
impl !Send for Rs232DeviceInterface
impl !Sync for Rs232DeviceInterface
impl Unpin for Rs232DeviceInterface
impl UnwindSafe for Rs232DeviceInterface
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