Debian Codegraph @

drivers/focuser/pegasus_scopsoag.h

raw symbols SCIP
1 /*******************************************************************************
2 Copyright(c) 2021 Chrysikos Efstathios. All rights reserved.
3
4 Pegasus ScopsOAG
5
6 This program is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2 of the License, or (at your option)
9 any later version.
10
11 This program is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20
21 The full GNU General Public License is included in this distribution in the
22 file called LICENSE.
23 *******************************************************************************/
24
25 #pragma once
26
27 #include "indifocuser.h"cxx . . $ `<file>/libs/indibase/indifocuser.h`/
28
29 class PegasusScopsOAGcxx . . $ PegasusScopsOAG# : public INDIcxx . . $ INDI/::Focusercxx . . $ INDI/Focuser#
30 {
31 public:
32 PegasusScopsOAGcxx . . $ PegasusScopsOAG#PegasusScopsOAG(49f6e7a06ebc5aa8).();
33 virtual ~cxx . . $ PegasusScopsOAG#`~PegasusScopsOAG`(49f6e7a06ebc5aa8).PegasusScopsOAGcxx . . $ PegasusScopsOAG#() override = default;
34
35 virtual bool Handshakecxx . . $ PegasusScopsOAG#Handshake(c9857a73d68e59ba).() override;
36 const char *getDefaultNamecxx . . $ PegasusScopsOAG#getDefaultName(33a1f659e94feb42).() override;
37 virtual bool initPropertiescxx . . $ PegasusScopsOAG#initProperties(c9857a73d68e59ba).() override;
38 virtual bool updatePropertiescxx . . $ PegasusScopsOAG#updateProperties(c9857a73d68e59ba).() override;
39 virtual bool ISNewSwitchcxx . . $ PegasusScopsOAG#ISNewSwitch(e439c05866add404).(const char *dev, const char *name, ISStatecxx . . $ ISState# *states, char *names[], int n) override;
40
41 protected:
42 virtual IPStatecxx . . $ IPState# MoveAbsFocusercxx . . $ PegasusScopsOAG#MoveAbsFocuser(e933ec4323fbb8bc).(uint32_tcxx . . $ uint32_t# targetTicks) override;
43 virtual IPStatecxx . . $ IPState# MoveRelFocusercxx . . $ PegasusScopsOAG#MoveRelFocuser(7f9c1e68e57c0ac9).(FocusDirectioncxx . . $ INDI/FocuserInterface#FocusDirection# dir, uint32_tcxx . . $ uint32_t# ticks) override;
44 virtual bool AbortFocusercxx . . $ PegasusScopsOAG#AbortFocuser(c9857a73d68e59ba).() override;
45 virtual void TimerHitcxx . . $ PegasusScopsOAG#TimerHit(49f6e7a06ebc5aa8).() override;
46
47 virtual bool SyncFocusercxx . . $ PegasusScopsOAG#SyncFocuser(dfa6e707f7696010).(uint32_tcxx . . $ uint32_t# ticks) override;
48 virtual bool saveConfigItemscxx . . $ PegasusScopsOAG#saveConfigItems(dc9e5a301483124c).(FILE *fp) override;
49
50 private:
51 bool updateFocusParamscxx . . $ PegasusScopsOAG#updateFocusParams(c9857a73d68e59ba).();
52 bool movecxx . . $ PegasusScopsOAG#move(dfa6e707f7696010).(uint32_tcxx . . $ uint32_t# newPosition);
53 bool setLedEnabledcxx . . $ PegasusScopsOAG#setLedEnabled(efaadfb7dc14930a).(bool enable);
54 bool ackcxx . . $ PegasusScopsOAG#ack(c9857a73d68e59ba).();
55 void ignoreResponsecxx . . $ PegasusScopsOAG#ignoreResponse(49f6e7a06ebc5aa8).();
56
57
58 uint32_tcxx . . $ uint32_t# currentPositioncxx . . $ PegasusScopsOAG#currentPosition. { 0 };
59 uint32_tcxx . . $ uint32_t# targetPositioncxx . . $ PegasusScopsOAG#targetPosition. { 0 };
60 bool isMovingcxx . . $ PegasusScopsOAG#isMoving. = false;
61
62 // LED
63 ISwitchcxx . . $ ISwitch# LEDScxx . . $ PegasusScopsOAG#LEDS.[2];
64 ISwitchVectorPropertycxx . . $ ISwitchVectorProperty# LEDSPcxx . . $ PegasusScopsOAG#LEDSP.;
65 enumcxx . . $ PegasusScopsOAG#$anonymous_type_0# { LED_OFFcxx . . $ PegasusScopsOAG#LED_OFF., LED_ONcxx . . $ PegasusScopsOAG#LED_ON. };
66
67 // Firmware Version
68 ITextcxx . . $ IText# FirmwareVersionTcxx . . $ PegasusScopsOAG#FirmwareVersionT.[1] {};
69 ITextVectorPropertycxx . . $ ITextVectorProperty# FirmwareVersionTPcxx . . $ PegasusScopsOAG#FirmwareVersionTP.;
70 };