TwiceAsNice  2019-02-18
Macros | Functions | Variables
sbig_ccd.cpp File Reference
#include "sbig_ccd.h"
#include <eventloop.h>
#include <math.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
Include dependency graph for sbig_ccd.cpp:

Macros

#define TEMPERATURE_POLL_MS   5000 /* Temperature Polling time (ms) */
 
#define MAX_RESOLUTION   4096 /* Maximum resolutoin for secondary chip */
 
#define MAX_DEVICES   20 /* Max device cameraCount */
 
#define MAX_THREAD_RETRIES   3
 
#define MAX_THREAD_WAIT   300000
 

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 SBIGCCDcameras [MAX_DEVICES]
 
pthread_mutex_t sbigMutex = PTHREAD_MUTEX_INITIALIZER
 

Macro Definition Documentation

◆ MAX_DEVICES

#define MAX_DEVICES   20 /* Max device cameraCount */

◆ MAX_RESOLUTION

#define MAX_RESOLUTION   4096 /* Maximum resolutoin for secondary chip */

◆ MAX_THREAD_RETRIES

#define MAX_THREAD_RETRIES   3

◆ MAX_THREAD_WAIT

#define MAX_THREAD_WAIT   300000

◆ TEMPERATURE_POLL_MS

#define TEMPERATURE_POLL_MS   5000 /* Temperature Polling time (ms) */

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

SBIGCCD* cameras[MAX_DEVICES]
static

◆ sbigMutex

pthread_mutex_t sbigMutex = PTHREAD_MUTEX_INITIALIZER