1 /******************************************************************************* 2 Copyright(c) 2011 Jasem Mutlaq. All rights reserved. 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Library General Public 6 License version 2 as published by the Free Software Foundation. 7 8 This library is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 Library General Public License for more details. 12 13 You should have received a copy of the GNU Library General Public License 14 along with this library; see the file COPYING.LIB. If not, write to 15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 Boston, MA 02110-1301, USA. 17 *******************************************************************************/ 18 19 #pragma once 20 21 /*! INDI property type */ 22 typedef enum { 23 INDI_NUMBER, /*!< INumberVectorProperty. */ 24 INDI_SWITCH, /*!< ISwitchVectorProperty. */ 25 INDI_TEXT, /*!< ITextVectorProperty. */ 26 INDI_LIGHT, /*!< ILightVectorProperty. */ 27 INDI_BLOB, /*!< IBLOBVectorProperty. */ 28 INDI_UNKNOWN 29 } INDI_PROPERTY_TYPE; 30 31 /*! INDI Equatorial Axis type */ 32 typedef enum { 33 AXIS_RA, /*!< Right Ascension Axis. */ 34 AXIS_DE /*!< Declination Axis. */ 35 } INDI_EQ_AXIS; 36 37 /*! INDI Horizontal Axis type */ 38 typedef enum { 39 AXIS_AZ, /*!< Azimuth Axis. */ 40 AXIS_ALT /*!< Altitude Axis. */ 41 } INDI_HO_AXIS; 42 43 /*! North/South Direction type */ 44 typedef enum { 45 DIRECTION_NORTH = 0, /*!< North direction */ 46 DIRECTION_SOUTH /*!< South direction */ 47 } INDI_DIR_NS; 48 49 /*! West/East Direction type */ 50 typedef enum { 51 DIRECTION_WEST = 0, /*!< West direction */ 52 DIRECTION_EAST /*!< East direction */ 53 } INDI_DIR_WE; 54 55 /*! INDI Error Types */ 56 typedef enum { 57 INDI_DEVICE_NOT_FOUND = -1, /*!< Device not found error */ 58 INDI_PROPERTY_INVALID = -2, /*!< Property invalid error */ 59 INDI_PROPERTY_DUPLICATED = -3, /*!< Property duplicated error */ 60 INDI_DISPATCH_ERROR = -4 /*!< Dispatch error */ 61 } INDI_ERROR_TYPE; 62 63 typedef enum 64 { 65 INDI_MONO = 0, 66 INDI_BAYER_RGGB = 8, 67 INDI_BAYER_GRBG = 9, 68 INDI_BAYER_GBRG = 10, 69 INDI_BAYER_BGGR = 11, 70 INDI_BAYER_CYYM = 16, 71 INDI_BAYER_YCMY = 17, 72 INDI_BAYER_YMCY = 18, 73 INDI_BAYER_MYYC = 19, 74 INDI_RGB = 100, 75 INDI_BGR = 101, 76 INDI_JPG = 200, 77 } INDI_PIXEL_FORMAT; 78 79