Trait drone_cortexm::reg::field::WRwRegFieldBitAtomic[][src]

pub trait WRwRegFieldBitAtomic<T: RegAtomic> where
    Self: WRwRegFieldAtomic<T> + RegFieldBit<T>,
    Self::Reg: RReg<T> + WReg<T>, 
{ fn set_bit(&self);
fn clear_bit(&self);
fn toggle_bit(&self); }

Atomic operations for writable single-bit field of read-write register.

Required methods

fn set_bit(&self)[src]

Reads the value from the register memory, sets the bit, writes the value back to the register memory, repeat if interrupted.

fn clear_bit(&self)[src]

Reads the value from the register memory, clears the bit, writes the value back to the register memory, repeat if interrupted.

fn toggle_bit(&self)[src]

Reads the value from the register memory, toggles the bit, writes the value back to the register memory, repeat if interrupted.

Loading content...

Implementors

impl<T, R> WRwRegFieldBitAtomic<T> for R where
    T: RegAtomic,
    R: WRwRegFieldAtomic<T> + RegFieldBit<T>,
    R::Reg: RReg<T> + WReg<T>, 
[src]

Loading content...