Lines Matching refs:bit_value
108 def _computeLEDmask(self, bit_value, failure, warning):
121 if bit_value < 0 or bit_value > 15:
122 raise PcaError('Error: bit_value out of range [0, 15]')
124 bit_mask = bit_value
152 def setLEDs(self, bit_value, failure, warning):
170 An example: bit_value=9, failure=False, warning=True
173 3) bit_value=9 -> turn on LEDs 1, 2
181 bit_value: an integer between 0 and 15, representing 4-bit binary
189 logging.info('Attempt to set LED values: bit_value=%r, failure=%r, '
190 'warning=%r', bit_value, failure, warning)
194 bit_mask = self._computeLEDmask(bit_value, failure, warning)
231 bit_value: an integer between 0 and 15, representing 4-bit binary
237 bit_value = -1
247 bit_value = byte_read & 0xf # Get lower 4-bit value
248 logging.info('LED bit_value = %r, failure = %r, warning = %r',
249 bit_value, failure, warning)
254 return (ret, bit_value, failure, warning)