Debian Codegraph @

drivers/telescope/ioptronHC8406.h

raw symbols SCIP
1 /*
2 ioptronHC8406 INDI driver
3 Copyright (C) 2017 Nacho Mas. Base on GotoNova driver by Jasem Mutlaq
4
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #pragma once
22
23 #include "lx200generic.h"cxx . . $ `<file>/drivers/telescope/lx200generic.h`/
24
25
26
27 class ioptronHC8406cxx . . $ ioptronHC8406# : public LX200Genericcxx . . $ LX200Generic#
28 {
29 public:
30 ioptronHC8406cxx . . $ ioptronHC8406#ioptronHC8406(49f6e7a06ebc5aa8).();
31
32 virtual bool updatePropertiescxx . . $ ioptronHC8406#updateProperties(c9857a73d68e59ba).() override;
33 virtual bool initPropertiescxx . . $ ioptronHC8406#initProperties(c9857a73d68e59ba).() override;
34
35 virtual bool ISNewSwitchcxx . . $ ioptronHC8406#ISNewSwitch(e439c05866add404).(const char *dev, const char *name, ISStatecxx . . $ ISState# *states, char *names[], int n) override;
36
37 protected:
38 virtual const char *getDefaultNamecxx . . $ ioptronHC8406#getDefaultName(33a1f659e94feb42).() override;
39
40 virtual void getBasicDatacxx . . $ ioptronHC8406#getBasicData(49f6e7a06ebc5aa8).() override;
41 virtual bool checkConnectioncxx . . $ ioptronHC8406#checkConnection(c9857a73d68e59ba).() override;
42 virtual bool isSlewCompletecxx . . $ ioptronHC8406#isSlewComplete(c9857a73d68e59ba).() override;
43
44 virtual bool ReadScopeStatuscxx . . $ ioptronHC8406#ReadScopeStatus(c9857a73d68e59ba).() override;
45
46 virtual bool SetTrackEnabledcxx . . $ ioptronHC8406#SetTrackEnabled(efaadfb7dc14930a).(bool enabled) override;
47 virtual bool SetTrackModecxx . . $ ioptronHC8406#SetTrackMode(cef82f9be00a201a).(uint8_tcxx . . $ uint8_t# mode) override;
48 virtual bool Gotocxx . . $ ioptronHC8406#Goto(828b76dce88fac).(double, double) override;
49 virtual bool Synccxx . . $ ioptronHC8406#Sync(828b76dce88fac).(double ra, double dec) override;
50 virtual bool updateTimecxx . . $ ioptronHC8406#updateTime(8f5ba5a5ba688cb1).(ln_datecxx . . $ ln_date# *utc, double utc_offset) override;
51 virtual bool updateLocationcxx . . $ ioptronHC8406#updateLocation(c3c51e0645da350e).(double latitude, double longitude, double elevation) override;
52
53 virtual int SendPulseCmdcxx . . $ ioptronHC8406#SendPulseCmd(bfcc4e58096daf7a).(int8_t direction, uint32_tcxx . . $ uint32_t# duration_msec) override;
54
55 virtual bool saveConfigItemscxx . . $ ioptronHC8406#saveConfigItems(dc9e5a301483124c).(FILE *fp) override;
56
57 virtual bool Parkcxx . . $ ioptronHC8406#Park(c9857a73d68e59ba).() override;
58 virtual bool UnParkcxx . . $ ioptronHC8406#UnPark(c9857a73d68e59ba).() override;
59 virtual bool sendScopeTimecxx . . $ ioptronHC8406#sendScopeTime(c9857a73d68e59ba).() override;
60 private:
61 int setioptronHC8406StandardProcedurecxx . . $ ioptronHC8406#setioptronHC8406StandardProcedure(95e580389a7cc305).(int fd, const char *data);
62 int ioptronHC8406SyncCMRcxx . . $ ioptronHC8406#ioptronHC8406SyncCMR(1ef8e6ec083aabb9).(char *matchedObject);
63
64 // Mount Initialization.
65 void ioptronHC8406Initcxx . . $ ioptronHC8406#ioptronHC8406Init(49f6e7a06ebc5aa8).();
66
67 // Settings
68 int setioptronHC8406Latitudecxx . . $ ioptronHC8406#setioptronHC8406Latitude(620b9ac44d2573a6).(double Lat);
69 int setioptronHC8406Longitudecxx . . $ ioptronHC8406#setioptronHC8406Longitude(620b9ac44d2573a6).(double Long);
70 int setioptronHC8406UTCOffsetcxx . . $ ioptronHC8406#setioptronHC8406UTCOffset(620b9ac44d2573a6).(double hours);
71 int getCommandStringcxx . . $ ioptronHC8406#getCommandString(2a3ee0fff8d8b8ec).(int fd, char *data, const char *cmd);
72 int setCalenderDatecxx . . $ ioptronHC8406#setCalenderDate(d4c1ccc1fe1a56c0).(int fd, int dd, int mm, int yy);
73
74 // Motion
75 int slewioptronHC8406cxx . . $ ioptronHC8406#slewioptronHC8406(b126dc7c1de90089).();
76
77 // Track Mode
78 int setioptronHC8406TrackModecxx . . $ ioptronHC8406#setioptronHC8406TrackMode(7864480464b09eea).(int mode);
79
80 //Set move rates
81 int setMoveRatecxx . . $ ioptronHC8406#setMoveRate(9b79fb6aee4c0440).(int rate, int move_type);
82
83 // Guide Rate
84 int setioptronHC8406GuideRatecxx . . $ ioptronHC8406#setioptronHC8406GuideRate(7864480464b09eea).(int rate);
85
86 // Center Rate
87 int setioptronHC8406CenterRatecxx . . $ ioptronHC8406#setioptronHC8406CenterRate(7864480464b09eea).(int rate);
88
89 // Slew Rate
90 int setioptronHC8406SlewRatecxx . . $ ioptronHC8406#setioptronHC8406SlewRate(7864480464b09eea).(int rate);
91
92 // Pier Side
93 void syncSideOfPiercxx . . $ ioptronHC8406#syncSideOfPier(49f6e7a06ebc5aa8).();
94
95 // Simulation
96 void mountSimcxx . . $ ioptronHC8406#mountSim(49f6e7a06ebc5aa8).();
97
98 // Sync type
99 ISwitchcxx . . $ ISwitch# SyncCMRScxx . . $ ioptronHC8406#SyncCMRS.[2];
100 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# SyncCMRSPcxx . . $ ioptronHC8406#SyncCMRSP.;
101 enumcxx . . $ ioptronHC8406#$anonymous_type_0# { USE_REGULAR_SYNCcxx . . $ ioptronHC8406#USE_REGULAR_SYNC., USE_CMR_SYNCcxx . . $ ioptronHC8406#USE_CMR_SYNC. };
102
103 //Cursor move speed
104 ISwitchcxx . . $ ISwitch# CursorMoveSpeedScxx . . $ ioptronHC8406#CursorMoveSpeedS.[3];
105 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# CursorMoveSpeedSPcxx . . $ ioptronHC8406#CursorMoveSpeedSP.;
106 enumcxx . . $ ioptronHC8406#$anonymous_type_1# { USE_GUIDE_SPEEDcxx . . $ ioptronHC8406#USE_GUIDE_SPEED., USE_CENTERING_SPEEDcxx . . $ ioptronHC8406#USE_CENTERING_SPEED., USE_SLEW_SPEEDcxx . . $ ioptronHC8406#USE_SLEW_SPEED. };
107 int setioptronHC8406CursorMoveSpeedcxx . . $ ioptronHC8406#setioptronHC8406CursorMoveSpeed(7864480464b09eea).(int type);
108 /* Guide Rate */
109 ISwitchcxx . . $ ISwitch# GuideRateScxx . . $ ioptronHC8406#GuideRateS.[3];
110 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# GuideRateSPcxx . . $ ioptronHC8406#GuideRateSP.;
111
112 /* Center Rate */
113 ISwitchcxx . . $ ISwitch# CenterRateScxx . . $ ioptronHC8406#CenterRateS.[4];
114 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# CenterRateSPcxx . . $ ioptronHC8406#CenterRateSP.;
115 };