pub enum WatchdogChannels {
All,
Single(u8),
Channels(u32),
}Expand description
Channel selection passed into Adc::enable_watchdog.
Variants§
All
Monitor all channels in the regular sequence.
Only valid with WatchdogIndex::Awd1.
Single(u8)
Monitor a single specific channel.
Valid for all three watchdogs.
Channels(u32)
Monitor a bitmask of channels (bit N = channel N).
Only valid with WatchdogIndex::Awd2 and WatchdogIndex::Awd3.
On STM32WBA: bits 0–13 (14 channels). On STM32U5: bits 0–23 (24 channels).
Trait Implementations§
Source§impl Clone for WatchdogChannels
impl Clone for WatchdogChannels
Source§fn clone(&self) -> WatchdogChannels
fn clone(&self) -> WatchdogChannels
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatchdogChannels
impl Debug for WatchdogChannels
Source§impl Format for WatchdogChannels
impl Format for WatchdogChannels
impl Copy for WatchdogChannels
Auto Trait Implementations§
impl Freeze for WatchdogChannels
impl RefUnwindSafe for WatchdogChannels
impl Send for WatchdogChannels
impl Sync for WatchdogChannels
impl Unpin for WatchdogChannels
impl UnwindSafe for WatchdogChannels
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