Instrument Neutral Distributed Interface INDI 2.2.5
ieq45driver.h File Reference

Go to the source code of this file.

Macros

#define MaxReticleDutyCycle   15
#define MaxFocuserSpeed   4
#define getIEQ45RA(fd, x)
#define getIEQ45DEC(fd, x)
#define getLocalTime24(fd, x)
#define getSDTime(fd, x)
#define getIEQ45Alt(fd, x)
#define getIEQ45Az(fd, x)
#define getUTCOffset(fd, x)
#define setReticleFlashRate(fd, x)
#define setFocuserSpeed(fd, x)
#define setSlewSpeed(fd, x)
#define setLocalTime(fd, x, y, z)
#define setSDTime(fd, x, y, z)
#define turnGPSOn(fd)
#define turnGPSOff(fd)
#define alignGPSScope(fd)
#define gpsSleep(fd)
#define gpsWakeUp(fd)
#define gpsRestart(fd)
#define updateGPS_System(fd)
#define enableDecAltPec(fd)
#define disableDecAltPec(fd)
#define enableRaAzPec(fd)
#define disableRaAzPec(fd)
#define activateAltDecAntiBackSlash(fd)
#define activateAzRaAntiBackSlash(fd)
#define SelenographicSync(fd)
#define slewToAltAz(fd)
#define toggleTimeFormat(fd)
#define increaseReticleBrightness(fd)
#define decreaseReticleBrightness(fd)
#define turnFanOn(fd)
#define turnFanOff(fd)
#define seekHomeAndSave(fd)
#define seekHomeAndSet(fd)
#define turnFieldDeRotatorOn(fd)
#define turnFieldDeRotatorOff(fd)
#define slewToPark(fd)

Enumerations

enum  TSlew { IEQ45_SLEW_MAX , IEQ45_SLEW_FIND , IEQ45_SLEW_CENTER , IEQ45_SLEW_GUIDE }
enum  TAlign { IEQ45_ALIGN_POLAR , IEQ45_ALIGN_ALTAZ , IEQ45_ALIGN_LAND }
enum  TDirection {
  IEQ45_NORTH , IEQ45_WEST , IEQ45_EAST , IEQ45_SOUTH ,
  IEQ45_ALL
}
enum  TFormat { IEQ45_SHORT_FORMAT , IEQ45_LONG_FORMAT }
enum  TTimeFormat { IEQ45_24 , IEQ45_AM , IEQ45_PM }
enum  TFocusMotion { IEQ45_FOCUSIN , IEQ45_FOCUSOUT }
enum  TFocusSpeed { IEQ45_HALTFOCUS = 0 , IEQ45_FOCUSSLOW , IEQ45_FOCUSFAST }
enum  TCatalog { IEQ45_STAR_C , IEQ45_DEEPSKY_C }
enum  StarCatalog { IEQ45_STAR , IEQ45_SAO , IEQ45_GCVS }
enum  DeepSkyCatalog {
  IEQ45_NGC , IEQ45_IC , IEQ45_UGC , IEQ45_CALDWELL ,
  IEQ45_ARP , IEQ45_ABELL , IEQ45_MESSIER_C
}
enum  TFreq { IEQ45_TRACK_SIDERAL , IEQ45_TRACK_LUNAR , IEQ45_TRACK_SOLAR , IEQ45_TRACK_ZERO }

Functions

char ACK (int fd)
int check_IEQ45_connection (int fd)
int getCommandSexa (int fd, double *value, const char *cmd)
int getCommandString (int fd, char *data, const char *cmd)
int getCommandInt (int fd, int *value, const char *cmd)
int getTrackFreq (int fd, double *value)
int getSiteLatitude (int fd, int *dd, int *mm)
int getSiteLongitude (int fd, int *ddd, int *mm)
int getCalendarDate (int fd, char *date)
int getSiteName (int fd, char *siteName, int siteNum)
int getNumberOfBars (int fd, int *value)
int getHomeSearchStatus (int fd, int *status)
int getOTATemp (int fd, double *value)
int getTimeFormat (int fd, int *format)
int updateSkyCommanderCoord (int fd, double *ra, double *dec)
int updateIntelliscopeCoord (int fd, double *ra, double *dec)
int setCommandInt (int fd, int data, const char *cmd)
int setCommandXYZ (int fd, int x, int y, int z, const char *cmd)
int setStandardProcedure (int fd, char *writeData)
int setSlewMode (int fd, int slewMode)
int setAlignmentMode (int fd, unsigned int alignMode)
int setObjectRA (int fd, double ra)
int setObjectDEC (int fd, double dec)
int setCalenderDate (int fd, int dd, int mm, int yy)
int setUTCOffset (int fd, double hours)
int setTrackFreq (int fd, double trackF)
int setSiteLongitude (int fd, double Long)
int setSiteLatitude (int fd, double Lat)
int setObjAz (int fd, double az)
int setObjAlt (int fd, double alt)
int setSiteName (int fd, char *siteName, int siteNum)
int setMaxSlewRate (int fd, int slewRate)
int setFocuserMotion (int fd, int motionType)
int setGPSFocuserSpeed (int fd, int speed)
int setFocuserSpeedMode (int fd, int speedMode)
int setMinElevationLimit (int fd, int min)
int setMaxElevationLimit (int fd, int max)
int Slew (int fd)
int Sync (int fd, char *matchedObject)
int abortSlew (int fd)
int MoveTo (int fd, int direction)
int HaltMovement (int fd, int direction)
int selectTrackingMode (int fd, int trackMode)
int selectAPTrackingMode (int fd, int trackMode)
int SendPulseCmd (int fd, int direction, int duration_msec)
int checkIEQ45Format (int fd)
int selectSite (int fd, int siteNum)
int selectCatalogObject (int fd, int catalog, int NNNN)
int selectSubCatalog (int fd, int catalog, int subCatalog)

Macro Definition Documentation

◆ activateAltDecAntiBackSlash

#define activateAltDecAntiBackSlash ( fd)
Value:
write(fd, "$BAdd#", 7)
int fd

Definition at line 156 of file ieq45driver.h.

◆ activateAzRaAntiBackSlash

#define activateAzRaAntiBackSlash ( fd)
Value:
write(fd, "$BZdd#", 7)

Definition at line 157 of file ieq45driver.h.

◆ alignGPSScope

#define alignGPSScope ( fd)
Value:
write(fd, ":Aa#", 5)

Definition at line 147 of file ieq45driver.h.

◆ decreaseReticleBrightness

#define decreaseReticleBrightness ( fd)
Value:
write(fd, ":B-#", 5)

Definition at line 163 of file ieq45driver.h.

◆ disableDecAltPec

#define disableDecAltPec ( fd)
Value:
write(fd, ":QA-#", 6)

Definition at line 153 of file ieq45driver.h.

◆ disableRaAzPec

#define disableRaAzPec ( fd)
Value:
write(fd, ":QZ-#", 6)

Definition at line 155 of file ieq45driver.h.

◆ enableDecAltPec

#define enableDecAltPec ( fd)
Value:
write(fd, ":QA+#", 6)

Definition at line 152 of file ieq45driver.h.

◆ enableRaAzPec

#define enableRaAzPec ( fd)
Value:
write(fd, ":QZ+#", 6)

Definition at line 154 of file ieq45driver.h.

◆ getIEQ45Alt

#define getIEQ45Alt ( fd,
x )
Value:
getCommandSexa(fd, x, ":GA#")
int getCommandSexa(int fd, double *value, const char *cmd)

Definition at line 117 of file ieq45driver.h.

◆ getIEQ45Az

#define getIEQ45Az ( fd,
x )
Value:
getCommandSexa(fd, x, ":GZ#")

Definition at line 118 of file ieq45driver.h.

◆ getIEQ45DEC

#define getIEQ45DEC ( fd,
x )
Value:
getCommandSexa(fd, x, ":GD#")

Definition at line 111 of file ieq45driver.h.

◆ getIEQ45RA

#define getIEQ45RA ( fd,
x )
Value:
getCommandSexa(fd, x, ":GR#")

Definition at line 110 of file ieq45driver.h.

◆ getLocalTime24

#define getLocalTime24 ( fd,
x )
Value:
getCommandSexa(fd, x, ":GL#")

Definition at line 115 of file ieq45driver.h.

◆ getSDTime

#define getSDTime ( fd,
x )
Value:
getCommandSexa(fd, x, ":GS#")

Definition at line 116 of file ieq45driver.h.

◆ getUTCOffset

#define getUTCOffset ( fd,
x )
Value:
getCommandInt(fd, x, ":GG#")
int getCommandInt(int fd, int *value, const char *cmd)

Definition at line 130 of file ieq45driver.h.

◆ gpsRestart

#define gpsRestart ( fd)
Value:
write(fd, ":I#", 4);

Definition at line 150 of file ieq45driver.h.

◆ gpsSleep

#define gpsSleep ( fd)
Value:
write(fd, ":hN#", 5)

Definition at line 148 of file ieq45driver.h.

◆ gpsWakeUp

#define gpsWakeUp ( fd)
Value:
write(fd, ":hW#", 5);

Definition at line 149 of file ieq45driver.h.

◆ increaseReticleBrightness

#define increaseReticleBrightness ( fd)
Value:
write(fd, ":B+#", 5)

Definition at line 162 of file ieq45driver.h.

◆ MaxFocuserSpeed

#define MaxFocuserSpeed   4

Definition at line 107 of file ieq45driver.h.

◆ MaxReticleDutyCycle

#define MaxReticleDutyCycle   15

Definition at line 106 of file ieq45driver.h.

◆ seekHomeAndSave

#define seekHomeAndSave ( fd)
Value:
write(fd, ":hS#", 5)

Definition at line 166 of file ieq45driver.h.

◆ seekHomeAndSet

#define seekHomeAndSet ( fd)
Value:
write(fd, ":hF#", 5)

Definition at line 167 of file ieq45driver.h.

◆ SelenographicSync

#define SelenographicSync ( fd)
Value:
write(fd, ":CL#", 5);

Definition at line 158 of file ieq45driver.h.

◆ setFocuserSpeed

#define setFocuserSpeed ( fd,
x )
Value:
setCommandInt(fd, x, ":F")
int setCommandInt(int fd, int data, const char *cmd)

Definition at line 137 of file ieq45driver.h.

◆ setLocalTime

#define setLocalTime ( fd,
x,
y,
z )
Value:
setCommandXYZ(fd, x, y, z, ":SL")
int setCommandXYZ(int fd, int x, int y, int z, const char *cmd, bool addSpace)

Definition at line 141 of file ieq45driver.h.

◆ setReticleFlashRate

#define setReticleFlashRate ( fd,
x )
Value:
setCommandInt(fd, x, ":B")

Definition at line 136 of file ieq45driver.h.

◆ setSDTime

#define setSDTime ( fd,
x,
y,
z )
Value:
setCommandXYZ(fd, x, y, z, ":SS")

Definition at line 142 of file ieq45driver.h.

◆ setSlewSpeed

#define setSlewSpeed ( fd,
x )
Value:
setCommandInt(fd, x, ":Sw")

Definition at line 138 of file ieq45driver.h.

◆ slewToAltAz

#define slewToAltAz ( fd)
Value:
int setStandardProcedure(int fd, const char *data)

Definition at line 160 of file ieq45driver.h.

◆ slewToPark

#define slewToPark ( fd)
Value:
write(fd, ":hP#", 5)

Definition at line 170 of file ieq45driver.h.

◆ toggleTimeFormat

#define toggleTimeFormat ( fd)
Value:
write(fd, ":H#", 4)

Definition at line 161 of file ieq45driver.h.

◆ turnFanOff

#define turnFanOff ( fd)
Value:
write(fd, ":f-#", 5)

Definition at line 165 of file ieq45driver.h.

◆ turnFanOn

#define turnFanOn ( fd)
Value:
write(fd, ":f+#", 5)

Definition at line 164 of file ieq45driver.h.

◆ turnFieldDeRotatorOff

#define turnFieldDeRotatorOff ( fd)
Value:
write(fd, ":r-#", 5)

Definition at line 169 of file ieq45driver.h.

◆ turnFieldDeRotatorOn

#define turnFieldDeRotatorOn ( fd)
Value:
write(fd, ":r+#", 5)

Definition at line 168 of file ieq45driver.h.

◆ turnGPSOff

#define turnGPSOff ( fd)
Value:
write(fd, ":g-#", 5)

Definition at line 146 of file ieq45driver.h.

◆ turnGPSOn

#define turnGPSOn ( fd)
Value:
write(fd, ":g+#", 5)

Definition at line 145 of file ieq45driver.h.

◆ updateGPS_System

#define updateGPS_System ( fd)
Value:

Definition at line 151 of file ieq45driver.h.

Enumeration Type Documentation

◆ DeepSkyCatalog

Enumerator
IEQ45_NGC 
IEQ45_IC 
IEQ45_UGC 
IEQ45_CALDWELL 
IEQ45_ARP 
IEQ45_ABELL 
IEQ45_MESSIER_C 

Definition at line 87 of file ieq45driver.h.

◆ StarCatalog

Enumerator
IEQ45_STAR 
IEQ45_SAO 
IEQ45_GCVS 

Definition at line 80 of file ieq45driver.h.

◆ TAlign

enum TAlign
Enumerator
IEQ45_ALIGN_POLAR 
IEQ45_ALIGN_ALTAZ 
IEQ45_ALIGN_LAND 

Definition at line 33 of file ieq45driver.h.

◆ TCatalog

enum TCatalog
Enumerator
IEQ45_STAR_C 
IEQ45_DEEPSKY_C 

Definition at line 74 of file ieq45driver.h.

◆ TDirection

enum TDirection
Enumerator
IEQ45_NORTH 
IEQ45_WEST 
IEQ45_EAST 
IEQ45_SOUTH 
IEQ45_ALL 

Definition at line 40 of file ieq45driver.h.

◆ TFocusMotion

Enumerator
IEQ45_FOCUSIN 
IEQ45_FOCUSOUT 

Definition at line 62 of file ieq45driver.h.

◆ TFocusSpeed

Enumerator
IEQ45_HALTFOCUS 
IEQ45_FOCUSSLOW 
IEQ45_FOCUSFAST 

Definition at line 67 of file ieq45driver.h.

◆ TFormat

enum TFormat
Enumerator
IEQ45_SHORT_FORMAT 
IEQ45_LONG_FORMAT 

Definition at line 49 of file ieq45driver.h.

◆ TFreq

enum TFreq
Enumerator
IEQ45_TRACK_SIDERAL 
IEQ45_TRACK_LUNAR 
IEQ45_TRACK_SOLAR 
IEQ45_TRACK_ZERO 

Definition at line 98 of file ieq45driver.h.

◆ TSlew

enum TSlew
Enumerator
IEQ45_SLEW_MAX 
IEQ45_SLEW_FIND 
IEQ45_SLEW_CENTER 
IEQ45_SLEW_GUIDE 

Definition at line 25 of file ieq45driver.h.

◆ TTimeFormat

Enumerator
IEQ45_24 
IEQ45_AM 
IEQ45_PM 

Definition at line 55 of file ieq45driver.h.

Function Documentation

◆ abortSlew()

int abortSlew ( int fd)

Definition at line 1759 of file lx200driver.cpp.

◆ ACK()

char ACK ( int fd)

Definition at line 108 of file lx200driver.cpp.

◆ check_IEQ45_connection()

int check_IEQ45_connection ( int fd)

Definition at line 146 of file ieq45driver8406.c.

◆ checkIEQ45Format()

int checkIEQ45Format ( int fd)

Definition at line 1363 of file ieq45driver8406.c.

◆ getCalendarDate()

int getCalendarDate ( int fd,
char * date )

Definition at line 315 of file lx200driver.cpp.

◆ getCommandInt()

int getCommandInt ( int fd,
int * value,
const char * cmd )

Definition at line 180 of file lx200driver.cpp.

◆ getCommandSexa()

int getCommandSexa ( int fd,
double * value,
const char * cmd )

Definition at line 143 of file lx200driver.cpp.

◆ getCommandString()

int getCommandString ( int fd,
char * data,
const char * cmd )

Definition at line 223 of file lx200driver.cpp.

◆ getHomeSearchStatus()

int getHomeSearchStatus ( int fd,
int * status )

Definition at line 694 of file lx200driver.cpp.

◆ getNumberOfBars()

int getNumberOfBars ( int fd,
int * value )

Definition at line 502 of file ieq45driver8406.c.

◆ getOTATemp()

int getOTATemp ( int fd,
double * value )

Definition at line 739 of file lx200driver.cpp.

◆ getSiteLatitude()

int getSiteLatitude ( int fd,
int * dd,
int * mm )

Definition at line 403 of file ieq45driver8406.c.

◆ getSiteLongitude()

int getSiteLongitude ( int fd,
int * ddd,
int * mm )

Definition at line 434 of file ieq45driver8406.c.

◆ getSiteName()

int getSiteName ( int fd,
char * siteName,
int siteNum )

Definition at line 415 of file lx200driver.cpp.

◆ getTimeFormat()

int getTimeFormat ( int fd,
int * format )

Definition at line 368 of file lx200driver.cpp.

◆ getTrackFreq()

int getTrackFreq ( int fd,
double * value )

Definition at line 649 of file lx200driver.cpp.

◆ HaltMovement()

int HaltMovement ( int fd,
int direction )

Definition at line 1709 of file lx200driver.cpp.

◆ MoveTo()

int MoveTo ( int fd,
int direction )

Definition at line 1614 of file lx200driver.cpp.

◆ selectAPTrackingMode()

int selectAPTrackingMode ( int fd,
int trackMode )

Definition at line 442 of file lx200apdriver.cpp.

◆ selectCatalogObject()

int selectCatalogObject ( int fd,
int catalog,
int NNNN )

Definition at line 1878 of file lx200driver.cpp.

◆ selectSite()

int selectSite ( int fd,
int siteNum )

Definition at line 1826 of file lx200driver.cpp.

◆ selectSubCatalog()

int selectSubCatalog ( int fd,
int catalog,
int subCatalog )

Definition at line 1928 of file lx200driver.cpp.

◆ selectTrackingMode()

int selectTrackingMode ( int fd,
int trackMode )

Definition at line 2118 of file lx200driver.cpp.

◆ SendPulseCmd()

int SendPulseCmd ( int fd,
int direction,
int duration_msec )

Definition at line 1157 of file ieq45driver8406.c.

◆ setAlignmentMode()

int setAlignmentMode ( int fd,
unsigned int alignMode )

Definition at line 1060 of file lx200driver.cpp.

◆ setCalenderDate()

int setCalenderDate ( int fd,
int dd,
int mm,
int yy )

Definition at line 825 of file ieq45driver8406.c.

◆ setCommandInt()

int setCommandInt ( int fd,
int data,
const char * cmd )

Definition at line 821 of file lx200driver.cpp.

◆ setCommandXYZ()

int setCommandXYZ ( int fd,
int x,
int y,
int z,
const char * cmd )

Definition at line 784 of file ieq45driver8406.c.

◆ setFocuserMotion()

int setFocuserMotion ( int fd,
int motionType )

Definition at line 1405 of file lx200driver.cpp.

◆ setFocuserSpeedMode()

int setFocuserSpeedMode ( int fd,
int speedMode )

Definition at line 1435 of file lx200driver.cpp.

◆ setGPSFocuserSpeed()

int setGPSFocuserSpeed ( int fd,
int speed )

Definition at line 1471 of file lx200driver.cpp.

◆ setMaxElevationLimit()

int setMaxElevationLimit ( int fd,
int max )

Definition at line 873 of file lx200driver.cpp.

◆ setMaxSlewRate()

int setMaxSlewRate ( int fd,
int slewRate )

Definition at line 892 of file lx200driver.cpp.

◆ setMinElevationLimit()

int setMinElevationLimit ( int fd,
int min )

Definition at line 849 of file lx200driver.cpp.

◆ setObjAlt()

int setObjAlt ( int fd,
double alt )

Definition at line 1301 of file lx200driver.cpp.

◆ setObjAz()

int setObjAz ( int fd,
double az )

Definition at line 1279 of file lx200driver.cpp.

◆ setObjectDEC()

int setObjectDEC ( int fd,
double dec )

Definition at line 753 of file ieq45driver8406.c.

◆ setObjectRA()

int setObjectRA ( int fd,
double ra )

Definition at line 735 of file ieq45driver8406.c.

◆ setSiteLatitude()

int setSiteLatitude ( int fd,
double Lat )

Definition at line 884 of file ieq45driver8406.c.

◆ setSiteLongitude()

int setSiteLongitude ( int fd,
double Long )

Definition at line 872 of file ieq45driver8406.c.

◆ setSiteName()

int setSiteName ( int fd,
char * siteName,
int siteNum )

Definition at line 1323 of file lx200driver.cpp.

◆ setSlewMode()

int setSlewMode ( int fd,
int slewMode )

Definition at line 1361 of file lx200driver.cpp.

◆ setStandardProcedure()

int setStandardProcedure ( int fd,
char * writeData )

Definition at line 657 of file ieq45driver8406.c.

◆ setTrackFreq()

int setTrackFreq ( int fd,
double trackF )

Definition at line 1508 of file lx200driver.cpp.

◆ setUTCOffset()

int setUTCOffset ( int fd,
double hours )

Definition at line 1160 of file lx200driver.cpp.

◆ Slew()

int Slew ( int fd)

Definition at line 1568 of file lx200driver.cpp.

◆ Sync()

int Sync ( int fd,
char * matchedObject )

Definition at line 1778 of file lx200driver.cpp.

◆ updateIntelliscopeCoord()

int updateIntelliscopeCoord ( int fd,
double * ra,
double * dec )

Definition at line 609 of file ieq45driver8406.c.

◆ updateSkyCommanderCoord()

int updateSkyCommanderCoord ( int fd,
double * ra,
double * dec )

Definition at line 579 of file ieq45driver8406.c.