[][src]Struct mynewt::I2C

pub struct I2C { /* fields omitted */ }

Rust Embedded HAL interface for Mynewt I2C

Implementations

impl I2C[src]

Rust Embedded HAL interface for Mynewt I2C

pub fn new() -> Self[src]

Create a new I2C port

pub fn init(
    &mut self,
    i2c_num: u8,
    i2c_settings: *const hal_i2c_settings,
    operation_timeout_in_ticks: u32
) -> MynewtResult<()>
[src]

Initiaise the I2C port

Trait Implementations

impl Read for I2C[src]

type Error = MynewtError

Error type

impl Write for I2C[src]

type Error = MynewtError

Error type

impl WriteRead for I2C[src]

type Error = MynewtError

Error type

Auto Trait Implementations

impl Send for I2C

impl Sync for I2C

impl Unpin for I2C

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> Same<T> for T

type Output = T

Should always be Self

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.