Struct simics::api::interface::interfaces::Rs232ConsoleInterface
source · pub struct Rs232ConsoleInterface {
obj: *mut ConfObject,
interface: *mut rs232_console_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut rs232_console_interface
Implementations§
source§impl Rs232ConsoleInterface
impl Rs232ConsoleInterface
sourcepub fn set_baudrate(&mut self, rate: c_int, commit: c_int) -> Result<()>
pub fn set_baudrate(&mut self, rate: c_int, commit: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_data_bits(&mut self, bits: c_int, commit: c_int) -> Result<()>
pub fn set_data_bits(&mut self, bits: c_int, commit: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_stop_bits(
&mut self,
stop_bits: stop_bits_t,
commit: c_int,
) -> Result<()>
pub fn set_stop_bits( &mut self, stop_bits: stop_bits_t, commit: c_int, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_parity_mode(
&mut self,
parity_mode: parity_mode_t,
commit: c_int,
) -> Result<()>
pub fn set_parity_mode( &mut self, parity_mode: parity_mode_t, commit: c_int, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_dtr(&mut self, status: c_int) -> Result<()>
pub fn set_dtr(&mut self, status: c_int) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for Rs232ConsoleInterface
impl Interface for Rs232ConsoleInterface
source§const NAME: &'static [u8] = crate::api::sys::RS232_CONSOLE_INTERFACE
const NAME: &'static [u8] = crate::api::sys::RS232_CONSOLE_INTERFACE
The name of the interface
source§type InternalInterface = rs232_console_interface
type InternalInterface = rs232_console_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 Rs232ConsoleInterface
impl RefUnwindSafe for Rs232ConsoleInterface
impl !Send for Rs232ConsoleInterface
impl !Sync for Rs232ConsoleInterface
impl Unpin for Rs232ConsoleInterface
impl UnwindSafe for Rs232ConsoleInterface
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