TwiceAsNice  2019-02-18
Functions | Variables
ccd_simulator.cpp File Reference
#include "ccd_simulator.h"
#include "indicom.h"
#include "stream/streammanager.h"
#include "locale_compat.h"
#include <libnova/julian_day.h>
#include <libnova/precession.h>
#include <cmath>
#include <unistd.h>
Include dependency graph for ccd_simulator.cpp:

Functions

std::unique_ptr< CCDSimccdsim (new CCDSim())
 
void ISPoll (void *p)
 Used to read periodically the data from the device. More...
 
void ISGetProperties (const char *dev)
 Get Device Properties. More...
 
void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 Update the value of an existing switch vector property. More...
 
void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
 Update the value of an existing text vector property. More...
 
void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
 
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

pthread_cond_t cv = PTHREAD_COND_INITIALIZER
 
pthread_mutex_t condMutex = PTHREAD_MUTEX_INITIALIZER
 

Function Documentation

◆ ccdsim()

std::unique_ptr<CCDSim> ccdsim ( new   CCDSim())

◆ ISNewNumber()

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

◆ ISPoll()

void ISPoll ( void *  p)

Used to read periodically the data from the device.

Parameters
pthe AAGCloudWatcher object

Variable Documentation

◆ condMutex

pthread_mutex_t condMutex = PTHREAD_MUTEX_INITIALIZER

◆ cv

pthread_cond_t cv = PTHREAD_COND_INITIALIZER