Trait drone_stm32::reg::WRegBitBand
[−]
[src]
pub trait WRegBitBand<T> where
Self: RegBitBand<T> + WReg<T>,
T: RegFlavor, { fn set_bit_band(&self, offset: usize, value: bool); fn bit_band_mut_ptr(&self, offset: usize) -> *mut usize; }
Register that can write bits through peripheral bit-band region.
Required Methods
fn set_bit_band(&self, offset: usize, value: bool)
Atomically sets or clears the register's bit by offset
through
peripheral bit-band region.
Panics
If offset
is greater than or equals to the platform's word size in bits.
fn bit_band_mut_ptr(&self, offset: usize) -> *mut usize
Returns an unsafe mutable pointer to the corresponding bit-band address.
Panics
If offset
is greater than or equals to the platform's word size in bits.
Implementors
impl<T, U> WRegBitBand<U> for T where
T: RegBitBand<U> + WReg<U>,
U: RegFlavor,