|
Instrument Neutral Distributed Interface INDI 2.2.5
|
#include <scopedome_dome.h>
Classes | |
| struct | InputInfo |
| struct | RelayInfo |
| struct | SensorInfo |
Public Types | |
| enum | ScopeDomeStatusBits { STATUS_RESET = 1 , STATUS_MOVING = 2 , STATUS_HOMING = 4 , STATUS_OPEN1 = 8 , STATUS_OPEN2 = 0x10 , STATUS_AUTO_CLOSE1 = 0x20 , STATUS_AUTO_CLOSE2 = 0x40 , STATUS_CALIBRATING = 0x80 , STATUS_FINDING_POWER = 0x100 , STATUS_CALIBRATION_STOP = 0x200 } |
| enum | AbstractInput { HOME , OPEN1 , CLOSED1 , OPEN2 , CLOSED2 , ROTARY_LINK } |
| enum | AbstractOutput { RESET , CCW , CW } |
| enum | ShutterOperation { OPEN_SHUTTER = 0 , CLOSE_SHUTTER = 1 , STOP_SHUTTER = 2 } |
| enum | HomeSensorPolarity { ACTIVE_HIGH = 0 , ACTIVE_LOW = 1 } |
Public Member Functions | |
| virtual | ~ScopeDomeCard ()=default |
| virtual bool | detect ()=0 |
| const char * | getDeviceName () |
| virtual void | setPortFD (int fd)=0 |
| virtual int | updateState ()=0 |
| virtual uint32_t | getStatus ()=0 |
| virtual int | getRotationCounter ()=0 |
| virtual int | getRotationCounterExt ()=0 |
| virtual void | getFirmwareVersions (double &main, double &rotary)=0 |
| virtual uint32_t | getStepsPerRevolution ()=0 |
| virtual bool | isCalibrationNeeded ()=0 |
| virtual void | abort ()=0 |
| virtual void | calibrate ()=0 |
| virtual void | findHome ()=0 |
| virtual void | controlShutter (ShutterOperation operation)=0 |
| virtual void | resetCounter ()=0 |
| virtual void | move (int steps)=0 |
| virtual size_t | getNumberOfSensors ()=0 |
| virtual SensorInfo | getSensorInfo (size_t index)=0 |
| virtual double | getSensorValue (size_t index)=0 |
| virtual size_t | getNumberOfRelays ()=0 |
| virtual RelayInfo | getRelayInfo (size_t index)=0 |
| virtual ISState | getRelayState (size_t index)=0 |
| virtual void | setRelayState (size_t index, ISState state)=0 |
| virtual size_t | getNumberOfInputs ()=0 |
| virtual InputInfo | getInputInfo (size_t index)=0 |
| virtual ISState | getInputValue (size_t index)=0 |
| virtual ISState | getInputState (AbstractInput input)=0 |
| virtual int | setOutputState (AbstractOutput output, ISState state)=0 |
| virtual void | setHomeSensorPolarity (HomeSensorPolarity polarity)=0 |
Protected Member Functions | |
| ScopeDomeCard ()=default | |
Interface to either a real ScopeDome card or simulator
Definition at line 45 of file scopedome_dome.h.
| Enumerator | |
|---|---|
| HOME | |
| OPEN1 | |
| CLOSED1 | |
| OPEN2 | |
| CLOSED2 | |
| ROTARY_LINK | |
Definition at line 63 of file scopedome_dome.h.
| Enumerator | |
|---|---|
| RESET | |
| CCW | |
| CW | |
Definition at line 73 of file scopedome_dome.h.
| Enumerator | |
|---|---|
| ACTIVE_HIGH | |
| ACTIVE_LOW | |
Definition at line 108 of file scopedome_dome.h.
| Enumerator | |
|---|---|
| STATUS_RESET | |
| STATUS_MOVING | |
| STATUS_HOMING | |
| STATUS_OPEN1 | |
| STATUS_OPEN2 | |
| STATUS_AUTO_CLOSE1 | |
| STATUS_AUTO_CLOSE2 | |
| STATUS_CALIBRATING | |
| STATUS_FINDING_POWER | |
| STATUS_CALIBRATION_STOP | |
Definition at line 49 of file scopedome_dome.h.
| Enumerator | |
|---|---|
| OPEN_SHUTTER | |
| CLOSE_SHUTTER | |
| STOP_SHUTTER | |
Definition at line 80 of file scopedome_dome.h.
|
virtualdefault |
Destructor.
|
protecteddefault |
Default constructor.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
inline |
Definition at line 118 of file scopedome_dome.h.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.
|
pure virtual |
Implemented in ScopeDomeArduino, ScopeDomeSim, and ScopeDomeUSB21.