def setAverageBits(self, bits): """Set the number of averaging bits. This sets the number of averaging bits. The actual number of averaged samples is 2^bits. The averaging is done automatically in the FPGA. :param bits: The number of averaging bits. """ hal.setAnalogAverageBits(self.port, bits)