Struct simics::api::interface::interfaces::SprInterface
source · pub struct SprInterface {
obj: *mut ConfObject,
interface: *mut spr_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut spr_interface
Implementations§
source§impl SprInterface
impl SprInterface
sourcepub fn register_user_handlers(
&mut self,
spr_number: int64,
getter: gen_spr_user_getter_func_t,
user_getter_data: *mut lang_void,
setter: gen_spr_user_setter_func_t,
user_setter_data: *mut lang_void,
privilege_checks: c_int,
) -> Result<()>
pub fn register_user_handlers( &mut self, spr_number: int64, getter: gen_spr_user_getter_func_t, user_getter_data: *mut lang_void, setter: gen_spr_user_setter_func_t, user_setter_data: *mut lang_void, privilege_checks: c_int, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn unregister_user_handlers(&mut self, spr_number: int64) -> Result<()>
pub fn unregister_user_handlers(&mut self, spr_number: int64) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_target_value(&mut self, value: uint64) -> Result<()>
pub fn set_target_value(&mut self, value: uint64) -> Result<()>
Automatically generated method for the interface
sourcepub fn stash_value(&mut self, spr_number: int64, value: uint64) -> Result<()>
pub fn stash_value(&mut self, spr_number: int64, value: uint64) -> Result<()>
Automatically generated method for the interface
sourcepub fn fetch_value(&mut self, spr_number: int64) -> Result<uint64>
pub fn fetch_value(&mut self, spr_number: int64) -> Result<uint64>
Automatically generated method for the interface
sourcepub fn default_getter(
&mut self,
spr_number: int64,
type_: gen_spr_access_type_t,
) -> Result<gen_spr_ret_t>
pub fn default_getter( &mut self, spr_number: int64, type_: gen_spr_access_type_t, ) -> Result<gen_spr_ret_t>
Automatically generated method for the interface
sourcepub fn default_setter(
&mut self,
spr_number: int64,
value: uint64,
type_: gen_spr_access_type_t,
) -> Result<gen_spr_ret_t>
pub fn default_setter( &mut self, spr_number: int64, value: uint64, type_: gen_spr_access_type_t, ) -> Result<gen_spr_ret_t>
Automatically generated method for the interface
sourcepub fn get_name(&mut self, spr_number: int64) -> Result<*const c_char>
pub fn get_name(&mut self, spr_number: int64) -> Result<*const c_char>
Automatically generated method for the interface
sourcepub fn get_number(&mut self, spr_name: *const c_char) -> Result<int64>
pub fn get_number(&mut self, spr_name: *const c_char) -> Result<int64>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for SprInterface
impl Interface for SprInterface
source§type InternalInterface = spr_interface
type InternalInterface = spr_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 SprInterface
impl RefUnwindSafe for SprInterface
impl !Send for SprInterface
impl !Sync for SprInterface
impl Unpin for SprInterface
impl UnwindSafe for SprInterface
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