pub struct Nrf51822Serialization<'a> { /* private fields */ }
Implementations§
source§impl<'a> Nrf51822Serialization<'a>
impl<'a> Nrf51822Serialization<'a>
pub fn new( uart: &'a dyn UartAdvanced<'a>, grant: Grant<App, UpcallCount<{ upcall::COUNT }>, AllowRoCount<{ ro_allow::COUNT }>, AllowRwCount<{ rw_allow::COUNT }>>, reset_pin: &'a dyn Pin, tx_buffer: &'static mut [u8], rx_buffer: &'static mut [u8], ) -> Nrf51822Serialization<'a>
pub fn initialize(&self)
pub fn reset(&self)
Trait Implementations§
source§impl ReceiveClient for Nrf51822Serialization<'_>
impl ReceiveClient for Nrf51822Serialization<'_>
source§fn received_buffer(
&self,
buffer: &'static mut [u8],
rx_len: usize,
_rcode: Result<(), ErrorCode>,
_error: Error,
)
fn received_buffer( &self, buffer: &'static mut [u8], rx_len: usize, _rcode: Result<(), ErrorCode>, _error: Error, )
A call to
Receive::receive_buffer
completed. Read moresource§fn received_word(&self, _word: u32, _rcode: Result<(), ErrorCode>, _err: Error)
fn received_word(&self, _word: u32, _rcode: Result<(), ErrorCode>, _err: Error)
A call to
Receive::receive_word
completed. Read moresource§impl SyscallDriver for Nrf51822Serialization<'_>
impl SyscallDriver for Nrf51822Serialization<'_>
source§fn command(
&self,
command_type: usize,
arg1: usize,
_: usize,
processid: ProcessId,
) -> CommandReturn
fn command( &self, command_type: usize, arg1: usize, _: usize, processid: ProcessId, ) -> CommandReturn
Issue a command to the Nrf51822Serialization driver.
§command_type
0
: Driver existence check.1
: Send the allowed buffer to the nRF.2
: Received from the nRF into the allowed buffer.3
: Reset the nRF51822.
source§fn allocate_grant(&self, processid: ProcessId) -> Result<(), Error>
fn allocate_grant(&self, processid: ProcessId) -> Result<(), Error>
Request to allocate a capsule’s grant for a specific process. Read more
source§fn allow_userspace_readable(
&self,
app: ProcessId,
which: usize,
slice: ReadWriteProcessBuffer,
) -> Result<ReadWriteProcessBuffer, (ReadWriteProcessBuffer, ErrorCode)>
fn allow_userspace_readable( &self, app: ProcessId, which: usize, slice: ReadWriteProcessBuffer, ) -> Result<ReadWriteProcessBuffer, (ReadWriteProcessBuffer, ErrorCode)>
System call for a process to pass a buffer (a
UserspaceReadableProcessBuffer
) to the kernel that the kernel can
either read or write. The kernel calls this method only after it checks
that the entire buffer is within memory the process can both read and
write. Read moresource§impl TransmitClient for Nrf51822Serialization<'_>
impl TransmitClient for Nrf51822Serialization<'_>
source§fn transmitted_buffer(
&self,
buffer: &'static mut [u8],
_tx_len: usize,
_rcode: Result<(), ErrorCode>,
)
fn transmitted_buffer( &self, buffer: &'static mut [u8], _tx_len: usize, _rcode: Result<(), ErrorCode>, )
A call to
Transmit::transmit_buffer
completed. Read moresource§fn transmitted_word(&self, _rcode: Result<(), ErrorCode>)
fn transmitted_word(&self, _rcode: Result<(), ErrorCode>)
A call to
Transmit::transmit_word
completed. Read moreAuto Trait Implementations§
impl<'a> !Freeze for Nrf51822Serialization<'a>
impl<'a> !RefUnwindSafe for Nrf51822Serialization<'a>
impl<'a> !Send for Nrf51822Serialization<'a>
impl<'a> !Sync for Nrf51822Serialization<'a>
impl<'a> Unpin for Nrf51822Serialization<'a>
impl<'a> !UnwindSafe for Nrf51822Serialization<'a>
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