TwiceAsNice  2019-02-18
Macros | Functions | Variables
mi_ccd.cpp File Reference
#include "mi_ccd.h"
#include "config.h"
#include <math.h>
Include dependency graph for mi_ccd.cpp:

Macros

#define TEMP_THRESHOLD   0.2 /* Differential temperature threshold (°C) */
 
#define MAX_DEVICES   4 /* Max device cameraCount */
 
#define MAX_ERROR_LEN   64 /* Max length of error buffer */
 

Functions

static void enumCallback (int cameraId)
 
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...
 
static void mirror_image (void *buf, size_t w, size_t d)
 

Variables

char * me
 
static int cameraCount
 
static int cameraIds [MAX_DEVICES]
 
static MICCDcameras [MAX_DEVICES]
 

Macro Definition Documentation

◆ MAX_DEVICES

#define MAX_DEVICES   4 /* Max device cameraCount */

◆ MAX_ERROR_LEN

#define MAX_ERROR_LEN   64 /* Max length of error buffer */

◆ TEMP_THRESHOLD

#define TEMP_THRESHOLD   0.2 /* Differential temperature threshold (°C) */

Function Documentation

◆ cleanup()

static void cleanup ( )
static

◆ enumCallback()

static void enumCallback ( int  cameraId)
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 
)

◆ mirror_image()

static void mirror_image ( void *  buf,
size_t  w,
size_t  d 
)
static

Variable Documentation

◆ cameraCount

int cameraCount
static

◆ cameraIds

int cameraIds[MAX_DEVICES]
static

◆ cameras

MICCD* cameras[MAX_DEVICES]
static

◆ me

char* me