예제 #1
0
 def clearUpSource(self):
     """Disable the up counting source to the counter."""
     if self.upSource is not None and self.allocatedUpSource:
         self.upSource.free()
         self.allocatedUpSource = False
     self.upSource = None
     hal.clearCounterUpSource(self._counter)
예제 #2
0
def _freeCounter(counter):
    hal.setCounterUpdateWhenEmpty(counter, True)
    hal.clearCounterUpSource(counter)
    hal.clearCounterDownSource(counter)
    hal.freeCounter(counter)
예제 #3
0
def _freeCounter(counter):
    hal.setCounterUpdateWhenEmpty(counter, True)
    hal.clearCounterUpSource(counter)
    hal.clearCounterDownSource(counter)
    hal.freeCounter(counter)