Skip to main content

SystemControl

Struct SystemControl 

Source
pub struct SystemControl {
    pub vtor: Vtor,
    pub aircr: Aircr,
    pub ccr: Ccr,
    pub cfsr: Cfsr,
    /* private fields */
}

Fields§

§vtor: Vtor§aircr: Aircr§ccr: Ccr§cfsr: Cfsr

Implementations§

Source§

impl SystemControl

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl Default for SystemControl

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl RegistersMemoryInterface for SystemControl

Source§

type Register = SystemControlRegister

Source§

fn read32( &mut self, reg: SystemControlRegister, _env: &mut Env, ) -> MemoryReadResult<u32>

Source§

fn write32( &mut self, reg: SystemControlRegister, value: u32, env: &mut Env, ) -> MemoryWriteResult

Source§

fn size(&self) -> u32

Source§

fn update(&mut self, env: &mut Env)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MemoryInterface for T

Source§

fn read_u32le( &mut self, address: u32, env: &mut Env, ) -> Result<u32, MemoryAccessError>

Source§

fn write_u32le( &mut self, address: u32, value: u32, env: &mut Env, ) -> Result<(), MemoryAccessError>

Source§

fn read_u8( &mut self, address: u32, env: &mut Env, ) -> Result<u8, MemoryAccessError>

Source§

fn write_u8( &mut self, address: u32, value: u8, env: &mut Env, ) -> Result<(), MemoryAccessError>

Source§

fn size(&self) -> u32

Source§

fn update(&mut self, env: &mut Env)

Source§

fn read_u16le(&mut self, _address: u32, _env: &mut Env) -> MemoryReadResult<u16>

Source§

fn write_u16le( &mut self, _address: u32, _value: u16, _env: &mut Env, ) -> MemoryWriteResult

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.