[][src]Struct mcp2210::ChipSettings

pub struct ChipSettings {
    pub gp0_mode: PinMode,
    pub gp1_mode: PinMode,
    pub gp2_mode: PinMode,
    pub gp3_mode: PinMode,
    pub gp4_mode: PinMode,
    pub gp5_mode: PinMode,
    pub gp6_mode: PinMode,
    pub gp7_mode: PinMode,
    pub gp8_mode: PinMode,
    pub default_gpio_value: GpioValue,
    pub default_gpio_direction: GpioDirection,
    pub remote_wakeup: bool,
    pub interrupt_mode: InterruptMode,
    pub bus_release: bool,
    pub nvram_access_control: NvramAccessControl,
}

Fields

gp0_mode: PinModegp1_mode: PinModegp2_mode: PinModegp3_mode: PinModegp4_mode: PinModegp5_mode: PinModegp6_mode: PinModegp7_mode: PinModegp8_mode: PinModedefault_gpio_value: GpioValuedefault_gpio_direction: GpioDirectionremote_wakeup: boolinterrupt_mode: InterruptModebus_release: boolnvram_access_control: NvramAccessControl

Methods

impl ChipSettings[src]

pub fn from_buffer(buf: &Buffer) -> Result<ChipSettings, String>[src]

pub fn write_to_buffer(&self, buf: &mut Buffer)[src]

Trait Implementations

impl PartialEq<ChipSettings> for ChipSettings[src]

impl Clone for ChipSettings[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for ChipSettings[src]

impl Copy for ChipSettings[src]

impl Debug for ChipSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]