aboutsummaryrefslogtreecommitdiffstats
path: root/example/scenarios
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-03-08 20:54:56 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-03-15 19:54:36 +0100
commit19c508c3047c0a4e40507583bbf75ba1aea53037 (patch)
treead04e15a250208e927d839c9d6f015b88918b281 /example/scenarios
parent651cdc9b0f0cdf36e636ffb8a1fd90877dc569df (diff)
Introduce PowerSupply interface and PowerSupplySispm
File powersupply.py defines the interface to be used by child classes implementing it. It also provides helpers to allocate a child class based on configuration provided ('type' field). File powersupply_sispm.py is an implementation using pysispm [1], as it's the one used to control the programmable power socket we have right now. This kind of class will be used in later commits by Nanobts class, as we want to poweroff the Nanobts completelly when not in use. Using it requires the following extra dependencies: $ apt-get install python3-usb $ pip3 install pysispm Related: OS#3040 [1] https://github.com/xypron/pysispm Change-Id: I981c260eca1a61657147e6d83b4226618088223c
Diffstat (limited to 'example/scenarios')
0 files changed, 0 insertions, 0 deletions