Struct stm32f3xx_hal::dma::dma1::C3

source ·
pub struct C3 { /* private fields */ }
Expand description

Singleton that represents a DMA channel

Trait Implementations§

source§

impl Channel for C3

source§

fn is_event_triggered(&self, event: Event) -> bool

Is the interrupt flag for the given event set?
source§

fn clear_event(&mut self, event: Event)

Clear the interrupt flag for the given event. Read more
source§

fn clear_events(&mut self)

Clear all interrupt event flags
source§

fn reset(&mut self)

Reset the control registers of this channel. This stops any ongoing transfers.
source§

unsafe fn set_peripheral_address(&mut self, address: u32, inc: Increment)

Set the base address of the peripheral data register from/to which the data will be read/written. Read more
source§

unsafe fn set_memory_address(&mut self, address: u32, inc: Increment)

Set the base address of the memory area from/to which the data will be read/written. Read more
source§

fn set_transfer_length(&mut self, len: u16)

Set the number of words to transfer. Read more
source§

fn set_word_size<W>(&mut self)

Set the word size. Read more
source§

fn set_priority_level(&mut self, priority: Priority)

Set the priority level of this channel
source§

fn set_direction(&mut self, direction: Direction)

Set the transfer direction
source§

fn configure_intterupt(&mut self, event: Event, enable: bool)

Enable or disable the interrupt for the specified Event.
source§

fn enable_interrupt(&mut self, event: Event)

Enable the interrupt for the given Event.
source§

fn disable_interrupt(&mut self, event: Event)

Disable the interrupt for the given Event.
source§

fn enable(&mut self)

Start a transfer
source§

fn disable(&mut self)

Stop the current transfer
source§

fn is_enabled(&self) -> bool

Is there a transfer in progress on this channel?
source§

impl Debug for C3

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Tx, Rx> OnChannel<C3> for Serial<USART3, (Tx, Rx)>

Auto Trait Implementations§

§

impl RefUnwindSafe for C3

§

impl Send for C3

§

impl Sync for C3

§

impl Unpin for C3

§

impl UnwindSafe for C3

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.