pub enum Data<PCFG> {
DacValue(u16),
OutputRange(OutputRange),
Control(Config),
PowerControl(PCFG),
None,
}Expand description
Data to send to this device
Variants§
DacValue(u16)
A dac value
OutputRange(OutputRange)
A range selection for a dac channel
Control(Config)
Device configuration
PowerControl(PCFG)
Power control settings
None
No data (for NOP/LOAD/CLEAR functions)
Trait Implementations§
Auto Trait Implementations§
impl<PCFG> Freeze for Data<PCFG>where
PCFG: Freeze,
impl<PCFG> RefUnwindSafe for Data<PCFG>where
PCFG: RefUnwindSafe,
impl<PCFG> Send for Data<PCFG>where
PCFG: Send,
impl<PCFG> Sync for Data<PCFG>where
PCFG: Sync,
impl<PCFG> Unpin for Data<PCFG>where
PCFG: Unpin,
impl<PCFG> UnsafeUnpin for Data<PCFG>where
PCFG: UnsafeUnpin,
impl<PCFG> UnwindSafe for Data<PCFG>where
PCFG: UnwindSafe,
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