pub struct SpiSyscallPComponent<S: 'static + SpiSlave<'static>> { /* private fields */ }
Implementations§
Source§impl<S: 'static + SpiSlave<'static>> SpiSyscallPComponent<S>
impl<S: 'static + SpiSlave<'static>> SpiSyscallPComponent<S>
pub fn new( board_kernel: &'static Kernel, slave: &'static S, driver_num: usize, ) -> Self
Trait Implementations§
Source§impl<S: 'static + SpiSlave<'static>> Component for SpiSyscallPComponent<S>
impl<S: 'static + SpiSlave<'static>> Component for SpiSyscallPComponent<S>
Source§type StaticInput = (&'static mut MaybeUninit<SpiSlaveDevice<'static, S>>, &'static mut MaybeUninit<SpiPeripheral<'static, SpiSlaveDevice<'static, S>>>, &'static mut MaybeUninit<[u8; 1024]>, &'static mut MaybeUninit<[u8; 1024]>)
type StaticInput = (&'static mut MaybeUninit<SpiSlaveDevice<'static, S>>, &'static mut MaybeUninit<SpiPeripheral<'static, SpiSlaveDevice<'static, S>>>, &'static mut MaybeUninit<[u8; 1024]>, &'static mut MaybeUninit<[u8; 1024]>)
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 SpiPeripheral<'static, SpiSlaveDevice<'static, S>>
type Output = &'static SpiPeripheral<'static, SpiSlaveDevice<'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, static_buffer: Self::StaticInput) -> Self::Output
fn finalize(self, static_buffer: Self::StaticInput) -> Self::Output
Auto Trait Implementations§
impl<S> Freeze for SpiSyscallPComponent<S>
impl<S> !RefUnwindSafe for SpiSyscallPComponent<S>
impl<S> !Send for SpiSyscallPComponent<S>
impl<S> !Sync for SpiSyscallPComponent<S>
impl<S> Unpin for SpiSyscallPComponent<S>
impl<S> !UnwindSafe for SpiSyscallPComponent<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