Struct simics::api::interface::interfaces::Ms1553LinkInterface
source · pub struct Ms1553LinkInterface {
obj: *mut ConfObject,
interface: *mut ms1553_link_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut ms1553_link_interface
Implementations§
source§impl Ms1553LinkInterface
impl Ms1553LinkInterface
sourcepub fn connect_terminal(&mut self, obj: *mut conf_object_t) -> Result<c_int>
pub fn connect_terminal(&mut self, obj: *mut conf_object_t) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn disconnect_terminal(&mut self, id: c_int) -> Result<()>
pub fn disconnect_terminal(&mut self, id: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn send_data(
&mut self,
id: c_int,
phase: ms1553_phase_t,
data: ms1553_words_t,
) -> Result<()>
pub fn send_data( &mut self, id: c_int, phase: ms1553_phase_t, data: ms1553_words_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_terminal_address(&mut self, id: c_int, address: c_int) -> Result<()>
pub fn set_terminal_address(&mut self, id: c_int, address: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn clr_terminal_address(&mut self, id: c_int) -> Result<()>
pub fn clr_terminal_address(&mut self, id: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_idle(&mut self, id: c_int) -> Result<()>
pub fn set_idle(&mut self, id: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn inject_data(
&mut self,
phase: ms1553_phase_t,
data: ms1553_words_t,
) -> Result<()>
pub fn inject_data( &mut self, phase: ms1553_phase_t, data: ms1553_words_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn inject_error(&mut self, err: ms1553_error_t) -> Result<()>
pub fn inject_error(&mut self, err: ms1553_error_t) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for Ms1553LinkInterface
impl Interface for Ms1553LinkInterface
source§type InternalInterface = ms1553_link_interface
type InternalInterface = ms1553_link_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 Ms1553LinkInterface
impl RefUnwindSafe for Ms1553LinkInterface
impl !Send for Ms1553LinkInterface
impl !Sync for Ms1553LinkInterface
impl Unpin for Ms1553LinkInterface
impl UnwindSafe for Ms1553LinkInterface
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