Struct simics::api::interface::interfaces::NandFlashInterface
source · pub struct NandFlashInterface {
obj: *mut ConfObject,
interface: *mut nand_flash_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut nand_flash_interface
Implementations§
source§impl NandFlashInterface
impl NandFlashInterface
sourcepub fn read_access(&mut self) -> Result<uint16>
pub fn read_access(&mut self) -> Result<uint16>
Automatically generated method for the interface
sourcepub fn write_access(&mut self, value: uint16) -> Result<()>
pub fn write_access(&mut self, value: uint16) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_command_latch_enable(&mut self, value: c_int) -> Result<()>
pub fn set_command_latch_enable(&mut self, value: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_address_latch_enable(&mut self, value: c_int) -> Result<()>
pub fn set_address_latch_enable(&mut self, value: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_write_protect(&mut self, value: c_int) -> Result<()>
pub fn set_write_protect(&mut self, value: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn set_spare_area_enable(&mut self, value: c_int) -> Result<()>
pub fn set_spare_area_enable(&mut self, value: c_int) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for NandFlashInterface
impl Interface for NandFlashInterface
source§type InternalInterface = nand_flash_interface
type InternalInterface = nand_flash_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 NandFlashInterface
impl RefUnwindSafe for NandFlashInterface
impl !Send for NandFlashInterface
impl !Sync for NandFlashInterface
impl Unpin for NandFlashInterface
impl UnwindSafe for NandFlashInterface
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