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() -> SlaveConfig
pub fn sda_enable_pullup(self, enable: bool) -> SlaveConfig
pub fn scl_enable_pullup(self, enable: bool) -> SlaveConfig
pub fn rx_buffer_length(self, len: usize) -> SlaveConfig
pub fn tx_buffer_length(self, len: usize) -> SlaveConfig
pub fn intr_flags(self, flags: EnumSet<InterruptType>) -> SlaveConfig
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 moreSource§impl Debug for SlaveConfig
impl Debug for SlaveConfig
Source§impl Default for SlaveConfig
impl Default for SlaveConfig
Source§fn default() -> SlaveConfig
fn default() -> SlaveConfig
Returns the “default value” for a type. Read more