Struct esp_idf_hal::i2c::config::Config
source · pub struct Config {
pub baudrate: Hertz,
pub sda_pullup_enabled: bool,
pub scl_pullup_enabled: bool,
pub timeout: Option<APBTickType>,
pub intr_flags: EnumSet<InterruptType>,
}
Expand description
I2C Master configuration
Fields§
§baudrate: Hertz
§sda_pullup_enabled: bool
§scl_pullup_enabled: bool
§timeout: Option<APBTickType>
§intr_flags: EnumSet<InterruptType>
Implementations§
source§impl Config
impl Config
pub fn new() -> Self
pub fn baudrate(self, baudrate: Hertz) -> Self
pub fn sda_enable_pullup(self, enable: bool) -> Self
pub fn scl_enable_pullup(self, enable: bool) -> Self
pub fn timeout(self, timeout: APBTickType) -> Self
pub fn intr_flags(self, flags: EnumSet<InterruptType>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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