Struct avr::sreg::SReg
[−]
[src]
pub struct SReg(pub Register);
The AVR status register.
Methods
impl SReg
[src]
fn new() -> Self
fn set(&mut self, flag: u8, state: bool)
fn get(&self, flag: u8) -> bool
fn is_set(&self, flag: u8) -> bool
fn is_clear(&self, flag: u8) -> bool
Trait Implementations
impl Clone for SReg
[src]
fn clone(&self) -> SReg
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SReg
[src]
impl PartialEq for SReg
[src]
fn eq(&self, __arg_0: &SReg) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SReg) -> bool
This method tests for !=
.