TwiceAsNice  2019-02-18
Macros | Functions | Variables
spectracyber.cpp File Reference
#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>
Include dependency graph for spectracyber.cpp:

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< SpectraCyberspectracyber (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"
 

Macro Definition Documentation

◆ BASIC_GROUP

#define BASIC_GROUP   "Main Control"

◆ CONT_CHANNEL

#define CONT_CHANNEL   0

◆ current_freq

#define current_freq   FreqNP->np[0].value

◆ mydev

#define mydev   "SpectraCyber"

◆ OPTIONS_GROUP

#define OPTIONS_GROUP   "Options"

◆ SPEC_CHANNEL

#define SPEC_CHANNEL   1

Function Documentation

◆ ISNewNumber()

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

◆ spectracyber()

std::unique_ptr<SpectraCyber> spectracyber ( new   SpectraCyber())

Variable Documentation

◆ contFMT

const char* contFMT = ".ascii_cont"
static

◆ specFMT

const char* specFMT = ".ascii_spec"
static

◆ SPECTROMETER_CMD_LEN

const int SPECTROMETER_CMD_LEN = 5

◆ SPECTROMETER_CMD_REPLY

const int SPECTROMETER_CMD_REPLY = 4

◆ SPECTROMETER_ERROR_BUFFER

const int SPECTROMETER_ERROR_BUFFER = 128

◆ SPECTROMETER_OFFSET

const unsigned int SPECTROMETER_OFFSET = 0x050

◆ SPECTROMETER_REST_CORRECTION

const double SPECTROMETER_REST_CORRECTION = 0.090

◆ SPECTROMETER_REST_FREQ

const double SPECTROMETER_REST_FREQ = 48.6

◆ SPECTROMETER_RF_FREQ

const double SPECTROMETER_RF_FREQ = 1371.805