pub enum OwnAddresses {
OA1(Address),
OA2(OA2),
Both {
oa1: Address,
oa2: OA2,
},
}
Expand description
The Own Address(es) of the I2C peripheral.
Variants§
OA1(Address)
Configuration for only the OA1 register.
OA2(OA2)
Configuration for only the OA2 register.
Both
Configuration for both the OA1 and OA2 registers.
Trait Implementations§
Source§impl Clone for OwnAddresses
impl Clone for OwnAddresses
Source§fn clone(&self) -> OwnAddresses
fn clone(&self) -> OwnAddresses
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Format for OwnAddresses
impl Format for OwnAddresses
impl Copy for OwnAddresses
Auto Trait Implementations§
impl Freeze for OwnAddresses
impl RefUnwindSafe for OwnAddresses
impl Send for OwnAddresses
impl Sync for OwnAddresses
impl Unpin for OwnAddresses
impl UnwindSafe for OwnAddresses
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