esp_idf_hal::i2c

Type Alias I2cSlaveConfig

Source
pub type I2cSlaveConfig = SlaveConfig;

Aliased Type§

struct I2cSlaveConfig {
    pub sda_pullup_enabled: bool,
    pub scl_pullup_enabled: bool,
    pub rx_buf_len: usize,
    pub tx_buf_len: usize,
    pub intr_flags: EnumSet<InterruptType>,
}

Fields§

§sda_pullup_enabled: bool§scl_pullup_enabled: bool§rx_buf_len: usize§tx_buf_len: usize§intr_flags: EnumSet<InterruptType>

Implementations

Source§

impl SlaveConfig

Source

pub fn new() -> Self

Source

pub fn sda_enable_pullup(self, enable: bool) -> Self

Source

pub fn scl_enable_pullup(self, enable: bool) -> Self

Source

pub fn rx_buffer_length(self, len: usize) -> Self

Source

pub fn tx_buffer_length(self, len: usize) -> Self

Source

pub fn intr_flags(self, flags: EnumSet<InterruptType>) -> Self

Trait Implementations

Source§

impl Clone for SlaveConfig

Source§

fn clone(&self) -> SlaveConfig

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SlaveConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SlaveConfig

Source§

fn default() -> Self

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