Struct capsules_core::low_level_debug::LowLevelDebug
source · pub struct LowLevelDebug<'u, U: Transmit<'u>> { /* private fields */ }
Implementations§
source§impl<'u, U: Transmit<'u>> LowLevelDebug<'u, U>
impl<'u, U: Transmit<'u>> LowLevelDebug<'u, U>
pub fn new( buffer: &'static mut [u8], uart: &'u U, grant: Grant<AppData, UpcallCount<0>, AllowRoCount<0>, AllowRwCount<0>> ) -> LowLevelDebug<'u, U>
Trait Implementations§
source§impl<'u, U: Transmit<'u>> SyscallDriver for LowLevelDebug<'u, U>
impl<'u, U: Transmit<'u>> SyscallDriver for LowLevelDebug<'u, U>
source§fn command(
&self,
minor_num: usize,
r2: usize,
r3: usize,
caller_id: ProcessId
) -> CommandReturn
fn command( &self, minor_num: usize, r2: usize, r3: usize, caller_id: ProcessId ) -> CommandReturn
System call for a process to perform a short synchronous operation
or start a long-running split-phase operation (whose completion
is signaled with an upcall). Command 0 is a reserved command to
detect if a peripheral system call driver is installed and must
always return a CommandReturn::Success.
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<'u, U: Transmit<'u>> TransmitClient for LowLevelDebug<'u, U>
impl<'u, U: Transmit<'u>> TransmitClient for LowLevelDebug<'u, U>
source§fn transmitted_buffer(
&self,
tx_buffer: &'static mut [u8],
_tx_len: usize,
_rval: Result<(), ErrorCode>
)
fn transmitted_buffer( &self, tx_buffer: &'static mut [u8], _tx_len: usize, _rval: Result<(), ErrorCode> )
A call to
Transmit::transmit_buffer
completed. The Result<(), ErrorCode>
indicates whether the buffer was successfully transmitted. A call
to transmit_word
or transmit_buffer
made within this callback
SHOULD NOT return BUSY: when this callback is made the UART should
be ready to receive another call. Read moresource§fn transmitted_word(&self, _rval: Result<(), ErrorCode>)
fn transmitted_word(&self, _rval: Result<(), ErrorCode>)
A call to
Transmit::transmit_word
completed. The Result<(), ErrorCode>
indicates whether the word was successfully transmitted. A call
to transmit_word
or transmit_buffer
made within this callback
SHOULD NOT return BUSY: when this callback is made the UART should
be ready to receive another call. Read moreAuto Trait Implementations§
impl<'u, U> !Freeze for LowLevelDebug<'u, U>
impl<'u, U> !RefUnwindSafe for LowLevelDebug<'u, U>
impl<'u, U> !Send for LowLevelDebug<'u, U>
impl<'u, U> !Sync for LowLevelDebug<'u, U>
impl<'u, U> Unpin for LowLevelDebug<'u, U>
impl<'u, U> !UnwindSafe for LowLevelDebug<'u, U>
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