moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / indi / fli / libfli-filter-focuser.h
blobdc50e4e9b5c88345410935c4ae964119c557e6f9
1 /*
3 Copyright (c) 2002 Finger Lakes Instrumentation (FLI), L.L.C.
4 All rights reserved.
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions
8 are met:
10 Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
13 Redistributions in binary form must reproduce the above
14 copyright notice, this list of conditions and the following
15 disclaimer in the documentation and/or other materials
16 provided with the distribution.
18 Neither the name of Finger Lakes Instrumentation (FLI), LLC
19 nor the names of its contributors may be used to endorse or
20 promote products derived from this software without specific
21 prior written permission.
23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27 REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 POSSIBILITY OF SUCH DAMAGE.
36 ======================================================================
38 Finger Lakes Instrumentation, L.L.C. (FLI)
39 web: http://www.fli-cam.com
40 email: support@fli-cam.com
44 #ifndef _FLI_FILTER_FOCUSER_H_
45 #define _FLI_FILTER_FOCUSER_H_
47 #define FLI_FILTERPOSITION_HOME (-1)
49 /* Filter wheel and focuser parameters */
50 typedef struct {
51 long numslots;
52 long stepspersec;
53 long currentslot;
54 } flifilterdata_t;
56 typedef struct {
57 int n_pos;
58 int n_offset;
59 int n_steps[16];
60 } wheeldata_t;
62 long fli_filter_focuser_open(flidev_t dev);
63 #define fli_filter_open fli_filter_focuser_open
64 #define fli_focuser_open fli_filter_focuser_open
66 long fli_filter_focuser_close(flidev_t dev);
67 #define fli_filter_close fli_filter_focuser_close
68 #define fli_focuser_close fli_filter_focuser_close
70 long fli_filter_command(flidev_t dev, int cmd, int argc, ...);
71 long fli_focuser_command(flidev_t dev, int cmd, int argc, ...);
74 #endif /* _FLI_FILTER_FOCUSER_H_ */