Struct nrf52::spi::registers::spim::Config
[−]
pub struct Config(pub u32);
Represents bitfields in config
register.
Methods
impl Config
pub fn order(&self) -> u32
pub fn set_order(&mut self, value: u32)
pub fn clock_phase(&self) -> u32
pub fn set_clock_phase(&mut self, value: u32)
pub fn clock_polarity(&self) -> u32
pub fn set_clock_polarity(&mut self, value: u32)
Trait Implementations
impl Debug for Config
impl Copy for Config
[src]
impl Clone for Config
[src]
fn clone(&self) -> Config
[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 Config 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.