pub enum CntCfg {
Cnt1Bit24(CntSetup),
Cnt2Bit24(CntSetup, CntSetup),
Cnt1Bit48(CntSetup),
Cnt1Bit16(CntSetup),
Cnt1Bit32(CntSetup),
Cnt2Bit32Bit16(CntSetup, CntSetup),
Cnt2Bit16(CntSetup, CntSetup),
Cnt3Bit16(CntSetup, CntSetup, CntSetup),
}Expand description
Counter configuration
The iC-MD can be configured for 1 up to 3 channels with counter lengths of 16 to 48 bits. Each counter can furthermore be specified to count in clockwise or counterclockwise direction. Finally, you can also configure if the Z signal is normal or inverted. For the setup with three counters, the Z signal setup will simply be ignored as there are no connections for Z signals available. See datasheet for more information.
If you enable the defmt feature, this enum will contain a defmt::Format
implementation for logging the current configuration.
Variants§
Cnt1Bit24(CntSetup)
Counter 0 = 24 bit; 1 counter; TTL, RS422, or LVDS
Cnt2Bit24(CntSetup, CntSetup)
Counter 0 = 24 bit and Counter 1 = 24 bit; 2 counters; TTL only
Cnt1Bit48(CntSetup)
Counter 0 = 48 bit; 1 counter; TTL, RS422, or LVDS
Cnt1Bit16(CntSetup)
Counter 0 = 16 bit; 1 counter; TTL, RS422, or LVDS
Cnt1Bit32(CntSetup)
Counter 0 = 32 bit; 1 counter; TTL, RS422, or LVDS
Cnt2Bit32Bit16(CntSetup, CntSetup)
Counter 0 = 32 bit and Counter 1 = 16 bit; 2 counters; TTL only
Cnt2Bit16(CntSetup, CntSetup)
Counter 0 = 16 bit and Counter 1 = 16 bit; 2 counters; TTL only
Cnt3Bit16(CntSetup, CntSetup, CntSetup)
Counter 0 = 16 bit, Counter 1 = 16 bit, and Counter 2 = 16 bit; 3 counters; TTL only