Struct riot_sys::i2c_conf_t[][src]

#[repr(C)]
pub struct i2c_conf_t { pub dev: *mut NRF_TWIM_Type, pub scl: gpio_t, pub sda: gpio_t, pub speed: i2c_speed_t, }
Expand description

@brief I2C (TWI) configuration options

Fields

dev: *mut NRF_TWIM_Type

< TWIM hardware device

scl: gpio_t

< SCL pin

sda: gpio_t

< SDA pin

speed: i2c_speed_t

< Bus speed

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

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.