pub struct Registers<I2C> { /* private fields */ }
Implementations§
source§impl<I2C: I2c> Registers<I2C>
impl<I2C: I2c> Registers<I2C>
pub fn new(i2c: I2C) -> Self
pub async fn read_fifo(&mut self, buf: &mut [u8])
pub async fn write_raw(&mut self, buf: &mut [u8])
pub async fn device_id(&mut self) -> DeviceId
pub async fn switches0(&mut self) -> Switches0
pub async fn set_switches0(&mut self, value: Switches0)
pub async fn switches1(&mut self) -> Switches1
pub async fn set_switches1(&mut self, value: Switches1)
pub async fn measure(&mut self) -> Measure
pub async fn set_measure(&mut self, value: Measure)
pub async fn slice(&mut self) -> Slice
pub async fn set_slice(&mut self, value: Slice)
pub async fn control0(&mut self) -> Control0
pub async fn set_control0(&mut self, value: Control0)
pub async fn clear_control0(&mut self)
pub async fn control1(&mut self) -> Control1
pub async fn set_control1(&mut self, value: Control1)
pub async fn clear_control1(&mut self)
pub async fn control2(&mut self) -> Control2
pub async fn set_control2(&mut self, value: Control2)
pub async fn control3(&mut self) -> Control3
pub async fn set_control3(&mut self, value: Control3)
pub async fn mask1(&mut self) -> Mask1
pub async fn set_mask1(&mut self, value: Mask1)
pub async fn power(&mut self) -> Power
pub async fn set_power(&mut self, value: Power)
pub async fn set_reset(&mut self, value: Reset)
pub async fn clear_reset(&mut self)
pub async fn ocpreg(&mut self) -> OcPreg
pub async fn set_ocpreg(&mut self, value: OcPreg)
pub async fn mask_a(&mut self) -> MaskA
pub async fn set_mask_a(&mut self, value: MaskA)
pub async fn mask_b(&mut self) -> MaskB
pub async fn set_mask_b(&mut self, value: MaskB)
pub async fn control4(&mut self) -> Control4
pub async fn set_control4(&mut self, value: Control4)
pub async fn status0a(&mut self) -> Status0A
pub async fn status1a(&mut self) -> Status1A
pub async fn interrupta(&mut self) -> InterruptA
pub async fn clear_interrupta(&mut self)
pub async fn interruptb(&mut self) -> InterruptB
pub async fn clear_interruptb(&mut self)
pub async fn status0(&mut self) -> Status0
pub async fn status1(&mut self) -> Status1
pub async fn interrupt(&mut self) -> Interrupt
pub async fn clear_interrupt(&mut self)
Auto Trait Implementations§
impl<I2C> Freeze for Registers<I2C>where
I2C: Freeze,
impl<I2C> RefUnwindSafe for Registers<I2C>where
I2C: RefUnwindSafe,
impl<I2C> Send for Registers<I2C>where
I2C: Send,
impl<I2C> Sync for Registers<I2C>where
I2C: Sync,
impl<I2C> Unpin for Registers<I2C>where
I2C: Unpin,
impl<I2C> UnwindSafe for Registers<I2C>where
I2C: 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
source§impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.