pub struct Reg<'a, T, A> { /* private fields */ }
Expand description
A pointer to a register with volatile reads and writes.
§Access permissions
The read/write permission for the register is set by the generic parameter A
:
- when
A
isReadOnly
orReadWrite
, the register can be read from withReg::read
, - when
A
isWriteOnly
orReadWrite
, the register can be written to withReg::write
.
Access permissions are defined by the derive macro RegMap
using the #[reg()]
attribute,
see Access permissions in the crate documentation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, A> Freeze for Reg<'a, T, A>
impl<'a, T, A> RefUnwindSafe for Reg<'a, T, A>where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, A> !Send for Reg<'a, T, A>
impl<'a, T, A> !Sync for Reg<'a, T, A>
impl<'a, T, A> Unpin for Reg<'a, T, A>where
A: Unpin,
impl<'a, T, A> UnwindSafe for Reg<'a, T, A>where
T: RefUnwindSafe,
A: UnwindSafe,
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