Struct nrf52::i2c::registers::InterruptEnable
[−]
pub struct InterruptEnable(pub u32);
Represents bitfields in intenset
and intenclr
registers.
Methods
impl InterruptEnable
pub fn stopped(&self) -> u32
pub fn set_stopped(&mut self, value: u32)
pub fn error(&self) -> u32
pub fn set_error(&mut self, value: u32)
pub fn suspended(&self) -> u32
pub fn set_suspended(&mut self, value: u32)
pub fn rxstarted(&self) -> u32
pub fn set_rxstarted(&mut self, value: u32)
pub fn txstarted(&self) -> u32
pub fn set_txstarted(&mut self, value: u32)
pub fn lastrx(&self) -> u32
pub fn set_lastrx(&mut self, value: u32)
pub fn lasttx(&self) -> u32
pub fn set_lasttx(&mut self, value: u32)
Trait Implementations
impl Debug for InterruptEnable
impl Copy for InterruptEnable
[src]
impl Clone for InterruptEnable
[src]
fn clone(&self) -> InterruptEnable
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> BitRange<T> for InterruptEnable where
u32: BitRange<T>,
u32: BitRange<T>,
fn bit_range(&self, msb: usize, lsb: usize) -> T
Get a range of bits.
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.