Struct esp_idf_svc::hal::i2c::config::SlaveConfig
source · pub struct SlaveConfig {
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>,
}
Expand description
I2C Slave configuration
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
Auto Trait Implementations§
impl Freeze for SlaveConfig
impl RefUnwindSafe for SlaveConfig
impl Send for SlaveConfig
impl Sync for SlaveConfig
impl Unpin for SlaveConfig
impl UnwindSafe for SlaveConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)