[][src]Struct esp_idf_bindgen::i2c_config_t

#[repr(C)]pub struct i2c_config_t {
    pub mode: i2c_mode_t,
    pub sda_io_num: c_int,
    pub scl_io_num: c_int,
    pub sda_pullup_en: bool,
    pub scl_pullup_en: bool,
    pub __bindgen_anon_1: i2c_config_t__bindgen_ty_1,
}

@brief I2C initialization parameters

Fields

mode: i2c_mode_t

< I2C mode

sda_io_num: c_int

< GPIO number for I2C sda signal

scl_io_num: c_int

< GPIO number for I2C scl signal

sda_pullup_en: bool

< Internal GPIO pull mode for I2C sda signal

scl_pullup_en: bool

< Internal GPIO pull mode for I2C scl signal

__bindgen_anon_1: i2c_config_t__bindgen_ty_1

Trait Implementations

impl Clone for i2c_config_t[src]

impl Copy for i2c_config_t[src]

Auto Trait Implementations

impl Send for i2c_config_t

impl Sync for i2c_config_t

impl Unpin for i2c_config_t

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.