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