pub struct SerialBus<S>where
S: EventSink,{ /* private fields */ }
Implementations§
source§impl<S> SerialBus<S>where
S: EventSink,
impl<S> SerialBus<S>where
S: EventSink,
sourcepub fn using_bus(bus: &'static mut dyn TwoWireMaster) -> Self
pub fn using_bus(bus: &'static mut dyn TwoWireMaster) -> Self
Create an instance using the given TWI bus device. You should perform any steps required to configure the bus (e.g. setting the bus mode) beforehand.
sourcepub fn client<M: AsStaticRef<Self>>(
master: M,
address: TwiAddr
) -> SerialBusClientImpl<'static, S>
pub fn client<M: AsStaticRef<Self>>( master: M, address: TwiAddr ) -> SerialBusClientImpl<'static, S>
Instantiate a client for the given TWI device address.
Trait Implementations§
source§impl<S> EventSource for SerialBus<S>where
S: EventSink,
impl<S> EventSource for SerialBus<S>where
S: EventSink,
fn listen(&'static self)
fn process_event(&self, _evt: OxideEvent)
Auto Trait Implementations§
impl<S> !Freeze for SerialBus<S>
impl<S> !RefUnwindSafe for SerialBus<S>
impl<S> !Send for SerialBus<S>
impl<S> !Sync for SerialBus<S>
impl<S> Unpin for SerialBus<S>where
S: Unpin,
impl<S> !UnwindSafe for SerialBus<S>
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