Instrument Neutral Distributed Interface INDI 2.2.5
magellandriver.h File Reference

Go to the source code of this file.

Macros

#define MAGELLAN_TIMEOUT   5 /* FD timeout in seconds */
#define MAGELLAN_ERROR   -1 /* Default Error Code */
#define MAGELLAN_OK   0 /* Default Success Code */
#define MAGELLAN_ACK   'P' /* Default Success Code */
#define CENTURY_THRESHOLD   91 /* When to goto 21st Century */
#define CONNECTION_RETRIES   2 /* Retry Attempt cut-off */
#define getMAGELLANRA(fd, x)
#define getMAGELLANDEC(fd, x)

Enumerations

enum  TFreq { MAGELLAN_TRACK_DEFAULT , MAGELLAN_TRACK_LUNAR , MAGELLAN_TRACK_MANUAL }
enum  TTimeFormat { MAGELLAN_24 , MAGELLAN_AM , MAGELLAN_PM }

Functions

char ACK (int fd)
int check_magellan_connection (int fd)
int getCommandSexa (int fd, double *value, const char *cmd)
int getCalendarDate (int fd, char *date)

Macro Definition Documentation

◆ CENTURY_THRESHOLD

#define CENTURY_THRESHOLD   91 /* When to goto 21st Century */

Definition at line 45 of file magellandriver.h.

◆ CONNECTION_RETRIES

#define CONNECTION_RETRIES   2 /* Retry Attempt cut-off */

Definition at line 46 of file magellandriver.h.

◆ getMAGELLANDEC

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

Definition at line 50 of file magellandriver.h.

◆ getMAGELLANRA

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

Definition at line 49 of file magellandriver.h.

◆ MAGELLAN_ACK

#define MAGELLAN_ACK   'P' /* Default Success Code */

Definition at line 43 of file magellandriver.h.

◆ MAGELLAN_ERROR

#define MAGELLAN_ERROR   -1 /* Default Error Code */

Definition at line 41 of file magellandriver.h.

◆ MAGELLAN_OK

#define MAGELLAN_OK   0 /* Default Success Code */

Definition at line 42 of file magellandriver.h.

◆ MAGELLAN_TIMEOUT

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

Definition at line 40 of file magellandriver.h.

Enumeration Type Documentation

◆ TFreq

enum TFreq
Enumerator
MAGELLAN_TRACK_DEFAULT 
MAGELLAN_TRACK_LUNAR 
MAGELLAN_TRACK_MANUAL 

Definition at line 25 of file magellandriver.h.

◆ TTimeFormat

Enumerator
MAGELLAN_24 
MAGELLAN_AM 
MAGELLAN_PM 

Definition at line 33 of file magellandriver.h.

Function Documentation

◆ ACK()

char ACK ( int fd)

Definition at line 108 of file lx200driver.cpp.

◆ check_magellan_connection()

int check_magellan_connection ( int fd)

Definition at line 59 of file magellandriver.c.

◆ getCalendarDate()

int getCalendarDate ( int fd,
char * date )

Definition at line 315 of file lx200driver.cpp.

◆ getCommandSexa()

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

Definition at line 143 of file lx200driver.cpp.