Struct avr::regs::RegisterFile[][src]

pub struct RegisterFile {
    pub sreg: SReg,
    // some fields omitted
}

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]

impl Debug for RegisterFile[src]

impl Eq for RegisterFile[src]

impl PartialEq<RegisterFile> for RegisterFile[src]

impl StructuralEq for RegisterFile[src]

impl StructuralPartialEq for RegisterFile[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.