Struct simics::api::interface::interfaces::PpcInterface
source · pub struct PpcInterface {
obj: *mut ConfObject,
interface: *mut ppc_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut ppc_interface
Implementations§
source§impl PpcInterface
impl PpcInterface
sourcepub fn clear_atomic_reservation_bit(&mut self) -> Result<()>
pub fn clear_atomic_reservation_bit(&mut self) -> Result<()>
Automatically generated method for the interface
sourcepub fn raise_machine_check_exception(&mut self, exc: ppc_mc_exc_t) -> Result<()>
pub fn raise_machine_check_exception(&mut self, exc: ppc_mc_exc_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn get_timebase_enabled(&mut self) -> Result<c_uint>
pub fn get_timebase_enabled(&mut self) -> Result<c_uint>
Automatically generated method for the interface
sourcepub fn set_timebase_enabled(&mut self, enabled: c_uint) -> Result<()>
pub fn set_timebase_enabled(&mut self, enabled: c_uint) -> Result<()>
Automatically generated method for the interface
sourcepub fn get_sleep_state(&mut self) -> Result<ppc_sleep_state_t>
pub fn get_sleep_state(&mut self) -> Result<ppc_sleep_state_t>
Automatically generated method for the interface
sourcepub fn set_sleep_state(&mut self, state: ppc_sleep_state_t) -> Result<()>
pub fn set_sleep_state(&mut self, state: ppc_sleep_state_t) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for PpcInterface
impl Interface for PpcInterface
source§type InternalInterface = ppc_interface
type InternalInterface = ppc_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 PpcInterface
impl RefUnwindSafe for PpcInterface
impl !Send for PpcInterface
impl !Sync for PpcInterface
impl Unpin for PpcInterface
impl UnwindSafe for PpcInterface
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