#[repr(C)]
pub struct gpio_config_t { pub pin_bit_mask: u64, pub mode: gpio_mode_t, pub pull_up_en: gpio_pullup_t, pub pull_down_en: gpio_pulldown_t, pub intr_type: gpio_int_type_t, }
Expand description

@brief Configuration parameters of GPIO pad for gpio_config function

Fields

pin_bit_mask: u64

< GPIO pin: set with bit mask, each bit maps to a GPIO

mode: gpio_mode_t

< GPIO mode: set input/output mode

pull_up_en: gpio_pullup_t

< GPIO pull-up

pull_down_en: gpio_pulldown_t

< GPIO pull-down

intr_type: gpio_int_type_t

< GPIO interrupt type

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

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.