#[repr(C)]pub struct MCC172DeviceInfo {
pub NUM_AI_CHANNELS: u8,
pub AI_MIN_CODE: i32,
pub AI_MAX_CODE: i32,
pub AI_MIN_VOLTAGE: f64,
pub AI_MAX_VOLTAGE: f64,
pub AI_MIN_RANGE: f64,
pub AI_MAX_RANGE: f64,
}
Expand description
MCC 172 constant device information.
Fields§
§NUM_AI_CHANNELS: u8
The number of analog input channels (2.)
AI_MIN_CODE: i32
The minimum ADC code (-8,388,608.)
AI_MAX_CODE: i32
The maximum ADC code (8,388,607.)
AI_MIN_VOLTAGE: f64
The input voltage corresponding to the minimum code (-5.0V.)
AI_MAX_VOLTAGE: f64
The input voltage corresponding to the maximum code (+5.0V - 1 LSB.)
AI_MIN_RANGE: f64
The minimum voltage of the input range (-5.0V.)
AI_MAX_RANGE: f64
The maximum voltage of the input range (+5.0V.)
Trait Implementations§
Source§impl Clone for MCC172DeviceInfo
impl Clone for MCC172DeviceInfo
Source§fn clone(&self) -> MCC172DeviceInfo
fn clone(&self) -> MCC172DeviceInfo
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 MCC172DeviceInfo
impl Debug for MCC172DeviceInfo
impl Copy for MCC172DeviceInfo
Auto Trait Implementations§
impl Freeze for MCC172DeviceInfo
impl RefUnwindSafe for MCC172DeviceInfo
impl Send for MCC172DeviceInfo
impl Sync for MCC172DeviceInfo
impl Unpin for MCC172DeviceInfo
impl UnwindSafe for MCC172DeviceInfo
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