pub struct RadioDriver<'a, R: Radio<'a>> { /* private fields */ }
Implementations§
Source§impl<'a, R: Radio<'a>> RadioDriver<'a, R>
impl<'a, R: Radio<'a>> RadioDriver<'a, R>
pub fn new( radio: &'a R, grant: Grant<App, UpcallCount<{ upcall::COUNT }>, AllowRoCount<{ ro_allow::COUNT }>, AllowRwCount<{ rw_allow::COUNT }>>, kernel_tx: &'static mut [u8], ) -> Self
Trait Implementations§
Source§impl<'a, R: Radio<'a>> ConfigClient for RadioDriver<'a, R>
impl<'a, R: Radio<'a>> ConfigClient for RadioDriver<'a, R>
Source§impl<'a, R: Radio<'a>> PowerClient for RadioDriver<'a, R>
impl<'a, R: Radio<'a>> PowerClient for RadioDriver<'a, R>
Source§impl<'a, R: Radio<'a>> RxClient for RadioDriver<'a, R>
impl<'a, R: Radio<'a>> RxClient for RadioDriver<'a, R>
Source§impl<'a, R: Radio<'a>> SyscallDriver for RadioDriver<'a, R>
impl<'a, R: Radio<'a>> SyscallDriver for RadioDriver<'a, R>
Source§fn command(
&self,
command_number: usize,
arg1: usize,
arg2: usize,
processid: ProcessId,
) -> CommandReturn
fn command( &self, command_number: usize, arg1: usize, arg2: usize, processid: ProcessId, ) -> CommandReturn
IEEE 802.15.4 low-level control.
§command_num
0
: Driver existence check.1
: Return radio status. Ok(())/OFF = on/off.2
: Set short address.4
: Set PAN ID.5
: Set channel.6
: Set transmission power.7
: Commit any configuration changes.8
: Get the short MAC address.10
: Get the PAN ID.11
: Get the channel.12
: Get the transmission power.27
: Transmit a frame. The frame must be stored in the write RO allow buffer 0. The allowed buffer must be the length of the frame. The frame includes the PDSU (i.e., the MAC payload) without the MFR (i.e., CRC) bytes.28
: Set long address.29
: Get the long MAC address.30
: Turn the radio on.31
: Turn the radio off.
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 moreAuto Trait Implementations§
impl<'a, R> !Freeze for RadioDriver<'a, R>
impl<'a, R> !RefUnwindSafe for RadioDriver<'a, R>
impl<'a, R> !Send for RadioDriver<'a, R>
impl<'a, R> !Sync for RadioDriver<'a, R>
impl<'a, R> Unpin for RadioDriver<'a, R>
impl<'a, R> !UnwindSafe for RadioDriver<'a, R>
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