TwiceAsNice  2019-02-18
Macros | Functions | Variables
lx200driver.cpp File Reference
#include "lx200driver.h"
#include "indicom.h"
#include "indilogger.h"
#include <cstring>
#include <unistd.h>
#include <termios.h>
Include dependency graph for lx200driver.cpp:

Macros

#define LX200_TIMEOUT   5 /* FD timeout in seconds */
 
#define RB_MAX_LEN   64
 

Functions

void setLX200Debug (const char *deviceName, unsigned int debug_level)
 
char ACK (int fd)
 
int check_lx200_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 getHomeSearchStatus (int fd, int *status)
 
int getOTATemp (int fd, double *value)
 
int getTimeFormat (int fd, int *format)
 
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, const 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 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 SendPulseCmd (int fd, int direction, uint32_t duration_msec)
 
int checkLX200Format (int fd)
 
int getLX200Format ()
 
int selectSite (int fd, int siteNum)
 
int selectCatalogObject (int fd, int catalog, int NNNN)
 
int selectSubCatalog (int fd, int catalog, int subCatalog)
 
int isSlewComplete (int fd)
 
int setGPSFocuserSpeed (int fd, int speed)
 
int SendPulseCmd (int fd, int direction, int duration_msec)
 

Variables

int controller_format
 
char lx200Name [MAXINDIDEVICE]
 
unsigned int DBG_SCOPE
 

Macro Definition Documentation

◆ LX200_TIMEOUT

#define LX200_TIMEOUT   5 /* FD timeout in seconds */

◆ RB_MAX_LEN

#define RB_MAX_LEN   64

Function Documentation

◆ abortSlew()

int abortSlew ( int  fd)

◆ ACK()

char ACK ( int  fd)

◆ check_lx200_connection()

int check_lx200_connection ( int  fd)

◆ checkLX200Format()

int checkLX200Format ( int  fd)

◆ getCalendarDate()

int getCalendarDate ( int  fd,
char *  date 
)

◆ getCommandInt()

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

◆ getCommandSexa()

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

◆ getCommandString()

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

◆ getHomeSearchStatus()

int getHomeSearchStatus ( int  fd,
int *  status 
)

◆ getLX200Format()

int getLX200Format ( )

◆ getOTATemp()

int getOTATemp ( int  fd,
double *  value 
)

◆ getSiteLatitude()

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

◆ getSiteLongitude()

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

◆ getSiteName()

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

◆ getTimeFormat()

int getTimeFormat ( int  fd,
int *  format 
)

◆ getTrackFreq()

int getTrackFreq ( int  fd,
double *  value 
)

◆ HaltMovement()

int HaltMovement ( int  fd,
int  direction 
)

◆ isSlewComplete()

int isSlewComplete ( int  fd)

◆ MoveTo()

int MoveTo ( int  fd,
int  direction 
)

◆ selectCatalogObject()

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

◆ selectSite()

int selectSite ( int  fd,
int  siteNum 
)

◆ selectSubCatalog()

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

◆ selectTrackingMode()

int selectTrackingMode ( int  fd,
int  trackMode 
)

◆ SendPulseCmd() [1/2]

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

◆ SendPulseCmd() [2/2]

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

◆ setAlignmentMode()

int setAlignmentMode ( int  fd,
unsigned int  alignMode 
)

◆ setCalenderDate()

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

◆ setCommandInt()

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

◆ setCommandXYZ()

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

◆ setFocuserMotion()

int setFocuserMotion ( int  fd,
int  motionType 
)

◆ setFocuserSpeedMode()

int setFocuserSpeedMode ( int  fd,
int  speedMode 
)

◆ setGPSFocuserSpeed()

int setGPSFocuserSpeed ( int  fd,
int  speed 
)

◆ setLX200Debug()

void setLX200Debug ( const char *  deviceName,
unsigned int  debug_level 
)

◆ setMaxElevationLimit()

int setMaxElevationLimit ( int  fd,
int  max 
)

◆ setMaxSlewRate()

int setMaxSlewRate ( int  fd,
int  slewRate 
)

◆ setMinElevationLimit()

int setMinElevationLimit ( int  fd,
int  min 
)

◆ setObjAlt()

int setObjAlt ( int  fd,
double  alt 
)

◆ setObjAz()

int setObjAz ( int  fd,
double  az 
)

◆ setObjectDEC()

int setObjectDEC ( int  fd,
double  dec 
)

◆ setObjectRA()

int setObjectRA ( int  fd,
double  ra 
)

◆ setSiteLatitude()

int setSiteLatitude ( int  fd,
double  Lat 
)

◆ setSiteLongitude()

int setSiteLongitude ( int  fd,
double  Long 
)

◆ setSiteName()

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

◆ setSlewMode()

int setSlewMode ( int  fd,
int  slewMode 
)

◆ setStandardProcedure()

int setStandardProcedure ( int  fd,
const char *  writeData 
)

◆ setTrackFreq()

int setTrackFreq ( int  fd,
double  trackF 
)

◆ setUTCOffset()

int setUTCOffset ( int  fd,
double  hours 
)

◆ Slew()

int Slew ( int  fd)

◆ Sync()

int Sync ( int  fd,
char *  matchedObject 
)

Variable Documentation

◆ controller_format

int controller_format

◆ DBG_SCOPE

unsigned int DBG_SCOPE

◆ lx200Name

char lx200Name[MAXINDIDEVICE]