#[repr(transparent)]pub struct Addr(pub u32);Expand description
Address register for automatic address matching.
Tuple Fields§
§0: u32Implementations§
Source§impl Addr
impl Addr
Sourcepub const fn address(&self) -> u8
pub const fn address(&self) -> u8
8-bit address used with automatic address matching. Used when address detection is enabled (ADDRDET in CTL = 1) and automatic address matching is enabled (AUTOADDR in CFG = 1).
Sourcepub const fn set_address(&mut self, val: u8)
pub const fn set_address(&mut self, val: u8)
8-bit address used with automatic address matching. Used when address detection is enabled (ADDRDET in CTL = 1) and automatic address matching is enabled (AUTOADDR in CFG = 1).
Trait Implementations§
impl Copy for Addr
impl Eq for Addr
impl StructuralPartialEq for Addr
Auto Trait Implementations§
impl Freeze for Addr
impl RefUnwindSafe for Addr
impl Send for Addr
impl Sync for Addr
impl Unpin for Addr
impl UnwindSafe for Addr
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