pub struct Config {
pub mode: Mode,
pub address_primary: u16,
pub address_secondary: Option<SecondaryAddress>,
pub general_call: bool,
pub sbc_mode: bool,
pub underflow_fill: u8,
pub timing: Timing,
pub timeout: u32,
}Fields§
§mode: Mode§address_primary: u16§address_secondary: Option<SecondaryAddress>§general_call: bool§sbc_mode: bool§underflow_fill: u8Byte sent when the master reads beyond the supplied slave TX buffer.
timing: Timing§timeout: u32Implementations§
Source§impl Config
impl Config
pub const fn default() -> Self
pub const fn as_master(self) -> Self
pub const fn as_slave(self) -> Self
pub const fn timeout(self, timeout: u32) -> Self
pub const fn timing(self, timing: Timing) -> Self
pub const fn primary_address(self, address: u16) -> Self
pub const fn secondary_address(self, address: SecondaryAddress) -> Self
pub const fn without_secondary_address(self) -> Self
pub const fn general_call(self, enabled: bool) -> Self
pub const fn underflow_fill(self, byte: u8) -> Self
pub const fn validate(&self) -> Result<(), ConfigError>
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more