TwiceAsNice
2019-02-18
|
#include <cstring>
#include <sys/stat.h>
#include <stdio.h>
#include <zlib.h>
#include <unistd.h>
#include <termios.h>
#include "indidevapi.h"
#include "eventloop.h"
#include "indicom.h"
#include <config.h>
#include <fitsio.h>
#include "stvdriver.h"
Classes | |
struct | img_t |
Macros | |
#define | mydev "STV Guider" /* Device name */ |
#define | CONNECTION_GROUP "Connection" /* Group name */ |
#define | SETTINGS_GROUP "Setings" /* Group name */ |
#define | BUTTONS_GROUP "Buttons and Knobs" /* Button Pannel */ |
#define | IMAGE_GROUP "Download" /* Button Pannel */ |
#define | currentBuffer BufferN[0].value |
#define | currentX WindowingN[0].value |
#define | currentY WindowingN[1].value |
#define | currentLines WindowingN[2].value |
#define | currentLength WindowingN[3].value |
#define | currentCompression CompressionS[0].s |
#define | TEMPFILE_LEN 16 |
Enumerations | |
enum | STVFrames { LIGHT_FRAME = 0, BIAS_FRAME, DARK_FRAME, FLAT_FRAME } |
Functions | |
void | addFITSKeywords (fitsfile *fptr, IMAGE_INFO *image_info) |
int | writeFITS (const char *filename, IMAGE_INFO *image_info, char errmsg[]) |
void | uploadFile (const char *filename) |
int | ISTerminateTXDisplay (void) |
int | ISRestoreTXDisplay (void) |
int | ISMessageImageInfo (int buffer, IMAGE_INFO *image_info) |
int | ISRequestImageData (int compression, int buffer, int x_offset, int y_offset, int length, int lines) |
int | STV_LRRotaryDecrease (void) |
int | STV_LRRotaryIncrease (void) |
int | STV_UDRotaryDecrease (void) |
int | STV_UDRotaryIncrease (void) |
int | STV_AKey (void) |
int | STV_BKey (void) |
int | STV_Setup (void) |
int | STV_Interrupt (void) |
int | STV_Focus (void) |
int | STV_Image (void) |
int | STV_Monitor (void) |
int | STV_Calibrate (void) |
int | STV_Track (void) |
int | STV_Display (void) |
int | STV_FileOps (void) |
int | STV_RequestImageInfo (int imagebuffer, IMAGE_INFO *image_info) |
int | STV_BufferStatus (int buffer) |
int | STV_RequestImage (int compression, int buffer, int x_offset, int y_offset, int *length, int *lines, int image[][320], IMAGE_INFO *image_info) |
int | STV_Download (void) |
int | STV_TXDisplay (void) |
int | STV_TerminateTXDisplay (void) |
int | STV_RequestAck (void) |
unsigned int | STV_GetBits (unsigned int x, int p, int n) |
int | STV_PrintBuffer (unsigned char *cmdbuf, int n) |
void | handleError (ISwitchVectorProperty *svp, int err, const char *msg) |
static void | ISInit () |
void | ISCallBack (void) |
int | init_serial (char *device_name, int bit_rate, int word_size, int parity, int stop_bits) |
int | STV_ReceivePacket (unsigned char *buf, int mode) |
int | STV_Connect (char *device, int baud) |
int | STV_SetDateTime (char *times) |
double | STV_SetCCDTemperature (double set_value) |
void | ISResetButtons (char *message) |
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... | |
void | ISUpdateDisplay (int buffer, int line) |
#define BUTTONS_GROUP "Buttons and Knobs" /* Button Pannel */ |
#define CONNECTION_GROUP "Connection" /* Group name */ |
#define currentCompression CompressionS[0].s |
#define currentLength WindowingN[3].value |
#define currentLines WindowingN[2].value |
#define currentX WindowingN[0].value |
#define currentY WindowingN[1].value |
#define IMAGE_GROUP "Download" /* Button Pannel */ |
#define mydev "STV Guider" /* Device name */ |
#define SETTINGS_GROUP "Setings" /* Group name */ |
#define TEMPFILE_LEN 16 |
enum STVFrames |
void addFITSKeywords | ( | fitsfile * | fptr, |
IMAGE_INFO * | image_info | ||
) |
void handleError | ( | ISwitchVectorProperty * | svp, |
int | err, | ||
const char * | msg | ||
) |
int init_serial | ( | char * | device_name, |
int | bit_rate, | ||
int | word_size, | ||
int | parity, | ||
int | stop_bits | ||
) |
void ISCallBack | ( | void | ) |
|
static |
int ISMessageImageInfo | ( | int | buffer, |
IMAGE_INFO * | image_info | ||
) |
int ISRequestImageData | ( | int | compression, |
int | buffer, | ||
int | x_offset, | ||
int | y_offset, | ||
int | length, | ||
int | lines | ||
) |
void ISResetButtons | ( | char * | message | ) |
int ISRestoreTXDisplay | ( | void | ) |
int ISTerminateTXDisplay | ( | void | ) |
void ISUpdateDisplay | ( | int | buffer, |
int | line | ||
) |
int STV_AKey | ( | void | ) |
int STV_BKey | ( | void | ) |
int STV_BufferStatus | ( | int | buffer | ) |
int STV_Calibrate | ( | void | ) |
int STV_Connect | ( | char * | device, |
int | baud | ||
) |
int STV_Display | ( | void | ) |
int STV_Download | ( | void | ) |
int STV_FileOps | ( | void | ) |
int STV_Focus | ( | void | ) |
unsigned int STV_GetBits | ( | unsigned int | x, |
int | p, | ||
int | n | ||
) |
int STV_Image | ( | void | ) |
int STV_Interrupt | ( | void | ) |
int STV_LRRotaryDecrease | ( | void | ) |
int STV_LRRotaryIncrease | ( | void | ) |
int STV_Monitor | ( | void | ) |
int STV_PrintBuffer | ( | unsigned char * | cmdbuf, |
int | n | ||
) |
int STV_ReceivePacket | ( | unsigned char * | buf, |
int | mode | ||
) |
int STV_RequestAck | ( | void | ) |
int STV_RequestImage | ( | int | compression, |
int | buffer, | ||
int | x_offset, | ||
int | y_offset, | ||
int * | length, | ||
int * | lines, | ||
int | image[][320], | ||
IMAGE_INFO * | image_info | ||
) |
int STV_RequestImageInfo | ( | int | imagebuffer, |
IMAGE_INFO * | image_info | ||
) |
double STV_SetCCDTemperature | ( | double | set_value | ) |
int STV_SetDateTime | ( | char * | times | ) |
int STV_Setup | ( | void | ) |
int STV_TerminateTXDisplay | ( | void | ) |
int STV_Track | ( | void | ) |
int STV_TXDisplay | ( | void | ) |
int STV_UDRotaryDecrease | ( | void | ) |
int STV_UDRotaryIncrease | ( | void | ) |
void uploadFile | ( | const char * | filename | ) |
int writeFITS | ( | const char * | filename, |
IMAGE_INFO * | image_info, | ||
char | errmsg[] | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int fd |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
char tracking_buf[1024] |
|
static |
|
static |
|
static |
ITextVectorProperty UTCTP |
|
static |
|
static |
|
static |
|
static |