Instrument Neutral Distributed Interface INDI 2.2.5
STAR2kdriver.h
Go to the documentation of this file.
1/*******************************************************************************
2 created 2014 G. Schmidt
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/********************************** some defines ******************************/
26
27#define S2K_WEST_1 0x01
28#define S2K_SOUTH_1 0x02
29#define S2K_NORTH_1 0x04
30#define S2K_EAST_1 0x08
31
32#define S2K_WEST_0 0x0E
33#define S2K_SOUTH_0 0x0D
34#define S2K_NORTH_0 0x0B
35#define S2K_EAST_0 0x07
36
37#define NORTH 0
38#define WEST 1
39#define EAST 2
40#define SOUTH 3
41
42#define ALL -1
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48int ConnectSTAR2k(char *port);
49void DisconnectSTAR2k();
50
51void StartPulse(int direction);
52void StopPulse(int direction);
53
54#ifdef __cplusplus
55}
56#endif
int ConnectSTAR2k(char *port)
void DisconnectSTAR2k()
void StopPulse(int direction)
void StartPulse(int direction)