add pty-gpib-emulator from github

This commit is contained in:
2020-09-09 05:17:31 +00:00
parent 63554da593
commit 3fe71a6f3b
22 changed files with 997 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
##
## **** Device Class ****
## by Aidan Macdonald (aidan.plenert.macdonald@gmail.com)
##
## Standard framework for the a Device that is attached
## to the PTY_Interface
##
class Device:
##
##%% No initialization
##
##%% handleCMD(pty_interface, command, arguments)
## A device attached to a PTY_Interface will handle commands
## passed to it from the PTY_Interface by a call made to
## this function.
##
## pty_interface will be a referance to the interface that called
## this function
##
## command will be a string with the text of the command read
## from the pty device
##
## arguments is an array of the arguments to said command read
## from the pty device
##
## The string returned by this function will be written to
## the pty device
##
def handleCMD(self, fpl, cmd, args=[]):
return ""