pub struct Conversion {
pub command: CommandId,
pub loop_channel_index: u8,
pub trigger_id_source: u8,
pub conv_value: u16,
}Expand description
Result of an ADC conversion.
Contains the conversion value and metadata about the conversion.
Fields§
§command: CommandIdThe command that performed this conversion
loop_channel_index: u8For a looping command, the loop index. For a multichannel command, the channel index.
trigger_id_source: u8The trigger that triggered the command to run
conv_value: u16The raw value from the ADC
Trait Implementations§
Source§impl Clone for Conversion
impl Clone for Conversion
Source§fn clone(&self) -> Conversion
fn clone(&self) -> Conversion
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 Conversion
impl Debug for Conversion
Source§impl Format for Conversion
impl Format for Conversion
Source§impl PartialEq for Conversion
impl PartialEq for Conversion
impl Copy for Conversion
impl Eq for Conversion
impl StructuralPartialEq for Conversion
Auto Trait Implementations§
impl Freeze for Conversion
impl RefUnwindSafe for Conversion
impl Send for Conversion
impl Sync for Conversion
impl Unpin for Conversion
impl UnwindSafe for Conversion
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