pub enum CntCount {
Cnt1Bit24(i32),
Cnt2Bit24(i32, i32),
Cnt1Bit48(i64),
Cnt1Bit16(i16),
Cnt1Bit32(i32),
Cnt2Bit32Bit16(i16, i32),
Cnt2Bit16(i16, i16),
Cnt3Bit16(i16, i16, i16),
}Expand description
Represent the counter values for different configurations of the iC-MD quadrature counter.
If more than one counter value is present, the counter values are always in the order of Counter 0, Counter 1, and Counter 2. Note: The size of the returned value depends on the configuration of the counter!
Variants§
Cnt1Bit24(i32)
Counter return value for configuration counter 0 = 24 bit; 1 counter; TTL, RS422, or LVDS
Cnt2Bit24(i32, i32)
Counter return value for configuration counter 0 = 24 bit and Counter 1 = 24 bit; 2 counters; TTL only
Cnt1Bit48(i64)
Counter return value for configuration counter 0 = 48 bit; 1 counter; TTL, RS422, or LVDS
Cnt1Bit16(i16)
Counter return value for configuration counter 0 = 16 bit; 1 counter; TTL, RS422, or LVDS
Cnt1Bit32(i32)
Counter return value for configuration counter 0 = 32 bit; 1 counter; TTL, RS422, or LVDS
Cnt2Bit32Bit16(i16, i32)
Counter return value for configuration counter 0 = 32 bit and Counter 1 = 16 bit; 2 counters; TTL only
Cnt2Bit16(i16, i16)
Counter return value for configuration counter 0 = 16 bit and Counter 1 = 16 bit; 2 counters; TTL only
Cnt3Bit16(i16, i16, i16)
Counter return value for configuration counter 0 = 16 bit, Counter 1 = 16 bit, and Counter 2 = 16 bit; 3 counters; TTL only
Implementations§
Source§impl CntCount
impl CntCount
Sourcepub fn get_cnt0(&self) -> Option<i64>
pub fn get_cnt0(&self) -> Option<i64>
Get the value of the counter zero
If it exists, this will return Some(value). Otherwise it will return None. For counter
zero, this will always exist, as it is always configured.