pub struct Ctrl(/* private fields */);Expand description
System Control Register
Implementations§
Source§impl Ctrl
impl Ctrl
pub const RESET_OFFSET: usize = 0usize
pub const RESET_WIDTH: usize = 1usize
pub const RESET_MASK: u32 = 1u32
pub const RELUCTANCE_OFFSET: usize = 1usize
pub const RELUCTANCE_WIDTH: usize = 8usize
pub const RELUCTANCE_MASK: u32 = 255u32
pub const RELUCTANCE_SIGNED: bool = true
pub const RELUCTANCE_INTWIDTH: isize = 1isize
pub const RELUCTANCE_FRACWIDTH: isize = 7isize
pub const DIRACTANCE_OFFSET: usize = 9usize
pub const DIRACTANCE_WIDTH: usize = 8usize
pub const DIRACTANCE_MASK: u32 = 255u32
Sourcepub fn reluctance(&self) -> ReluctanceFixedPoint
pub fn reluctance(&self) -> ReluctanceFixedPoint
Magneto-reluctance
Set the absolute magneto-reluctance.
Sourcepub fn set_reluctance(&mut self, val: ReluctanceFixedPoint)
pub fn set_reluctance(&mut self, val: ReluctanceFixedPoint)
Magneto-reluctance
Set the absolute magneto-reluctance.
Sourcepub fn diractance(&self) -> u8
pub fn diractance(&self) -> u8
Capactive diractance
Capacitive diractance relative to the lunar waneshaft.
The amount of energy that can be stored in a capacitor is E = 1/2 CV^2, but that is irrelevant because nobody knows what ‘diractance’ is, so we’ll leave that as an exercise to the reader.
Sourcepub fn set_diractance(&mut self, val: u8)
pub fn set_diractance(&mut self, val: u8)
Capactive diractance
Capacitive diractance relative to the lunar waneshaft.
The amount of energy that can be stored in a capacitor is E = 1/2 CV^2, but that is irrelevant because nobody knows what ‘diractance’ is, so we’ll leave that as an exercise to the reader.
Trait Implementations§
Source§impl Register for Ctrl
impl Register for Ctrl
Source§type Accesswidth = u32
type Accesswidth = u32
Primitive integer type representing the size of memory accesses used when
reading/writing this register.
Source§type ByteEndian = LittleEndian
type ByteEndian = LittleEndian
Ordering of bytes within each accesswidth subword.
Source§type WordEndian = LittleEndian
type WordEndian = LittleEndian
Ordering of accesswidth subwords within the register.
impl Copy for Ctrl
impl Eq for Ctrl
impl Send for Ctrl
impl StructuralPartialEq for Ctrl
impl Sync for Ctrl
Auto Trait Implementations§
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