TwiceAsNice
2019-02-18
|
#include "spectracyber.h"
#include "config.h"
#include <indicom.h>
#include <libnova/julian_day.h>
#include <memory>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
Macros | |
#define | mydev "SpectraCyber" |
#define | BASIC_GROUP "Main Control" |
#define | OPTIONS_GROUP "Options" |
#define | current_freq FreqNP->np[0].value |
#define | CONT_CHANNEL 0 |
#define | SPEC_CHANNEL 1 |
Functions | |
std::unique_ptr< SpectraCyber > | spectracyber (new SpectraCyber()) |
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 | |
const int | SPECTROMETER_ERROR_BUFFER = 128 |
const int | SPECTROMETER_CMD_LEN = 5 |
const int | SPECTROMETER_CMD_REPLY = 4 |
const double | SPECTROMETER_REST_FREQ = 48.6 |
const double | SPECTROMETER_RF_FREQ = 1371.805 |
const unsigned int | SPECTROMETER_OFFSET = 0x050 |
const double | SPECTROMETER_REST_CORRECTION = 0.090 |
static const char * | contFMT = ".ascii_cont" |
static const char * | specFMT = ".ascii_spec" |
#define BASIC_GROUP "Main Control" |
#define CONT_CHANNEL 0 |
#define current_freq FreqNP->np[0].value |
#define mydev "SpectraCyber" |
#define OPTIONS_GROUP "Options" |
#define SPEC_CHANNEL 1 |
std::unique_ptr<SpectraCyber> spectracyber | ( | new | SpectraCyber() | ) |
|
static |
|
static |
const int SPECTROMETER_CMD_LEN = 5 |
const int SPECTROMETER_CMD_REPLY = 4 |
const int SPECTROMETER_ERROR_BUFFER = 128 |
const unsigned int SPECTROMETER_OFFSET = 0x050 |
const double SPECTROMETER_REST_CORRECTION = 0.090 |
const double SPECTROMETER_REST_FREQ = 48.6 |
const double SPECTROMETER_RF_FREQ = 1371.805 |