#[repr(C)]pub struct MCC152DeviceInfo {
pub NUM_DIO_CHANNELS: u8,
pub NUM_AO_CHANNELS: u8,
pub AO_MIN_CODE: u16,
pub AO_MAX_CODE: u16,
pub AO_MIN_VOLTAGE: f64,
pub AO_MAX_VOLTAGE: f64,
pub AO_MIN_RANGE: f64,
pub AO_MAX_RANGE: f64,
}
Expand description
MCC 152 constant device information.
Fields§
§NUM_DIO_CHANNELS: u8
The number of digital I/O channels (8.)
NUM_AO_CHANNELS: u8
The number of analog output channels (2.)
AO_MIN_CODE: u16
The minimum DAC code (0.)
AO_MAX_CODE: u16
The maximum DAC code (4095.)
AO_MIN_VOLTAGE: f64
The output voltage corresponding to the minimum code (0.0V.)
AO_MAX_VOLTAGE: f64
The output voltage corresponding to the maximum code (+5.0V - 1 LSB.)
AO_MIN_RANGE: f64
The minimum voltage of the output range (0.0V.)
AO_MAX_RANGE: f64
The maximum voltage of the output range (+5.0V.)
Trait Implementations§
Source§impl Clone for MCC152DeviceInfo
impl Clone for MCC152DeviceInfo
Source§fn clone(&self) -> MCC152DeviceInfo
fn clone(&self) -> MCC152DeviceInfo
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 MCC152DeviceInfo
impl Debug for MCC152DeviceInfo
impl Copy for MCC152DeviceInfo
Auto Trait Implementations§
impl Freeze for MCC152DeviceInfo
impl RefUnwindSafe for MCC152DeviceInfo
impl Send for MCC152DeviceInfo
impl Sync for MCC152DeviceInfo
impl Unpin for MCC152DeviceInfo
impl UnwindSafe for MCC152DeviceInfo
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