Struct simics::api::interface::interfaces::RiscvImsicInterface
source · pub struct RiscvImsicInterface {
obj: *mut ConfObject,
interface: *mut riscv_imsic_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut riscv_imsic_interface
Implementations§
source§impl RiscvImsicInterface
impl RiscvImsicInterface
sourcepub fn num_guest_files(&mut self) -> Result<uint32>
pub fn num_guest_files(&mut self) -> Result<uint32>
Automatically generated method for the interface
sourcepub fn read_irq_file(
&mut self,
id: riscv_imsic_file_id_t,
offset: uint32,
) -> Result<uint64>
pub fn read_irq_file( &mut self, id: riscv_imsic_file_id_t, offset: uint32, ) -> Result<uint64>
Automatically generated method for the interface
sourcepub fn read_and_write_irq_file(
&mut self,
id: riscv_imsic_file_id_t,
offset: uint32,
new_value: uint64,
mask: uint64,
) -> Result<uint64>
pub fn read_and_write_irq_file( &mut self, id: riscv_imsic_file_id_t, offset: uint32, new_value: uint64, mask: uint64, ) -> Result<uint64>
Automatically generated method for the interface
sourcepub fn read_xtopei(&mut self, id: riscv_imsic_file_id_t) -> Result<uint64>
pub fn read_xtopei(&mut self, id: riscv_imsic_file_id_t) -> Result<uint64>
Automatically generated method for the interface
sourcepub fn read_and_write_xtopei(
&mut self,
id: riscv_imsic_file_id_t,
value: uint64,
mask: uint64,
) -> Result<uint64>
pub fn read_and_write_xtopei( &mut self, id: riscv_imsic_file_id_t, value: uint64, mask: uint64, ) -> Result<uint64>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for RiscvImsicInterface
impl Interface for RiscvImsicInterface
source§type InternalInterface = riscv_imsic_interface
type InternalInterface = riscv_imsic_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 RiscvImsicInterface
impl RefUnwindSafe for RiscvImsicInterface
impl !Send for RiscvImsicInterface
impl !Sync for RiscvImsicInterface
impl Unpin for RiscvImsicInterface
impl UnwindSafe for RiscvImsicInterface
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