Struct avr_oxide::util::datatypes::VolatileBitField
source · #[repr(C)]pub struct VolatileBitField(/* private fields */);
Expand description
Helper newtype for a Bitfield that representas a volatile underlying field (I/O register or similar).
Implementations§
Trait Implementations§
source§impl BitFieldAccess for VolatileBitField
impl BitFieldAccess for VolatileBitField
fn read_byte(&self) -> u8
fn write_byte(&mut self, val: u8)
source§fn set_isolated<B: BitMaskable>(&mut self, _isotoken: Isolated, bits: B)
fn set_isolated<B: BitMaskable>(&mut self, _isotoken: Isolated, bits: B)
Set the bit(s) at the given index/range
source§fn set<B: BitMaskable + Copy>(&mut self, bits: B)
fn set<B: BitMaskable + Copy>(&mut self, bits: B)
Set the bit(s) at the given index/range
source§fn clr_isolated<B: BitMaskable + Copy>(&mut self, _isotoken: Isolated, bits: B)
fn clr_isolated<B: BitMaskable + Copy>(&mut self, _isotoken: Isolated, bits: B)
Clear the bit(s) at the given index/range
source§fn clr<B: BitMaskable + Copy>(&mut self, bits: B)
fn clr<B: BitMaskable + Copy>(&mut self, bits: B)
Clear the bit at the given index
source§fn set_or_clr<B: BitMaskable + Copy>(&mut self, bits: B, set: bool)
fn set_or_clr<B: BitMaskable + Copy>(&mut self, bits: B, set: bool)
Set or clear the bit(s) at the given index/range depending on the
set
parameter (true = set the bit, false = clear it.)source§fn set_to<B: BitMaskable + Copy>(&mut self, bits: B, value: u8)
fn set_to<B: BitMaskable + Copy>(&mut self, bits: B, value: u8)
Set the bit(s) at the given index/range to the bitwise value given.
source§fn set_to_isolated<B: BitMaskable + Copy>(
&mut self,
_isotoken: Isolated,
bits: B,
value: u8
)
fn set_to_isolated<B: BitMaskable + Copy>( &mut self, _isotoken: Isolated, bits: B, value: u8 )
Set the bit(s) at the given index/range to the bitwise value given.
source§fn is_all_set<B: BitMaskable + Copy>(&self, bits: B) -> bool
fn is_all_set<B: BitMaskable + Copy>(&self, bits: B) -> bool
True IFF all the bits at the given index/range are set
source§fn is_any_set<B: BitMaskable + Copy>(&self, bits: B) -> bool
fn is_any_set<B: BitMaskable + Copy>(&self, bits: B) -> bool
True IFF any of the bits at the given index/range are set
source§fn is_all_clr<B: BitMaskable + Copy>(&self, bits: B) -> bool
fn is_all_clr<B: BitMaskable + Copy>(&self, bits: B) -> bool
True IFF none of the bits at the given index/range are set
source§fn exc_set<B: BitMaskable + Copy>(&mut self, bits: B)
fn exc_set<B: BitMaskable + Copy>(&mut self, bits: B)
Set the bit(s) at the given index/range and clear all others
source§fn exc_clr<B: BitMaskable + Copy>(&mut self, bits: B)
fn exc_clr<B: BitMaskable + Copy>(&mut self, bits: B)
Clear the bit at the given index and set all others
source§impl PartialEq for VolatileBitField
impl PartialEq for VolatileBitField
source§fn eq(&self, other: &VolatileBitField) -> bool
fn eq(&self, other: &VolatileBitField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VolatileBitField
Auto Trait Implementations§
impl Freeze for VolatileBitField
impl RefUnwindSafe for VolatileBitField
impl Send for VolatileBitField
impl Sync for VolatileBitField
impl Unpin for VolatileBitField
impl UnwindSafe for VolatileBitField
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more