Enum Dma1Peripheral
pub enum Dma1Peripheral {
USART2_TX,
USART2_RX,
USART3_TX,
USART3_RX,
SPI3_TX,
SPI3_RX,
}Expand description
List of peripherals managed by DMA1
Variants§
Implementations§
§impl Dma1Peripheral
impl Dma1Peripheral
pub fn get_stream_irqn(&self) -> u32
pub fn get_stream_idx(&self) -> usize
Trait Implementations§
§impl Clone for Dma1Peripheral
impl Clone for Dma1Peripheral
§fn clone(&self) -> Dma1Peripheral
fn clone(&self) -> Dma1Peripheral
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 Dma1Peripheral
§impl Debug for Dma1Peripheral
impl Debug for Dma1Peripheral
§impl From<Dma1Peripheral> for StreamId
impl From<Dma1Peripheral> for StreamId
§fn from(pid: Dma1Peripheral) -> StreamId
fn from(pid: Dma1Peripheral) -> StreamId
Converts to this type from the input type.
§impl PartialEq for Dma1Peripheral
impl PartialEq for Dma1Peripheral
§impl StreamPeripheral for Dma1Peripheral
impl StreamPeripheral for Dma1Peripheral
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 Dma1Peripheral
Auto Trait Implementations§
impl Freeze for Dma1Peripheral
impl RefUnwindSafe for Dma1Peripheral
impl Send for Dma1Peripheral
impl Sync for Dma1Peripheral
impl Unpin for Dma1Peripheral
impl UnsafeUnpin for Dma1Peripheral
impl UnwindSafe for Dma1Peripheral
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