Trait stm32f4xx_hal::Listen

source ·
pub trait Listen {
    type Event: BitFlag;

    // Required methods
    fn listen(&mut self, event: impl Into<BitFlags<Self::Event>>);
    fn listen_only(&mut self, event: impl Into<BitFlags<Self::Event>>);
    fn unlisten(&mut self, event: impl Into<BitFlags<Self::Event>>);

    // Provided methods
    fn listen_all(&mut self) { ... }
    fn unlisten_all(&mut self) { ... }
}

Required Associated Types§

source

type Event: BitFlag

Enum of bit flags associated with events

Required Methods§

source

fn listen(&mut self, event: impl Into<BitFlags<Self::Event>>)

Start listening for Events

Note, you will also have to enable the appropriate interrupt in the NVIC to start receiving events.

source

fn listen_only(&mut self, event: impl Into<BitFlags<Self::Event>>)

Start listening for Events, stop all other

Note, you will also have to enable the appropriate interrupt in the NVIC to start receiving events.

source

fn unlisten(&mut self, event: impl Into<BitFlags<Self::Event>>)

Stop listening for Events

Provided Methods§

source

fn listen_all(&mut self)

Start listening all Events

source

fn unlisten_all(&mut self)

Stop listening all Events

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I: Instance, const S: u8> Listen for StreamX<I, S>
where Self: Sealed + StreamISR,

source§

impl<SPI: Instance> Listen for Inner<SPI>

§

type Event = Event

source§

impl<TIM: Instance> Listen for Timer<TIM>

§

type Event = Event

source§

impl<TIM: Instance, const FREQ: u32> Listen for FTimer<TIM, FREQ>

§

type Event = Event

source§

impl<UART, WORD> Listen for Serial<UART, WORD>
where UART: Deref<Target = <UART as Instance>::RegisterBlock> + Instance,

§

type Event = Event