Struct fusb302b::registers::Registers

source ·
pub struct Registers<I2C> { /* private fields */ }

Implementations§

source§

impl<I2C: I2c> Registers<I2C>

source

pub fn new(i2c: I2C) -> Self

source

pub async fn read_fifo(&mut self, buf: &mut [u8])

source

pub async fn write_raw(&mut self, buf: &mut [u8])

source

pub async fn device_id(&mut self) -> DeviceId

source

pub async fn switches0(&mut self) -> Switches0

source

pub async fn set_switches0(&mut self, value: Switches0)

source

pub async fn switches1(&mut self) -> Switches1

source

pub async fn set_switches1(&mut self, value: Switches1)

source

pub async fn measure(&mut self) -> Measure

source

pub async fn set_measure(&mut self, value: Measure)

source

pub async fn slice(&mut self) -> Slice

source

pub async fn set_slice(&mut self, value: Slice)

source

pub async fn control0(&mut self) -> Control0

source

pub async fn set_control0(&mut self, value: Control0)

source

pub async fn clear_control0(&mut self)

source

pub async fn control1(&mut self) -> Control1

source

pub async fn set_control1(&mut self, value: Control1)

source

pub async fn clear_control1(&mut self)

source

pub async fn control2(&mut self) -> Control2

source

pub async fn set_control2(&mut self, value: Control2)

source

pub async fn control3(&mut self) -> Control3

source

pub async fn set_control3(&mut self, value: Control3)

source

pub async fn mask1(&mut self) -> Mask1

source

pub async fn set_mask1(&mut self, value: Mask1)

source

pub async fn power(&mut self) -> Power

source

pub async fn set_power(&mut self, value: Power)

source

pub async fn set_reset(&mut self, value: Reset)

source

pub async fn clear_reset(&mut self)

source

pub async fn ocpreg(&mut self) -> OcPreg

source

pub async fn set_ocpreg(&mut self, value: OcPreg)

source

pub async fn mask_a(&mut self) -> MaskA

source

pub async fn set_mask_a(&mut self, value: MaskA)

source

pub async fn mask_b(&mut self) -> MaskB

source

pub async fn set_mask_b(&mut self, value: MaskB)

source

pub async fn control4(&mut self) -> Control4

source

pub async fn set_control4(&mut self, value: Control4)

source

pub async fn status0a(&mut self) -> Status0A

source

pub async fn status1a(&mut self) -> Status1A

source

pub async fn interrupta(&mut self) -> InterruptA

source

pub async fn clear_interrupta(&mut self)

source

pub async fn interruptb(&mut self) -> InterruptB

source

pub async fn clear_interruptb(&mut self)

source

pub async fn status0(&mut self) -> Status0

source

pub async fn status1(&mut self) -> Status1

source

pub async fn interrupt(&mut self) -> Interrupt

source

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, U> UnsafeFrom<U> for T
where U: Into<T>,

source§

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 T
where U: UnsafeFrom<T>,

source§

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.