public AnalogInLatch(DigitalBit Selector_ADC_A0, DigitalBit Selector_ADC_A1, DigitalBit LatchPulseBit) { if ((Selector_ADC_A0 == null) || (Selector_ADC_A1 == null) || (LatchPulseBit == null)) { throw new ArgumentException(); } _Selector_ADC_A0 = Selector_ADC_A0; _Selector_ADC_A1 = Selector_ADC_A1; _LatchPulseBit = LatchPulseBit; }
public ChannelModeSwitch(DigitalBit PulseBit, DigitalBit SetResetBit, DigitalBit SelectorA0, DigitalBit SelectorA1) { if ((PulseBit == null) || (SetResetBit == null) && (SelectorA0 == null) || (SelectorA1 == null)) { throw new ArgumentNullException(); } _pulseBit = PulseBit; _setResetBit = SetResetBit; _SelectorA0 = SelectorA0; _SelectorA1 = SelectorA1; }