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
impl SlaveConfig
pub fn new() -> Self
pub fn sda_enable_pullup(self, enable: bool) -> Self
pub fn scl_enable_pullup(self, enable: bool) -> Self
pub fn rx_buffer_length(self, len: usize) -> Self
pub fn tx_buffer_length(self, len: usize) -> Self
pub fn intr_flags(self, flags: EnumSet<InterruptType>) -> Self
Trait Implementations
Source§impl Clone for SlaveConfig
impl Clone for SlaveConfig
Source§fn clone(&self) -> SlaveConfig
fn clone(&self) -> SlaveConfig
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more