[][src]Struct jrk_g2_rs::JrkG2I2c

pub struct JrkG2I2c<I2c> { /* fields omitted */ }

Implement the JrkG2 trait for I2C

Implementations

impl<I2c, I2cError> JrkG2I2c<I2c> where
    I2c: Write<Error = I2cError> + Read<Error = I2cError>, 
[src]

pub fn new(i2c: I2c) -> Self[src]

pub fn set_device(&mut self, device: u8)[src]

The controller have a default 0x0B I2C address, but this can be manually changed in the configuration utility.

Trait Implementations

impl<I2c, I2cError> JrkG2<I2cError> for JrkG2I2c<I2c> where
    I2c: Write<Error = I2cError> + Read<Error = I2cError>, 
[src]

Auto Trait Implementations

impl<I2c> Send for JrkG2I2c<I2c> where
    I2c: Send
[src]

impl<I2c> Sync for JrkG2I2c<I2c> where
    I2c: Sync
[src]

impl<I2c> Unpin for JrkG2I2c<I2c> where
    I2c: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.