labgrid.util.agents package

Submodules

labgrid.util.agents.deditec_relais8 module

labgrid.util.agents.dummy module

labgrid.util.agents.dummy.handle_neg(value)[source]

labgrid.util.agents.sysfsgpio module

This module implements switching GPIOs via sysfs GPIO kernel interface.

Takes an integer property ‘index’ which refers to the already exported GPIO device.

class labgrid.util.agents.sysfsgpio.GpioDigitalOutput(index)[source]

Bases: object

__init__(index)[source]

Initialize self. See help(type(self)) for accurate signature.

__del__()[source]
get()[source]
set(status)[source]
__dict__ = mappingproxy({'__module__': 'labgrid.util.agents.sysfsgpio', '_gpio_sysfs_path_prefix': '/sys/class/gpio', '_buffered_file_access': False, '_assert_gpio_line_is_exported': <staticmethod object>, '__init__': <function GpioDigitalOutput.__init__>, '__del__': <function GpioDigitalOutput.__del__>, 'get': <function GpioDigitalOutput.get>, 'set': <function GpioDigitalOutput.set>, '__dict__': <attribute '__dict__' of 'GpioDigitalOutput' objects>, '__weakref__': <attribute '__weakref__' of 'GpioDigitalOutput' objects>, '__doc__': None})
__module__ = 'labgrid.util.agents.sysfsgpio'
__weakref__

list of weak references to the object (if defined)

labgrid.util.agents.sysfsgpio.handle_set(index, status)[source]
labgrid.util.agents.sysfsgpio.handle_get(index)[source]