Lines Matching refs:bit
127 def __init__(self, bit, signals, pin_first, pin_last): argument
130 self.bit = bit
147 def enable_bit(self, bit, pins): argument
148 if len(pins) != len(bit.signals):
163 self.value |= 1 << bit.bit
166 for bit in self.bits:
175 if mux.signal not in bit.signals:
179 if mux.pin < bit.pin_first or mux.pin > bit.pin_last:
180 raise Exception("can't mux signal to pin", mux, bit)
188 if len(signal_muxs.keys()) != len(bit.signals):
189 raise Exception("missing signals for bit", bit, signal_muxs)
193 for _index, signal in enumerate(bit.signals):
197 self.enable_bit(bit, pins)