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 (and injected) sequence.
Only valid with WatchdogIndex::Awd1.
Single(u8)
Monitor a single specific channel.
Valid for all watchdogs.
Channels(u32)
Monitor a bitmask of channels (bit N = channel N).
Only valid with WatchdogIndex::Awd2 and WatchdogIndex::Awd3.
Implementations§
Source§impl WatchdogChannels
impl WatchdogChannels
Sourcepub fn from_channel<'d, T>(channel: &impl AdcChannel<'d, T>) -> Self
pub fn from_channel<'d, T>(channel: &impl AdcChannel<'d, T>) -> Self
Monitor channel.
Sourcepub fn add_channel<'d, T>(self, channel: &impl AdcChannel<'d, T>) -> Self
pub fn add_channel<'d, T>(self, channel: &impl AdcChannel<'d, T>) -> Self
Also monitor channel.
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 (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 WatchdogChannels
Source§impl Debug for WatchdogChannels
impl Debug for WatchdogChannels
impl Eq for WatchdogChannels
Source§impl Format for WatchdogChannels
impl Format for WatchdogChannels
Source§impl PartialEq for WatchdogChannels
impl PartialEq for WatchdogChannels
impl StructuralPartialEq 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 UnsafeUnpin for WatchdogChannels
impl UnwindSafe for WatchdogChannels
Blanket Implementations§
impl<T, I> Binding<I, NoHandler<I>> for T
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