Struct avr::regs::RegisterFile [−][src]
The register file.
Fields
sreg: SReg
Implementations
impl RegisterFile
[src]
pub fn new(registers: Vec<Register>) -> Self
[src]
pub fn registers(&self) -> Iter<'_, Register>
[src]
pub fn gpr(&self, addr: u8) -> Option<u8>
[src]
Gets a register, or None
if it doesn't exist.
pub fn gpr_mut(&mut self, addr: u8) -> Option<&mut u8>
[src]
Gets a mutable register, or None
if it doesn't exist.
pub fn gpr_val(&self, addr: u8) -> Option<u8>
[src]
pub fn gpr_pair(&self, addr: u8) -> Option<(u8, u8)>
[src]
pub fn gpr_pair_val(&self, addr: u8) -> Option<u16>
[src]
pub fn set_gpr_pair(&mut self, low: u8, val: u16)
[src]
pub fn sreg_flag(&self, mask: u8) -> bool
[src]
Checks if a flag is set in SREG.
pub fn sreg_flag_set(&mut self, mask: u8)
[src]
pub fn sreg_flag_clear(&mut self, mask: u8)
[src]
Trait Implementations
impl Clone for RegisterFile
[src]
fn clone(&self) -> RegisterFile
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RegisterFile
[src]
impl Eq for RegisterFile
[src]
impl PartialEq<RegisterFile> for RegisterFile
[src]
fn eq(&self, other: &RegisterFile) -> bool
[src]
fn ne(&self, other: &RegisterFile) -> bool
[src]
impl StructuralEq for RegisterFile
[src]
impl StructuralPartialEq for RegisterFile
[src]
Auto Trait Implementations
impl RefUnwindSafe for RegisterFile
[src]
impl Send for RegisterFile
[src]
impl Sync for RegisterFile
[src]
impl Unpin for RegisterFile
[src]
impl UnwindSafe for RegisterFile
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,