Enum Dma2Peripheral
pub enum Dma2Peripheral {
USART1_TX,
USART1_RX,
}Expand description
List of peripherals managed by DMA2
Variants§
Implementations§
§impl Dma2Peripheral
impl Dma2Peripheral
pub fn get_stream_irqn(&self) -> u32
pub fn get_stream_idx(&self) -> usize
Trait Implementations§
§impl Clone for Dma2Peripheral
impl Clone for Dma2Peripheral
§fn clone(&self) -> Dma2Peripheral
fn clone(&self) -> Dma2Peripheral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Dma2Peripheral
§impl Debug for Dma2Peripheral
impl Debug for Dma2Peripheral
§impl From<Dma2Peripheral> for StreamId
impl From<Dma2Peripheral> for StreamId
§fn from(pid: Dma2Peripheral) -> StreamId
fn from(pid: Dma2Peripheral) -> StreamId
Converts to this type from the input type.
§impl PartialEq for Dma2Peripheral
impl PartialEq for Dma2Peripheral
§impl StreamPeripheral for Dma2Peripheral
impl StreamPeripheral for Dma2Peripheral
fn transfer_mode(&self) -> TransferMode
fn data_width(&self) -> (Msize, Psize)
fn channel_id(&self) -> ChannelId
fn direction(&self) -> Direction
fn address(&self) -> u32
impl StructuralPartialEq for Dma2Peripheral
Auto Trait Implementations§
impl Freeze for Dma2Peripheral
impl RefUnwindSafe for Dma2Peripheral
impl Send for Dma2Peripheral
impl Sync for Dma2Peripheral
impl Unpin for Dma2Peripheral
impl UnsafeUnpin for Dma2Peripheral
impl UnwindSafe for Dma2Peripheral
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