pub struct IOSpaceU8<const IOADDR: u8>();
Expand description
A memory location stored within processor I/O space, that we can access
more efficiently using the AVR’s I/O specific atomic instructions like
sbi
and cbi
Implementations§
Trait Implementations§
source§impl<const IOADDR: u8> BitFieldAccess for IOSpaceU8<IOADDR>
impl<const IOADDR: u8> BitFieldAccess for IOSpaceU8<IOADDR>
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 clr_isolated<B: BitMaskable>(&mut self, _isotoken: Isolated, bits: B)
fn clr_isolated<B: BitMaskable>(&mut self, _isotoken: Isolated, bits: B)
Clear the bit(s) at the given index/range
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 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 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 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 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§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.
Auto Trait Implementations§
impl<const IOADDR: u8> Freeze for IOSpaceU8<IOADDR>
impl<const IOADDR: u8> RefUnwindSafe for IOSpaceU8<IOADDR>
impl<const IOADDR: u8> Send for IOSpaceU8<IOADDR>
impl<const IOADDR: u8> Sync for IOSpaceU8<IOADDR>
impl<const IOADDR: u8> Unpin for IOSpaceU8<IOADDR>
impl<const IOADDR: u8> UnwindSafe for IOSpaceU8<IOADDR>
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