Skip to main content

Data

Enum Data 

Source
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§

Source§

impl<PCFG: Debug> Debug for Data<PCFG>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.