pub struct DeviceImpl<A, R: RawMutex = UnsyncPanickingRawMutex, P: AbstractRcT = RcT> { /* private fields */ }
Implementations§
Source§impl<A: AbstractBounceBufferAllocator, R: RawMutex, P: AbstractRcT> DeviceImpl<A, R, P>
impl<A: AbstractBounceBufferAllocator, R: RawMutex, P: AbstractRcT> DeviceImpl<A, R, P>
pub fn new( raw_mutex: R, dma_region: ExternallySharedRef<'static, [u8]>, bounce_buffer_allocator: BounceBufferAllocator<A>, rx_ring_buffers: RingBuffers<'static, Provide, fn()>, tx_ring_buffers: RingBuffers<'static, Provide, fn()>, num_rx_buffers: usize, rx_buffer_size: usize, caps: DeviceCapabilities, ) -> Result<Self, Error>
pub fn poll(&self) -> bool
pub fn can_receive(&self) -> bool
pub fn can_transmit(&self) -> bool
Trait Implementations§
Source§impl<A, R: RawMutex, P: AbstractRcT> Clone for DeviceImpl<A, R, P>
impl<A, R: RawMutex, P: AbstractRcT> Clone for DeviceImpl<A, R, P>
Source§impl<A: AbstractBounceBufferAllocator, R: RawMutex, P: AbstractRcT> Device for DeviceImpl<A, R, P>
impl<A: AbstractBounceBufferAllocator, R: RawMutex, P: AbstractRcT> Device for DeviceImpl<A, R, P>
type RxToken<'a> = RxToken<A, R, P> where A: 'a, R: 'a, P: 'a
type TxToken<'a> = TxToken<A, R, P> where A: 'a, R: 'a, P: 'a
Source§fn capabilities(&self) -> DeviceCapabilities
fn capabilities(&self) -> DeviceCapabilities
Get a description of device capabilities.
Auto Trait Implementations§
impl<A, R, P> Freeze for DeviceImpl<A, R, P>
impl<A, R, P> RefUnwindSafe for DeviceImpl<A, R, P>
impl<A, R, P> Send for DeviceImpl<A, R, P>
impl<A, R, P> Sync for DeviceImpl<A, R, P>
impl<A, R, P> Unpin for DeviceImpl<A, R, P>
impl<A, R, P> UnwindSafe for DeviceImpl<A, R, P>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)