pub struct Lpm013m126Component<A, P, S>where
A: 'static + Alarm<'static>,
P: 'static + Pin,
S: 'static + SpiMaster<'static>,{ /* private fields */ }Implementations§
Source§impl<A, P, S> Lpm013m126Component<A, P, S>where
A: 'static + Alarm<'static>,
P: 'static + Pin,
S: 'static + SpiMaster<'static>,
impl<A, P, S> Lpm013m126Component<A, P, S>where
A: 'static + Alarm<'static>,
P: 'static + Pin,
S: 'static + SpiMaster<'static>,
pub fn new<I: IntoChipSelect<S::ChipSelect, ActiveHigh>>( spi: &'static MuxSpiMaster<'static, S>, chip_select: I, disp: &'static P, extcomin: &'static P, alarm_mux: &'static MuxAlarm<'static, A>, ) -> Self
Trait Implementations§
Source§impl<A, P, S> Component for Lpm013m126Component<A, P, S>where
A: 'static + Alarm<'static>,
P: 'static + Pin,
S: 'static + SpiMaster<'static>,
impl<A, P, S> Component for Lpm013m126Component<A, P, S>where
A: 'static + Alarm<'static>,
P: 'static + Pin,
S: 'static + SpiMaster<'static>,
Source§type StaticInput = (&'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>, &'static mut MaybeUninit<[u8; 15842]>, &'static mut MaybeUninit<VirtualSpiMasterDevice<'static, S>>, &'static mut MaybeUninit<Lpm013m126<'static, VirtualMuxAlarm<'static, A>, P, VirtualSpiMasterDevice<'static, S>>>)
type StaticInput = (&'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>, &'static mut MaybeUninit<[u8; 15842]>, &'static mut MaybeUninit<VirtualSpiMasterDevice<'static, S>>, &'static mut MaybeUninit<Lpm013m126<'static, VirtualMuxAlarm<'static, A>, P, VirtualSpiMasterDevice<'static, S>>>)
An optional type to specify the chip or board specific static memory
that a component needs to setup the output object(s). This is the memory
that [
crate::static_buf!()] would normally setup, but generic
components cannot setup static buffers for types which are
chip-dependent, so those buffers have to be passed in manually, and the
[Component::StaticInput] type makes this possible.Source§type Output = &'static Lpm013m126<'static, VirtualMuxAlarm<'static, A>, P, VirtualSpiMasterDevice<'static, S>>
type Output = &'static Lpm013m126<'static, VirtualMuxAlarm<'static, A>, P, VirtualSpiMasterDevice<'static, S>>
The type (e.g., capsule, peripheral) that this implementation of
[
Component] produces via [Component::finalize()]. This is typically
a static reference (&'static).Source§fn finalize(self, s: Self::StaticInput) -> Self::Output
fn finalize(self, s: Self::StaticInput) -> Self::Output
A factory method that returns an instance of the Output type of this
[
Component] implementation. This is used in the boot sequence to
instantiate and initialize part of the Tock kernel. This factory method
may only be called once per Component instance. Read moreAuto Trait Implementations§
impl<A, P, S> !RefUnwindSafe for Lpm013m126Component<A, P, S>
impl<A, P, S> !Send for Lpm013m126Component<A, P, S>
impl<A, P, S> !Sync for Lpm013m126Component<A, P, S>
impl<A, P, S> !UnwindSafe for Lpm013m126Component<A, P, S>
impl<A, P, S> Freeze for Lpm013m126Component<A, P, S>where
<S as SpiMaster<'static>>::ChipSelect: Freeze,
impl<A, P, S> Unpin for Lpm013m126Component<A, P, S>where
<S as SpiMaster<'static>>::ChipSelect: Unpin,
impl<A, P, S> UnsafeUnpin for Lpm013m126Component<A, P, S>where
<S as SpiMaster<'static>>::ChipSelect: UnsafeUnpin,
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