def getAll(self): """Read all 8 solenoids from the module used by this solenoid as a single byte. :returns: The current value of all 8 solenoids on this module. """ return hal.getAllSolenoids(self.moduleNumber)
def getAll(self): """Read all 8 solenoids from the module used by this solenoid as a single byte. :returns: The current value of all 8 solenoids on this module. """ with self.mutex: return hal.getAllSolenoids(self.moduleNumber)
def getAll(self): """Read all 8 solenoids from the module used by this solenoid as a single byte. :returns: The current value of all 8 solenoids on this module. """ with self.mutex: return hal.getAllSolenoids(self.ports[0])
def getAll(moduleNumber): """Read all 8 solenoids from the specified module as a single byte. :param moduleNumber: in a static context, the module number to read. otherwise don't provide it. :returns: The current value of all 8 solenoids on the module. """ if isinstance(moduleNumber, SolenoidBase): moduleNumber = moduleNumber.moduleNumber return hal.getAllSolenoids(moduleNumber)
def getAll(moduleNumber: Union[int, "SolenoidBase"]) -> int: """Read all 8 solenoids from the specified module as a single byte. :param moduleNumber: in a static context, the module number to read. otherwise don't provide it. :returns: The current value of all 8 solenoids on the module. """ if isinstance(moduleNumber, SolenoidBase): moduleNumber = moduleNumber.moduleNumber return hal.getAllSolenoids(moduleNumber)