pub struct AlarmDriver<'a, A: Alarm<'a>> { /* private fields */ }
Implementations§
Source§impl<'a, A: Alarm<'a>> AlarmDriver<'a, A>
impl<'a, A: Alarm<'a>> AlarmDriver<'a, A>
pub const fn new( alarm: &'a A, grant: Grant<AlarmData<A::Ticks>, UpcallCount<NUM_UPCALLS>, AllowRoCount<0>, AllowRwCount<0>>, ) -> AlarmDriver<'a, A>
Trait Implementations§
Source§impl<'a, A: Alarm<'a>> AlarmClient for AlarmDriver<'a, A>
impl<'a, A: Alarm<'a>> AlarmClient for AlarmDriver<'a, A>
Source§impl<'a, A: Alarm<'a>> SyscallDriver for AlarmDriver<'a, A>
impl<'a, A: Alarm<'a>> SyscallDriver for AlarmDriver<'a, A>
Source§fn command(
&self,
cmd_type: usize,
data: usize,
data2: usize,
caller_id: ProcessId,
) -> CommandReturn
fn command( &self, cmd_type: usize, data: usize, data2: usize, caller_id: ProcessId, ) -> CommandReturn
Setup and read the alarm.
§command_num
0
: Driver existence check.1
: Return the clock frequency in Hz.2
: Read the current clock value3
: Stop the alarm if it is outstanding4
: Deprecated5
: Set an alarm to fire at a given clock valuetime
relative tonow
6
: Set an alarm to fire at a given clock valuetime
relative to a provided reference point.
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, A> Freeze for AlarmDriver<'a, A>
impl<'a, A> !RefUnwindSafe for AlarmDriver<'a, A>
impl<'a, A> !Send for AlarmDriver<'a, A>
impl<'a, A> !Sync for AlarmDriver<'a, A>
impl<'a, A> Unpin for AlarmDriver<'a, A>
impl<'a, A> !UnwindSafe for AlarmDriver<'a, 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