TwiceAsNice  2019-02-18
Macros | Functions | Variables
generic_ccd.cpp File Reference
#include <memory>
#include <time.h>
#include <math.h>
#include <unistd.h>
#include <sys/time.h>
#include "config.h"
#include "indidevapi.h"
#include "eventloop.h"
#include "generic_ccd.h"
Include dependency graph for generic_ccd.cpp:

Macros

#define MAX_CCD_TEMP   45 /* Max CCD temperature */
 
#define MIN_CCD_TEMP   -55 /* Min CCD temperature */
 
#define MAX_X_BIN   16 /* Max Horizontal binning */
 
#define MAX_Y_BIN   16 /* Max Vertical binning */
 
#define MAX_PIXELS   4096 /* Max number of pixels in one dimension */
 
#define TEMP_THRESHOLD   .25 /* Differential temperature threshold (C)*/
 
#define MAX_DEVICES   20 /* Max device cameraCount */
 

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

static int cameraCount
 
static GenericCCDcameras [MAX_DEVICES]
 
struct {
   int   vid
 
   int   pid
 
   const char *   name
 
deviceTypes [] = { { 0x0001, 0x0001, "Model 1" }, { 0x0001, 0x0002, "Model 2" }, { 0, 0, nullptr } }
 

Macro Definition Documentation

◆ MAX_CCD_TEMP

#define MAX_CCD_TEMP   45 /* Max CCD temperature */

◆ MAX_DEVICES

#define MAX_DEVICES   20 /* Max device cameraCount */

◆ MAX_PIXELS

#define MAX_PIXELS   4096 /* Max number of pixels in one dimension */

◆ MAX_X_BIN

#define MAX_X_BIN   16 /* Max Horizontal binning */

◆ MAX_Y_BIN

#define MAX_Y_BIN   16 /* Max Vertical binning */

◆ MIN_CCD_TEMP

#define MIN_CCD_TEMP   -55 /* Min CCD temperature */

◆ TEMP_THRESHOLD

#define TEMP_THRESHOLD   .25 /* Differential temperature threshold (C)*/

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
static

◆ cameras

GenericCCD* cameras[MAX_DEVICES]
static

◆ deviceTypes

struct { ... } deviceTypes[]

◆ name

const char* name

◆ pid

int pid

◆ vid

int vid