TwiceAsNice
2019-02-18
|
#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include <stdarg.h>
#include <cmath>
#include <unistd.h>
#include <ctime>
#include <fcntl.h>
#include <cerrno>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include "libfli.h"
#include "indidevapi.h"
#include "eventloop.h"
#include "indicom.h"
Classes | |
struct | cam_t |
Macros | |
#define | mydev "FLI Wheel" |
#define | MAIN_GROUP "Main Control" |
#define | LAST_FILTER 14 /* Max slot index */ |
#define | FIRST_FILTER 0 /* Min slot index */ |
#define | currentFilter FilterN[0].value |
#define | POLLMS 1000 |
#define | LIBVERSIZ 1024 |
#define | PREFIXSIZ 64 |
#define | PIPEBUFSIZ 8192 |
#define | FRAME_ILEN 64 |
Functions | |
void | ISInit (void) |
Send client definitions of all properties. More... | |
void | getBasicData (void) |
void | ISPoll (void *) |
Used to read periodically the data from the device. More... | |
void | handleExposure (void *) |
void | connectFilter (void) |
int | findwheel (flidomain_t domain) |
int | manageDefaults (char errmsg[]) |
int | checkPowerS (ISwitchVectorProperty *sp) |
int | checkPowerN (INumberVectorProperty *np) |
int | checkPowerT (ITextVectorProperty *tp) |
int | getOnSwitch (ISwitchVectorProperty *sp) |
int | isFilterConnected (void) |
double | min (void) |
double | max (void) |
void | ISGetProperties (const char *dev) |
Get Device Properties. More... | |
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... | |
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) |
Variables | |
char * | me |
int | errno |
static flidev_t | fli_dev |
static cam_t * | FLIWheel |
static int | portSwitchIndex |
static int | simulation |
static int | targetFilter |
long int | Domains [] = { FLIDOMAIN_USB, FLIDOMAIN_SERIAL, FLIDOMAIN_PARALLEL_PORT, FLIDOMAIN_INET } |
static ISwitch | PowerS [] = { { "CONNECT", "Connect", ISS_OFF, 0, 0 }, { "DISCONNECT", "Disconnect", ISS_ON, 0, 0 } } |
static ISwitchVectorProperty | PowerSP |
static ISwitch | PortS [] |
static ISwitchVectorProperty | PortSP |
static INumber | FilterN [] |
static INumberVectorProperty | FilterNP |
#define FIRST_FILTER 0 /* Min slot index */ |
#define FRAME_ILEN 64 |
#define LAST_FILTER 14 /* Max slot index */ |
#define LIBVERSIZ 1024 |
#define MAIN_GROUP "Main Control" |
#define mydev "FLI Wheel" |
#define PIPEBUFSIZ 8192 |
#define POLLMS 1000 |
#define PREFIXSIZ 64 |
int checkPowerN | ( | INumberVectorProperty * | np | ) |
int checkPowerS | ( | ISwitchVectorProperty * | sp | ) |
int checkPowerT | ( | ITextVectorProperty * | tp | ) |
void connectFilter | ( | void | ) |
int findwheel | ( | flidomain_t | domain | ) |
void getBasicData | ( | void | ) |
int getOnSwitch | ( | ISwitchVectorProperty * | sp | ) |
void handleExposure | ( | void * | ) |
int isFilterConnected | ( | void | ) |
void ISInit | ( | void | ) |
Send client definitions of all properties.
void ISPoll | ( | void * | p | ) |
Used to read periodically the data from the device.
p | the AAGCloudWatcher object |
int manageDefaults | ( | char | errmsg[] | ) |
double max | ( | void | ) |
double min | ( | void | ) |
long int Domains[] = { FLIDOMAIN_USB, FLIDOMAIN_SERIAL, FLIDOMAIN_PARALLEL_PORT, FLIDOMAIN_INET } |
int errno |
|
static |
|
static |
|
static |
|
static |
char* me |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |