TwiceAsNice  2019-02-18
Classes | Macros | Enumerations | Functions | Variables
stv.c File Reference
#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"
Include dependency graph for stv.c:

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)
 

Variables

static int compression = OFF
 
static int acquiring = OFF
 
static int guiding = OFF
 
static int processing = OFF
 
static img_tSTVImg
 
int fd
 
static int cb = -1
 
char tracking_buf [1024]
 
static IText StatusT []
 
static ITextVectorProperty StatusTP
 
static ISwitch PowerS []
 
static ISwitchVectorProperty PowerSP
 
static IText PortT [] = { { "PORT", "Port", NULL, 0, 0, 0 }, { "SPEED", "Speed", NULL, 0, 0, 0 } }
 
static ITextVectorProperty PortTP
 
static ISwitch TXDisplayS []
 
static ISwitchVectorProperty TXDisplaySP
 
static IText DisplayCT []
 
static ITextVectorProperty DisplayCTP
 
static IText DisplayBT []
 
static ITextVectorProperty DisplayBTP
 
static IText DisplayDT []
 
static ITextVectorProperty DisplayDTP
 
static IText UTCT [] = { { "UTC", "UTC", NULL, 0, 0, 0 } }
 
ITextVectorProperty UTCTP
 
static INumber SetCCDTemperatureN []
 
static INumberVectorProperty SetCCDTemperatureNP
 
static ISwitch ControlS []
 
static ISwitchVectorProperty ControlSP
 
static ISwitch ValueS []
 
static ISwitchVectorProperty ValueSP
 
static ISwitch AuxiliaryS []
 
static ISwitchVectorProperty AuxiliarySP
 
static ISwitch AcquireS []
 
static ISwitchVectorProperty AcquireSP
 
static ISwitch GuideS []
 
static ISwitchVectorProperty GuideSP
 
static ISwitch ProcessS []
 
static ISwitchVectorProperty ProcessSP
 
static ISwitch CompressionS []
 
static ISwitchVectorProperty CompressionSP
 
static ISwitch BufferStatusS []
 
static ISwitchVectorProperty BufferStatusSP
 
static INumber BufferN []
 
static INumberVectorProperty BufferNP
 
static INumber WindowingN []
 
static INumberVectorProperty WindowingNP
 
static ISwitch ImageInfoS []
 
static ISwitchVectorProperty ImageInfoSP
 
static ISwitch DownloadS []
 
static ISwitchVectorProperty DownloadSP
 
static IBLOB imageB = { "CCD1", "Image", "", 0, 0, 0, 0, 0, 0, 0 }
 
static IBLOBVectorProperty imageBP = { mydev, "Image", "Image", IMAGE_GROUP, IP_RO, 0, IPS_IDLE, &imageB, 1, "", 0 }
 

Macro Definition Documentation

◆ BUTTONS_GROUP

#define BUTTONS_GROUP   "Buttons and Knobs" /* Button Pannel */

◆ CONNECTION_GROUP

#define CONNECTION_GROUP   "Connection" /* Group name */

◆ currentBuffer

#define currentBuffer   BufferN[0].value

◆ currentCompression

#define currentCompression   CompressionS[0].s

◆ currentLength

#define currentLength   WindowingN[3].value

◆ currentLines

#define currentLines   WindowingN[2].value

◆ currentX

#define currentX   WindowingN[0].value

◆ currentY

#define currentY   WindowingN[1].value

◆ IMAGE_GROUP

#define IMAGE_GROUP   "Download" /* Button Pannel */

◆ mydev

#define mydev   "STV Guider" /* Device name */

◆ SETTINGS_GROUP

#define SETTINGS_GROUP   "Setings" /* Group name */

◆ TEMPFILE_LEN

#define TEMPFILE_LEN   16

Enumeration Type Documentation

◆ STVFrames

enum STVFrames
Enumerator
LIGHT_FRAME 
BIAS_FRAME 
DARK_FRAME 
FLAT_FRAME 

Function Documentation

◆ addFITSKeywords()

void addFITSKeywords ( fitsfile *  fptr,
IMAGE_INFO image_info 
)

◆ handleError()

void handleError ( ISwitchVectorProperty svp,
int  err,
const char *  msg 
)

◆ init_serial()

int init_serial ( char *  device_name,
int  bit_rate,
int  word_size,
int  parity,
int  stop_bits 
)

◆ ISCallBack()

void ISCallBack ( void  )

◆ ISInit()

static void ISInit ( void  )
static

◆ ISMessageImageInfo()

int ISMessageImageInfo ( int  buffer,
IMAGE_INFO image_info 
)

◆ ISNewNumber()

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

◆ ISRequestImageData()

int ISRequestImageData ( int  compression,
int  buffer,
int  x_offset,
int  y_offset,
int  length,
int  lines 
)

◆ ISResetButtons()

void ISResetButtons ( char *  message)

◆ ISRestoreTXDisplay()

int ISRestoreTXDisplay ( void  )

◆ ISTerminateTXDisplay()

int ISTerminateTXDisplay ( void  )

◆ ISUpdateDisplay()

void ISUpdateDisplay ( int  buffer,
int  line 
)

◆ STV_AKey()

int STV_AKey ( void  )

◆ STV_BKey()

int STV_BKey ( void  )

◆ STV_BufferStatus()

int STV_BufferStatus ( int  buffer)

◆ STV_Calibrate()

int STV_Calibrate ( void  )

◆ STV_Connect()

int STV_Connect ( char *  device,
int  baud 
)

◆ STV_Display()

int STV_Display ( void  )

◆ STV_Download()

int STV_Download ( void  )

◆ STV_FileOps()

int STV_FileOps ( void  )

◆ STV_Focus()

int STV_Focus ( void  )

◆ STV_GetBits()

unsigned int STV_GetBits ( unsigned int  x,
int  p,
int  n 
)

◆ STV_Image()

int STV_Image ( void  )

◆ STV_Interrupt()

int STV_Interrupt ( void  )

◆ STV_LRRotaryDecrease()

int STV_LRRotaryDecrease ( void  )

◆ STV_LRRotaryIncrease()

int STV_LRRotaryIncrease ( void  )

◆ STV_Monitor()

int STV_Monitor ( void  )

◆ STV_PrintBuffer()

int STV_PrintBuffer ( unsigned char *  cmdbuf,
int  n 
)

◆ STV_ReceivePacket()

int STV_ReceivePacket ( unsigned char *  buf,
int  mode 
)

◆ STV_RequestAck()

int STV_RequestAck ( void  )

◆ STV_RequestImage()

int STV_RequestImage ( int  compression,
int  buffer,
int  x_offset,
int  y_offset,
int *  length,
int *  lines,
int  image[][320],
IMAGE_INFO image_info 
)

◆ STV_RequestImageInfo()

int STV_RequestImageInfo ( int  imagebuffer,
IMAGE_INFO image_info 
)

◆ STV_SetCCDTemperature()

double STV_SetCCDTemperature ( double  set_value)

◆ STV_SetDateTime()

int STV_SetDateTime ( char *  times)

◆ STV_Setup()

int STV_Setup ( void  )

◆ STV_TerminateTXDisplay()

int STV_TerminateTXDisplay ( void  )

◆ STV_Track()

int STV_Track ( void  )

◆ STV_TXDisplay()

int STV_TXDisplay ( void  )

◆ STV_UDRotaryDecrease()

int STV_UDRotaryDecrease ( void  )

◆ STV_UDRotaryIncrease()

int STV_UDRotaryIncrease ( void  )

◆ uploadFile()

void uploadFile ( const char *  filename)

◆ writeFITS()

int writeFITS ( const char *  filename,
IMAGE_INFO image_info,
char  errmsg[] 
)

Variable Documentation

◆ AcquireS

ISwitch AcquireS[]
static
Initial value:
= {
{ "1", "Focus", ISS_OFF, 0, 0 },
{ "2", "Image", ISS_OFF, 0, 0 },
{ "3", "Monitor", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ AcquireSP

ISwitchVectorProperty AcquireSP
static
Initial value:
= { mydev, "Acquire", "", BUTTONS_GROUP, IP_RW, ISR_1OFMANY,
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
static ISwitch AcquireS[]
Definition: stv.c:274
#define BUTTONS_GROUP
Definition: stv.c:61
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ acquiring

int acquiring = OFF
static

◆ AuxiliaryS

ISwitch AuxiliaryS[]
static
Initial value:
= {
{ "1", "Setup", ISS_OFF, 0, 0 },
{ "2", "Interrupt", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ AuxiliarySP

ISwitchVectorProperty AuxiliarySP
static
Initial value:
= { mydev, "Auxilliary", "", BUTTONS_GROUP, IP_RW, ISR_1OFMANY,
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
static ISwitch AuxiliaryS[]
Definition: stv.c:264
Definition: indiapi.h:166
Definition: indiapi.h:178
#define BUTTONS_GROUP
Definition: stv.c:61
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ BufferN

INumber BufferN[]
static
Initial value:
= {
{ "A0", "Number 1 - 32", "%6.0f", 1., 32., 0., 32., 0, 0, 0 },
}

◆ BufferNP

INumberVectorProperty BufferNP
static
Initial value:
= { mydev, "BUFFER_Number", "Buffer", IMAGE_GROUP, IP_RW, ISR_1OFMANY,
#define mydev
Definition: stv.c:58
static INumber BufferN[]
Definition: stv.c:321
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define IMAGE_GROUP
Definition: stv.c:62
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ BufferStatusS

ISwitch BufferStatusS[]
static
Initial value:
= {
{ "1", "Status", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ BufferStatusSP

ISwitchVectorProperty BufferStatusSP
static
Initial value:
= { mydev, "Buffers", "", IMAGE_GROUP, IP_RW,
"", 0 }
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
static ISwitch BufferStatusS[]
Definition: stv.c:312
Definition: indiapi.h:178
#define IMAGE_GROUP
Definition: stv.c:62
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ cb

int cb = -1
static

◆ compression

int compression = OFF
static

◆ CompressionS

ISwitch CompressionS[]
static
Initial value:
= {
{ "1", "On", ISS_OFF, 0, 0 },
{ "2", "Off", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ CompressionSP

ISwitchVectorProperty CompressionSP
static
Initial value:
= { mydev, "Compression", "", IMAGE_GROUP,
#define mydev
Definition: stv.c:58
static ISwitch CompressionS[]
Definition: stv.c:302
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define IMAGE_GROUP
Definition: stv.c:62
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ ControlS

ISwitch ControlS[]
static
Initial value:
= {
{ "1", "Parameter", ISS_OFF, 0, 0 },
{ "2", "Increase", ISS_OFF, 0, 0 },
{ "3", "Decrease", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ ControlSP

ISwitchVectorProperty ControlSP
static
Initial value:
= { mydev, "ParaButtons", "Control", BUTTONS_GROUP, IP_RW, ISR_1OFMANY,
static ISwitch ControlS[]
Definition: stv.c:243
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define BUTTONS_GROUP
Definition: stv.c:61
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ DisplayBT

IText DisplayBT[]
static
Initial value:
= {
{ "DISPLAYB1", "Line 1", NULL, 0, 0, 0 },
{ "DISPLAYB2", "Line 2", NULL, 0, 0, 0 }
}
#define NULL
Definition: PciTypes.h:160

◆ DisplayBTP

ITextVectorProperty DisplayBTP
static
Initial value:
= {
mydev, "DISPLAYB", "Display", BUTTONS_GROUP, IP_RO, ISR_1OFMANY, IPS_IDLE, DisplayBT, NARRAY(DisplayBT), "", 0
}
Definition: indiapi.h:176
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
static IText DisplayBT[]
Definition: stv.c:200
#define BUTTONS_GROUP
Definition: stv.c:61
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ DisplayCT

IText DisplayCT[]
static
Initial value:
= {
{ "DISPLAYC1", "Line 1", NULL, 0, 0, 0 },
{ "DISPLAYC2", "Line 2", NULL, 0, 0, 0 }
}
#define NULL
Definition: PciTypes.h:160

◆ DisplayCTP

ITextVectorProperty DisplayCTP
static
Initial value:
= {
}
#define CONNECTION_GROUP
Definition: stv.c:59
Definition: indiapi.h:176
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492
static IText DisplayCT[]
Definition: stv.c:190

◆ DisplayDT

IText DisplayDT[]
static
Initial value:
= {
{ "DISPLAYD1", "Line 1", NULL, 0, 0, 0 },
{ "DISPLAYD2", "Line 2", NULL, 0, 0, 0 }
}
#define NULL
Definition: PciTypes.h:160

◆ DisplayDTP

ITextVectorProperty DisplayDTP
static
Initial value:
= { mydev, "DISPLAYD", "Display", IMAGE_GROUP, IP_RO, ISR_1OFMANY,
Definition: indiapi.h:176
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
static IText DisplayDT[]
Definition: stv.c:210
#define IMAGE_GROUP
Definition: stv.c:62
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ DownloadS

ISwitch DownloadS[]
static
Initial value:
= {
{ "1", "One Image", ISS_OFF, 0, 0 },
{ "2", "All Images", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ DownloadSP

ISwitchVectorProperty DownloadSP
static
Initial value:
= { mydev, "Download", "", IMAGE_GROUP, IP_RW, ISR_1OFMANY,
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define IMAGE_GROUP
Definition: stv.c:62
static ISwitch DownloadS[]
Definition: stv.c:348
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ fd

int fd

◆ GuideS

ISwitch GuideS[]
static
Initial value:
= {
{ "1", "Calibrate", ISS_OFF, 0, 0 },
{ "2", "Track", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ GuideSP

ISwitchVectorProperty GuideSP
static
Initial value:
= { mydev, "Guide", "", BUTTONS_GROUP, IP_RW, ISR_1OFMANY,
0, IPS_IDLE, GuideS, NARRAY(GuideS), "", 0 }
static ISwitch GuideS[]
Definition: stv.c:284
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define BUTTONS_GROUP
Definition: stv.c:61
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ guiding

int guiding = OFF
static

◆ imageB

IBLOB imageB = { "CCD1", "Image", "", 0, 0, 0, 0, 0, 0, 0 }
static

◆ imageBP

IBLOBVectorProperty imageBP = { mydev, "Image", "Image", IMAGE_GROUP, IP_RO, 0, IPS_IDLE, &imageB, 1, "", 0 }
static

◆ ImageInfoS

ISwitch ImageInfoS[]
static
Initial value:
= {
{ "1", "One Image", ISS_OFF, 0, 0 },
{ "2", "All Images", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ ImageInfoSP

ISwitchVectorProperty ImageInfoSP
static
Initial value:
= { mydev, "Information", "", IMAGE_GROUP, IP_RW, ISR_1OFMANY,
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define IMAGE_GROUP
Definition: stv.c:62
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492
static ISwitch ImageInfoS[]
Definition: stv.c:339

◆ PortT

IText PortT[] = { { "PORT", "Port", NULL, 0, 0, 0 }, { "SPEED", "Speed", NULL, 0, 0, 0 } }
static

◆ PortTP

ITextVectorProperty PortTP
static
Initial value:
= {
mydev, "DEVICE_PORT", "Port", CONNECTION_GROUP, IP_RW, ISR_1OFMANY, IPS_IDLE, PortT, NARRAY(PortT), "", 0
}
#define CONNECTION_GROUP
Definition: stv.c:59
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
static IText PortT[]
Definition: stv.c:173
Definition: indiapi.h:178
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ PowerS

ISwitch PowerS[]
static
Initial value:
= {
{ "CONNECT", "Connect", ISS_OFF, 0, 0 },
{ "DISCONNECT", "Disconnect", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ PowerSP

ISwitchVectorProperty PowerSP
static
Initial value:
= { mydev, "CONNECTION", "Connection", CONNECTION_GROUP, IP_RW, ISR_1OFMANY,
0, IPS_IDLE, PowerS, NARRAY(PowerS), "", 0 }
#define CONNECTION_GROUP
Definition: stv.c:59
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
static ISwitch PowerS[]
Definition: stv.c:163
Definition: indiapi.h:178
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ processing

int processing = OFF
static

◆ ProcessS

ISwitch ProcessS[]
static
Initial value:
= {
{ "1", "Display/Crosshairs", ISS_OFF, 0, 0 },
{ "2", "File Ops", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ ProcessSP

ISwitchVectorProperty ProcessSP
static
Initial value:
= { mydev, "Process", "", BUTTONS_GROUP, IP_RW, ISR_1OFMANY,
static ISwitch ProcessS[]
Definition: stv.c:293
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define BUTTONS_GROUP
Definition: stv.c:61
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ SetCCDTemperatureN

INumber SetCCDTemperatureN[]
static
Initial value:
= {
{ "TEMPERATURE", "Cel. -55.1, +25.2", "%6.1f", -55.8, 25.2, 0., 16., 0, 0, 0 },
}

◆ SetCCDTemperatureNP

INumberVectorProperty SetCCDTemperatureNP
static
Initial value:
= { mydev,
"CCD_TEMPERATURE",
"CCD Temperature",
"",
0 }
#define SETTINGS_GROUP
Definition: stv.c:60
#define mydev
Definition: stv.c:58
static INumber SetCCDTemperatureN[]
Definition: stv.c:225
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ StatusT

IText StatusT[]
static
Initial value:
= {
{ "STATUS", "This driver", "is experimental, contact markus.wildi@datacomm.ch", 0, 0, 0 },
}

◆ StatusTP

ITextVectorProperty StatusTP
static
Initial value:
= { mydev, "STAUS", "Status", CONNECTION_GROUP,
NARRAY(StatusT), "", 0 }
#define CONNECTION_GROUP
Definition: stv.c:59
Definition: indiapi.h:176
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
static IText StatusT[]
Definition: stv.c:153
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ STVImg

img_t* STVImg
static

◆ tracking_buf

char tracking_buf[1024]

◆ TXDisplayS

ISwitch TXDisplayS[]
static
Initial value:
= {
{ "1", "On", ISS_ON, 0, 0 },
{ "2", "Off", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:147
Definition: indiapi.h:146

◆ TXDisplaySP

ISwitchVectorProperty TXDisplaySP
static
Initial value:
= {
mydev, "Update Display", "Update Display", CONNECTION_GROUP, IP_RW, ISR_1OFMANY,
}
#define CONNECTION_GROUP
Definition: stv.c:59
static ISwitch TXDisplayS[]
Definition: stv.c:179
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ UTCT

IText UTCT[] = { { "UTC", "UTC", NULL, 0, 0, 0 } }
static

◆ UTCTP

Initial value:
= { mydev, "TIME_UTC", "UTC Time", SETTINGS_GROUP, IP_RW, 0, IPS_IDLE, UTCT,
NARRAY(UTCT), "", 0 }
#define SETTINGS_GROUP
Definition: stv.c:60
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
static IText UTCT[]
Definition: stv.c:221
Definition: indiapi.h:178
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492

◆ ValueS

ISwitch ValueS[]
static
Initial value:
= {
{ "1", "Value", ISS_OFF, 0, 0 },
{ "2", "Increase", ISS_OFF, 0, 0 },
{ "3", "Decrease", ISS_OFF, 0, 0 },
}
Definition: indiapi.h:146

◆ ValueSP

ISwitchVectorProperty ValueSP
static
Initial value:
= { mydev, "ValueButtons", "Control", BUTTONS_GROUP, IP_RW, ISR_1OFMANY,
0, IPS_IDLE, ValueS, NARRAY(ValueS), "", 0 }
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
Definition: indiapi.h:178
#define BUTTONS_GROUP
Definition: stv.c:61
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492
static ISwitch ValueS[]
Definition: stv.c:254

◆ WindowingN

INumber WindowingN[]
static
Initial value:
= {
{ "X", "Offset x", "%6.0f", 0., 199., 0., 0., 0, 0, 0 },
{ "Y", "Offset y", "%6.0f", 0., 319., 0., 0., 0, 0, 0 },
{ "HEIGHT", "Lines", "%6.0f", 1., 200., 0., 200., 0, 0, 0 },
{ "WIDTH", "Length", "%6.0f", 1., 320., 0., 320., 0, 0, 0 },
}

◆ WindowingNP

INumberVectorProperty WindowingNP
static
Initial value:
= { mydev, "CCD_FRAME", "Windowing", IMAGE_GROUP, IP_RW, ISR_1OFMANY,
#define mydev
Definition: stv.c:58
Definition: indiapi.h:155
Definition: indiapi.h:166
static INumber WindowingN[]
Definition: stv.c:328
Definition: indiapi.h:178
#define IMAGE_GROUP
Definition: stv.c:62
#define NARRAY(a)
Handy macro to find the number of elements in array a[].
Definition: indiapi.h:492