TwiceAsNice  2019-02-18
Classes | Macros | Functions | Variables
gphoto_ccd.cpp File Reference
#include "gphoto_ccd.h"
#include "config.h"
#include "gphoto_driver.h"
#include "gphoto_readimage.h"
#include <stream/streammanager.h>
#include <math.h>
#include <unistd.h>
Include dependency graph for gphoto_ccd.cpp:

Classes

struct  CamDriverInfo
 

Macros

#define FOCUS_TAB   "Focus"
 
#define MAX_DEVICES   5 /* Max device cameraCount */
 
#define STREAMPOLLMS   50
 
#define FOCUS_TIMER   50
 
#define MAX_RETRIES   3
 

Functions

static void cleanup ()
 
void ISInit ()
 Send client definitions of all properties. More...
 
void ISGetProperties (const char *dev)
 Get Device Properties. More...
 
void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int num)
 Update the value of an existing switch vector property. More...
 
void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int num)
 Update the value of an existing text vector property. More...
 
void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int num)
 
void ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 Update data of an existing blob vector property. More...
 
void ISSnoopDevice (XMLEle *root)
 Function defined by Drivers that is called when another Driver it is snooping (by having previously called IDSnoopDevice()) sent any INDI message. More...
 

Variables

char * me
 
static int cameraCount = 0
 
static GPhotoCCDcameras [MAX_DEVICES]
 
static GPContext * context = gp_context_new()
 
static CamDriverInfo camInfos []
 

Macro Definition Documentation

◆ FOCUS_TAB

#define FOCUS_TAB   "Focus"

◆ FOCUS_TIMER

#define FOCUS_TIMER   50

◆ MAX_DEVICES

#define MAX_DEVICES   5 /* Max device cameraCount */

◆ MAX_RETRIES

#define MAX_RETRIES   3

◆ STREAMPOLLMS

#define STREAMPOLLMS   50

Function Documentation

◆ cleanup()

static void cleanup ( )
static

◆ ISInit()

void ISInit ( void  )

Send client definitions of all properties.

◆ ISNewNumber()

void ISNewNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  num 
)

Variable Documentation

◆ cameraCount

int cameraCount = 0
static

◆ cameras

GPhotoCCD* cameras[MAX_DEVICES]
static

◆ camInfos

CamDriverInfo camInfos[]
static
Initial value:
= { { "indi_gphoto_ccd", "GPhoto CCD", "GPhoto" },
{ "indi_canon_ccd", "Canon DSLR", "Canon" },
{ "indi_nikon_ccd", "Nikon DSLR", "Nikon" },
{ "indi_pentax_ccd", "Pentax DSLR", "Pentax" },
{ "indi_sony_ccd", "Sony DSLR", "Sony" },
{ nullptr, nullptr, nullptr } }

◆ context

GPContext* context = gp_context_new()
static

◆ me

char* me