Updated the Phytron driver to use MsgTxt

Updated the Phytron driver to use a selector in order to support the use case of multiple phytrons on one channel
The chnages still need to be tested
This commit is contained in:
2019-01-08 09:41:34 +01:00
parent 460030e410
commit f909c41a2b
4 changed files with 67 additions and 34 deletions

View File

@@ -5,14 +5,19 @@ USAGE... Motor driver support for the Phytron MCC-2 motor controller.
Mark Koennecke
September 2016
Updated to go through SINQAxis for -MsgTxt support
Added a selector to support multiple phytrons on a connection
Mark Koennecke, January 2019
*/
#include "asynMotorController.h"
#include "asynMotorAxis.h"
#include "SINQController.h"
#include "SINQAxis.h"
#define COMLEN 80
class PhytronAxis : public asynMotorAxis
class PhytronAxis : public SINQAxis
{
public:
/* These are the methods we override from the base class */
@@ -38,9 +43,10 @@ private:
friend class PhytronController;
};
class PhytronController : public asynMotorController {
class PhytronController : public SINQController {
public:
PhytronController(const char *portName, const char *PhytronPortName, int encX, int encY);
PhytronController(const char *portName, const char *PhytronPortName, const char *selector,
int encX, int encY);
void report(FILE *fp, int level);
PhytronAxis* getAxis(asynUser *pasynUser);
@@ -52,5 +58,6 @@ friend class PhytronAxis;
asynStatus transactController(char command[COMLEN], char reply[COMLEN]);
const char *selector;
};