PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
PlusCivcoBrachyStepper.h
Go to the documentation of this file.
1 /*=Plus=header=begin======================================================
2  Program: Plus
3  Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
4  See License.txt for details.
5 =========================================================Plus=header=end*/
6 
7 #ifndef _CIVCOBRACHYSTEPPER_H_
8 #define _CIVCOBRACHYSTEPPER_H_
9 
10 #include "PlusConfigure.h"
11 #include "vtkPlusDataCollectionExport.h"
12 
13 #include "PlusBrachyStepper.h"
14 
24 class vtkPlusDataCollectionExport PlusCivcoBrachyStepper : public PlusBrachyStepper
25 {
26 public:
28  PlusCivcoBrachyStepper(unsigned long COMPort = 1, unsigned long BaudRate = 9600);
30  virtual ~PlusCivcoBrachyStepper();
31 
33  virtual PlusStatus Connect();
34 
36  virtual PlusStatus Disconnect();
37 
39  virtual PlusStatus GetEncoderValues(double& PPosition,
40  double& GPosition, double& RPosition, unsigned long& PositionRequestNumber);
41 
43  virtual PlusStatus GetDeviceModelInfo(std::string& version, std::string& model, std::string& serial);
44 
46  virtual PlusStatus ResetStepper();
47 
49  virtual PlusStatus InitializeStepper(std::string& CalibMsg);
50 
52  virtual PlusStatus SetBaudRate(unsigned long BaudRate);
53 
55  virtual PlusStatus SetCOMPort(unsigned long COMPort);
56 
58  virtual PlusStatus IsStepperAlive();
59 
60 protected:
62  double ConvertFloatToDecimal(long floatPoint);
63 
65  long GetNumberOfSeiDevices();
66 
68  PlusStatus GetSeiDeviceInfo(long devnum, long& model, long& serialnum, long& version, long& addr);
69 
71  long m_COMPort;
72 
74  long m_BaudRate;
75 
78 
81 
82 };
83 
84 #endif
virtual PlusStatus SetBaudRate(unsigned long BaudRate)=0
igsioStatus PlusStatus
Definition: PlusCommon.h:40
virtual PlusStatus IsStepperAlive()=0
virtual PlusStatus SetCOMPort(unsigned long COMPort)=0
virtual PlusStatus ResetStepper()=0
virtual PlusStatus Disconnect()=0
virtual PlusStatus GetDeviceModelInfo(std::string &version, std::string &model, std::string &serial)=0
virtual PlusStatus InitializeStepper(std::string &CalibMsg)=0
virtual PlusStatus Connect()=0
virtual PlusStatus GetEncoderValues(double &PPosition, double &GPosition, double &RPosition, unsigned long &PositionRequestNumber)=0