Struct simics::api::interface::interfaces::TransactionTranslatorInterface
source · pub struct TransactionTranslatorInterface {
obj: *mut ConfObject,
interface: *mut transaction_translator_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut transaction_translator_interface
Implementations§
source§impl TransactionTranslatorInterface
impl TransactionTranslatorInterface
sourcepub fn translate(
&mut self,
addr: uint64,
access: access_t,
t: *mut transaction_t,
callback: Option<unsafe extern "C" fn(translation: translation_t, transaction: *mut transaction_t, data: cbdata_call_t) -> exception_type_t>,
data: cbdata_register_t,
) -> Result<exception_type_t>
pub fn translate( &mut self, addr: uint64, access: access_t, t: *mut transaction_t, callback: Option<unsafe extern "C" fn(translation: translation_t, transaction: *mut transaction_t, data: cbdata_call_t) -> exception_type_t>, data: cbdata_register_t, ) -> Result<exception_type_t>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for TransactionTranslatorInterface
impl Interface for TransactionTranslatorInterface
source§const NAME: &'static [u8] = crate::api::sys::TRANSACTION_TRANSLATOR_INTERFACE
const NAME: &'static [u8] = crate::api::sys::TRANSACTION_TRANSLATOR_INTERFACE
The name of the interface
source§type InternalInterface = transaction_translator_interface
type InternalInterface = transaction_translator_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 TransactionTranslatorInterface
impl RefUnwindSafe for TransactionTranslatorInterface
impl !Send for TransactionTranslatorInterface
impl !Sync for TransactionTranslatorInterface
impl Unpin for TransactionTranslatorInterface
impl UnwindSafe for TransactionTranslatorInterface
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