This commit is contained in:
Andrew Kay
2020-03-18 21:12:01 -05:00
parent 5f2dfeb5ec
commit d50f4f5030
4 changed files with 321 additions and 0 deletions

19
pycoax/coax/interface.py Normal file
View File

@@ -0,0 +1,19 @@
"""
coax.interface
~~~~~~~~~~~~~~
"""
class Interface:
def reset(self):
raise NotImplementedError
def transmit(self, words, repeat_count=None, repeat_offset=1):
raise NotImplementedError
def receive(self, length=None, timeout=None):
raise NotImplementedError
def transmit_receive(self, transmit_words, transmit_repeat_count=None,
transmit_repeat_offset=1, receive_length=None,
receive_timeout=None):
raise NotImplementedError