Debian Codegraph @

apogee_ccd.h

raw symbols SCIP
1 /*
2 Apogee CCD
3 INDI Driver for Apogee CCDs and Filter Wheels
4 Copyright (C) 2014-2019 Jasem Mutlaq <mutlaqja AT ikarustech DOT com>
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 <indiccd.h>
24 #include <indiguiderinterface.h>
25 #include <indifilterinterface.h>
26 #include <iostream>
27
28 #include "ApogeeCam.h"
29 #include "ApogeeFilterWheel.h"
30 #include "FindDeviceEthernet.h"
31 #include "FindDeviceUsb.h"
32
33 class ApogeeCCDcxx . . $ ApogeeCCD# : public INDIcxx . . $ INDI/::CCDcxx . . $ INDI/CCD#, public INDIcxx . . $ INDI/::FilterInterfacecxx . . $ INDI/FilterInterface#
34 {
35 public:
36 ApogeeCCDcxx . . $ ApogeeCCD#ApogeeCCD(49f6e7a06ebc5aa8).();
37
38 const char *getDefaultNamecxx . . $ ApogeeCCD#getDefaultName(33a1f659e94feb42).() override;
39
40 void ISGetPropertiescxx . . $ ApogeeCCD#ISGetProperties(85c52e162fed56f9).(const char *dev) override;
41 bool initPropertiescxx . . $ ApogeeCCD#initProperties(c9857a73d68e59ba).() override;
42 bool updatePropertiescxx . . $ ApogeeCCD#updateProperties(c9857a73d68e59ba).() override;
43
44 virtual bool ISNewNumbercxx . . $ ApogeeCCD#ISNewNumber(b910d3521abb33fb).(const char *dev, const char *name, double values[], char *names[], int n) override;
45 virtual bool ISNewSwitchcxx . . $ ApogeeCCD#ISNewSwitch(e439c05866add404).(const char *dev, const char *name, ISStatecxx . . $ ISState# *states, char *names[], int n) override;
46 virtual bool ISNewTextcxx . . $ ApogeeCCD#ISNewText(1f3dbebc116ed926).(const char *dev, const char *name, char *texts[], char *names[], int n) override;
47
48 protected:
49
50 bool Connectcxx . . $ ApogeeCCD#Connect(c9857a73d68e59ba).() override;
51 bool Disconnectcxx . . $ ApogeeCCD#Disconnect(c9857a73d68e59ba).() override;
52
53 int SetTemperaturecxx . . $ ApogeeCCD#SetTemperature(620b9ac44d2573a6).(double temperature) override;
54 bool StartExposurecxx . . $ ApogeeCCD#StartExposure(4e2b510d3867ab27).(float duration) override;
55 bool AbortExposurecxx . . $ ApogeeCCD#AbortExposure(c9857a73d68e59ba).() override;
56
57 void TimerHitcxx . . $ ApogeeCCD#TimerHit(49f6e7a06ebc5aa8).() override;
58
59 virtual bool UpdateCCDFramecxx . . $ ApogeeCCD#UpdateCCDFrame(a1642a0ee405ca20).(int x, int y, int w, int h) override;
60 virtual bool UpdateCCDBincxx . . $ ApogeeCCD#UpdateCCDBin(cf9ef193275fa6d8).(int binx, int biny) override;
61
62 virtual void debugTriggeredcxx . . $ ApogeeCCD#debugTriggered(b45ddcbc8423892c).(bool enabled) override;
63 virtual bool saveConfigItemscxx . . $ ApogeeCCD#saveConfigItems(dc9e5a301483124c).(FILE *fp) override;
64
65 virtual bool SelectFiltercxx . . $ ApogeeCCD#SelectFilter(83c267b20bac841a).(int) override;
66 virtual int QueryFiltercxx . . $ ApogeeCCD#QueryFilter(b126dc7c1de90089).() override;
67
68 private:
69 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<ApogeeCamcxx . . $ ApogeeCam#> ApgCamcxx . . $ ApogeeCCD#ApgCam.;
70 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<ApogeeFilterWheelcxx . . $ ApogeeFilterWheel#> ApgCFWcxx . . $ ApogeeCCD#ApgCFW.;
71
72 INumbercxx . . $ INumber# CoolerNcxx . . $ ApogeeCCD#CoolerN.[1];
73 INumberVectorPropertycxx . . $ INumberVectorProperty# CoolerNPcxx . . $ ApogeeCCD#CoolerNP.;
74
75 ISwitchcxx . . $ ISwitch# CoolerScxx . . $ ApogeeCCD#CoolerS.[2];
76 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# CoolerSPcxx . . $ ApogeeCCD#CoolerSP.;
77
78 ISwitchcxx . . $ ISwitch# ReadOutScxx . . $ ApogeeCCD#ReadOutS.[2];
79 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# ReadOutSPcxx . . $ ApogeeCCD#ReadOutSP.;
80
81 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# PortTypeSPcxx . . $ ApogeeCCD#PortTypeSP.;
82 ISwitchcxx . . $ ISwitch# PortTypeScxx . . $ ApogeeCCD#PortTypeS.[2];
83 enumcxx . . $ ApogeeCCD#$anonymous_type_0#
84 {
85 PORT_USBcxx . . $ ApogeeCCD#PORT_USB.,
86 PORT_NETWORKcxx . . $ ApogeeCCD#PORT_NETWORK.
87 };
88
89 ITextVectorPropertycxx . . $ ITextVectorProperty# NetworkInfoTPcxx . . $ ApogeeCCD#NetworkInfoTP.;
90 ITextcxx . . $ IText# NetworkInfoTcxx . . $ ApogeeCCD#NetworkInfoT.[2] {};
91 enumcxx . . $ ApogeeCCD#$anonymous_type_1#
92 {
93 NETWORK_SUBNETcxx . . $ ApogeeCCD#NETWORK_SUBNET.,
94 NETWORK_ADDRESScxx . . $ ApogeeCCD#NETWORK_ADDRESS.
95 };
96
97 ITextcxx . . $ IText# CamInfoTcxx . . $ ApogeeCCD#CamInfoT.[2] {};
98 ITextVectorPropertycxx . . $ ITextVectorProperty# CamInfoTPcxx . . $ ApogeeCCD#CamInfoTP.;
99
100 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# FanStatusSPcxx . . $ ApogeeCCD#FanStatusSP.;
101 ISwitchcxx . . $ ISwitch# FanStatusScxx . . $ ApogeeCCD#FanStatusS.[4];
102 enumcxx . . $ ApogeeCCD#$anonymous_type_2#
103 {
104 FAN_OFFcxx . . $ ApogeeCCD#FAN_OFF.,
105 FAN_SLOWcxx . . $ ApogeeCCD#FAN_SLOW.,
106 FAN_MEDcxx . . $ ApogeeCCD#FAN_MED.,
107 FAN_FASTcxx . . $ ApogeeCCD#FAN_FAST.
108 };
109
110 // Filter Type
111 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# FilterTypeSPcxx . . $ ApogeeCCD#FilterTypeSP.;
112 ISwitchcxx . . $ ISwitch# FilterTypeScxx . . $ ApogeeCCD#FilterTypeS.[5];
113 enumcxx . . $ ApogeeCCD#$anonymous_type_3#
114 {
115 TYPE_UNKNOWNcxx . . $ ApogeeCCD#TYPE_UNKNOWN.,
116 TYPE_FW50_9Rcxx . . $ ApogeeCCD#TYPE_FW50_9R.,
117 TYPE_FW50_7Scxx . . $ ApogeeCCD#TYPE_FW50_7S.,
118 TYPE_AFW50_10Scxx . . $ ApogeeCCD#TYPE_AFW50_10S.,
119 TYPE_AFW31_17Rcxx . . $ ApogeeCCD#TYPE_AFW31_17R.
120 };
121
122 // Filter Information
123 ITextVectorPropertycxx . . $ ITextVectorProperty# FilterInfoTPcxx . . $ ApogeeCCD#FilterInfoTP.;
124 ITextcxx . . $ IText# FilterInfoTcxx . . $ ApogeeCCD#FilterInfoT.[2] {};
125 enumcxx . . $ ApogeeCCD#$anonymous_type_4#
126 {
127 INFO_NAMEcxx . . $ ApogeeCCD#INFO_NAME.,
128 INFO_FIRMWAREcxx . . $ ApogeeCCD#INFO_FIRMWARE.,
129 };
130
131 double minDurationcxx . . $ ApogeeCCD#minDuration.;
132 double ExposureRequestcxx . . $ ApogeeCCD#ExposureRequest.;
133 int imageWidthcxx . . $ ApogeeCCD#imageWidth., imageHeightcxx . . $ ApogeeCCD#imageHeight.;
134 int timerIDcxx . . $ ApogeeCCD#timerID.;
135 bool cameraFoundcxx . . $ ApogeeCCD#cameraFound. {false}, cfwFoundcxx . . $ ApogeeCCD#cfwFound. {false};
136 INDIcxx . . $ INDI/::CCDChipcxx . . $ INDI/CCDChip#::CCD_FRAMEcxx . . $ INDI/CCDChip#CCD_FRAME# imageFrameTypecxx . . $ ApogeeCCD#imageFrameType.;
137 struct timeval ExpStartcxx . . $ ApogeeCCD#ExpStart.;
138
139 stdcxx . . $ std/::stringcxx . . $ std/string# ioInterfacecxx . . $ ApogeeCCD#ioInterface.;
140 stdcxx . . $ std/::stringcxx . . $ std/string# subnetcxx . . $ ApogeeCCD#subnet.;
141 stdcxx . . $ std/::stringcxx . . $ std/string# firmwareRevcxx . . $ ApogeeCCD#firmwareRev.;
142 stdcxx . . $ std/::stringcxx . . $ std/string# modelStrcxx . . $ ApogeeCCD#modelStr.;
143 FindDeviceEthernetcxx . . $ FindDeviceEthernet# look4camcxx . . $ ApogeeCCD#look4cam.;
144 FindDeviceUsbcxx . . $ FindDeviceUsb# lookUsbcxx . . $ ApogeeCCD#lookUsb.;
145 CamModelcxx . . $ CamModel/::PlatformTypecxx . . $ CamModel/PlatformType# modelcxx . . $ ApogeeCCD#model.;
146
147 void checkStatuscxx . . $ ApogeeCCD#checkStatus(ca417b5d9c8fc262).(const Apgcxx . . $ Apg/::Statuscxx . . $ Apg/Status# status);
148 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> MakeTokenscxx . . $ ApogeeCCD#MakeTokens(c47e161d59f8b6e7).(const stdcxx . . $ std/::stringcxx . . $ std/string# &str, const stdcxx . . $ std/::stringcxx . . $ std/string# &separator);
149 stdcxx . . $ std/::stringcxx . . $ std/string# GetItemFromFindStrcxx . . $ ApogeeCCD#GetItemFromFindStr(203b42cd324c6c40).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg, const stdcxx . . $ std/::stringcxx . . $ std/string# &item);
150 //std::string GetAddress( const std::string & msg );
151 stdcxx . . $ std/::stringcxx . . $ std/string# GetUsbAddresscxx . . $ ApogeeCCD#GetUsbAddress(fd626fc03107dd24).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg);
152 stdcxx . . $ std/::stringcxx . . $ std/string# GetEthernetAddresscxx . . $ ApogeeCCD#GetEthernetAddress(fd626fc03107dd24).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg);
153 stdcxx . . $ std/::stringcxx . . $ std/string# GetIPAddresscxx . . $ ApogeeCCD#GetIPAddress(fd626fc03107dd24).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg);
154 CamModelcxx . . $ CamModel/::PlatformTypecxx . . $ CamModel/PlatformType# GetModelcxx . . $ ApogeeCCD#GetModel(81d7a289d0538d3c).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg);
155 uint16_tcxx . . $ uint16_t# GetIDcxx . . $ ApogeeCCD#GetID(2bcf8ee6d3b0d0b0).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg);
156 uint16_tcxx . . $ uint16_t# GetFrmwrRevcxx . . $ ApogeeCCD#GetFrmwrRev(2bcf8ee6d3b0d0b0).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg);
157
158 bool IsDeviceCameracxx . . $ ApogeeCCD#IsDeviceCamera(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg);
159 bool IsDeviceFilterWheelcxx . . $ ApogeeCCD#IsDeviceFilterWheel(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg);
160 bool IsAscentcxx . . $ ApogeeCCD#IsAscent(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string# &msg);
161 void printInfocxx . . $ ApogeeCCD#printInfo(8f64f2462892210e).(const stdcxx . . $ std/::stringcxx . . $ std/string# &model, uint16_tcxx . . $ uint16_t# maxImgRows, uint16_tcxx . . $ uint16_t# maxImgCols);
162
163 float CalcTimeLeftcxx . . $ ApogeeCCD#CalcTimeLeft(f76b2a8ad1666bdf).(timeval, float);
164 int grabImagecxx . . $ ApogeeCCD#grabImage(b126dc7c1de90089).();
165 bool getCameraParamscxx . . $ ApogeeCCD#getCameraParams(c9857a73d68e59ba).();
166 void activateCoolercxx . . $ ApogeeCCD#activateCooler(b45ddcbc8423892c).(bool enable);
167 };
168