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§
Required Methods§
sourcefn listen(&mut self, event: impl Into<BitFlags<Self::Event>>)
fn listen(&mut self, event: impl Into<BitFlags<Self::Event>>)
Start listening for Event
s
Note, you will also have to enable the appropriate interrupt in the NVIC to start receiving events.
sourcefn listen_only(&mut self, event: impl Into<BitFlags<Self::Event>>)
fn listen_only(&mut self, event: impl Into<BitFlags<Self::Event>>)
Start listening for Event
s, stop all other
Note, you will also have to enable the appropriate interrupt in the NVIC to start receiving events.
Provided Methods§
sourcefn listen_all(&mut self)
fn listen_all(&mut self)
Start listening all Event
s
sourcefn unlisten_all(&mut self)
fn unlisten_all(&mut self)
Stop listening all Event
s
Object Safety§
This trait is not object safe.