#[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, pub clk_flags: u32, }
Expand description

@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_1clk_flags: u32

< Bitwise of I2C_SCLK_SRC_FLAG_**FOR_DFS** for clk source choice

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.