Instrument Neutral Distributed Interface INDI
2.0.2
drivers
auxiliary
gpdriver.h
Go to the documentation of this file.
1
/*******************************************************************************
2
Copyright(c) 2012 Jasem Mutlaq. All rights reserved.
3
4
This program is free software; you can redistribute it and/or modify it
5
under the terms of the GNU General Public License as published by the Free
6
Software Foundation; either version 2 of the License, or (at your option)
7
any later version.
8
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
more details.
13
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
18
19
The full GNU General Public License is included in this distribution in the
20
file called LICENSE.
21
*******************************************************************************/
22
23
#pragma once
24
25
#include "
indiusbdevice.h
"
26
27
enum
28
{
29
GPUSB_NORTH
= 0x08,
30
GPUSB_SOUTH
= 0x04,
31
GPUSB_EAST
= 0x01,
32
GPUSB_WEST
= 0x02,
33
GPUSB_LED_RED
= 0x10,
34
GPUSB_LED_ON
= 0x20,
35
GPUSB_CLEAR_RA
= 0xFC,
36
GPUSB_CLEAR_DEC
= 0xF3
37
};
38
39
class
GPUSBDriver
:
public
INDI::USBDevice
40
{
41
public
:
42
GPUSBDriver
();
43
virtual
~GPUSBDriver
();
44
45
// Generic indi device entries
46
bool
Connect
();
47
bool
Disconnect
();
48
49
bool
startPulse
(
int
direction);
50
bool
stopPulse
(
int
direction);
51
52
void
setDebug
(
bool
enable)
53
{
54
debug = enable;
55
}
56
57
private
:
58
char
guideCMD[1];
59
bool
debug;
60
};
GPUSBDriver
Definition:
gpdriver.h:40
GPUSBDriver::GPUSBDriver
GPUSBDriver()
Definition:
gpdriver.cpp:25
GPUSBDriver::setDebug
void setDebug(bool enable)
Definition:
gpdriver.h:52
GPUSBDriver::Connect
bool Connect()
Definition:
gpdriver.cpp:38
GPUSBDriver::~GPUSBDriver
virtual ~GPUSBDriver()
Definition:
gpdriver.cpp:32
GPUSBDriver::Disconnect
bool Disconnect()
Definition:
gpdriver.cpp:53
GPUSBDriver::stopPulse
bool stopPulse(int direction)
Definition:
gpdriver.cpp:99
GPUSBDriver::startPulse
bool startPulse(int direction)
Definition:
gpdriver.cpp:59
INDI::USBDevice
Definition:
indiusbdevice.h:38
GPUSB_CLEAR_RA
@ GPUSB_CLEAR_RA
Definition:
gpdriver.h:35
GPUSB_SOUTH
@ GPUSB_SOUTH
Definition:
gpdriver.h:30
GPUSB_LED_RED
@ GPUSB_LED_RED
Definition:
gpdriver.h:33
GPUSB_CLEAR_DEC
@ GPUSB_CLEAR_DEC
Definition:
gpdriver.h:36
GPUSB_WEST
@ GPUSB_WEST
Definition:
gpdriver.h:32
GPUSB_NORTH
@ GPUSB_NORTH
Definition:
gpdriver.h:29
GPUSB_EAST
@ GPUSB_EAST
Definition:
gpdriver.h:31
GPUSB_LED_ON
@ GPUSB_LED_ON
Definition:
gpdriver.h:34
indiusbdevice.h
Generated on Sat May 13 2023 14:24:22 for Instrument Neutral Distributed Interface INDI by
1.9.1