|
Instrument Neutral Distributed Interface INDI 2.2.5
|
#include <unistd.h>#include <cstring>#include <sys/stat.h>#include <fcntl.h>#include <cerrno>#include <stdio.h>#include <ctime>#include <stdlib.h>#include "config.h"#include "stvdriver.h"#include <libnova/libnova.h>#include <termios.h>#include "indicom.h"Go to the source code of this file.
Classes | |
| struct | DISPLAY_INFO |
Macros | |
| #define | _GNU_SOURCE 1 |
| #define | FALSE 0 |
| #define | TRUE 1 |
Functions | |
| void | ISUpdateDisplay (int buffer, int line) |
| int | STV_portWrite (char *buf, int nbytes) |
| int | STV_TXDisplay (void) |
| int | STV_TerminateTXDisplay (void) |
| int | STV_FileStatus (int) |
| int | STV_DownloadComplete (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_RequestImageData (int compression, int *data, int j, int length, int *values) |
| int | STV_Download (void) |
| int | STV_DownloadAll (void) |
| int | STV_RequestAck (void) |
| int | STV_CheckHeaderSum (unsigned char *buf) |
| int | STV_CheckDataSum (unsigned char *data) |
| int | STV_PrintBuffer (unsigned char *buf, int n) |
| int | STV_PrintBufferAsText (unsigned char *buf, int n) |
| int | STV_CheckAck (unsigned char *buf) |
| int | STV_SendPacket (int cmd, int *data, int n) |
| int | STV_ReceivePacket (unsigned char *buf, int mode) |
| int | STV_DecompressData (unsigned char *data, int *values, int length, int expected_n_values) |
| int | STV_BufferStatus (int buffer) |
| void | STV_PrintBits (unsigned int x, int n) |
| unsigned int | STV_RecombineInt (unsigned char low_byte, unsigned char high_byte) |
| unsigned int | STV_GetBits (unsigned int x, int p, int n) |
| int | STV_MenueSetup (int delay) |
| int | STV_MenueDateTime (int delay) |
| int | STV_MenueCCDTemperature (int delay) |
| 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 buffer, IMAGE_INFO *image_info) |
| double | STV_SetCCDTemperature (double set_value) |
| int | STV_SetDateTime (char *times) |
| int | STV_Connect (char *device, int baud) |
| void | shutdown_serial (int fd) |
| int | init_serial (char *device_name, int bit_rate, int word_size, int parity, int stop_bits) |
Variables | |
| int | fd |
| char | tracking_buf [] |
| struct termios | orig_tty_setting |
| struct termios | tty_setting |
| DISPLAY_INFO | di |
| #define _GNU_SOURCE 1 |
Definition at line 23 of file stvdriver.c.
| #define FALSE 0 |
Definition at line 53 of file stvdriver.c.
| #define TRUE 1 |
Definition at line 54 of file stvdriver.c.
| int init_serial | ( | char * | device_name, |
| int | bit_rate, | ||
| int | word_size, | ||
| int | parity, | ||
| int | stop_bits | ||
| ) |
Definition at line 1526 of file stvdriver.c.
| void shutdown_serial | ( | int | fd | ) |
Definition at line 1501 of file stvdriver.c.
| int STV_AKey | ( | void | ) |
Definition at line 123 of file stvdriver.c.
| int STV_BKey | ( | void | ) |
Definition at line 129 of file stvdriver.c.
| int STV_BufferStatus | ( | int | buffer | ) |
Definition at line 756 of file stvdriver.c.
| int STV_Calibrate | ( | void | ) |
Definition at line 165 of file stvdriver.c.
| int STV_CheckAck | ( | unsigned char * | buf | ) |
Definition at line 1169 of file stvdriver.c.
| int STV_CheckDataSum | ( | unsigned char * | data | ) |
Definition at line 1010 of file stvdriver.c.
| int STV_CheckHeaderSum | ( | unsigned char * | buf | ) |
Definition at line 991 of file stvdriver.c.
| int STV_Connect | ( | char * | device, |
| int | baud | ||
| ) |
Definition at line 1482 of file stvdriver.c.
| int STV_DecompressData | ( | unsigned char * | data, |
| int * | values, | ||
| int | length, | ||
| int | expected_n_values | ||
| ) |
Definition at line 625 of file stvdriver.c.
| int STV_Display | ( | void | ) |
Definition at line 177 of file stvdriver.c.
| int STV_Download | ( | void | ) |
Definition at line 739 of file stvdriver.c.
| int STV_DownloadAll | ( | void | ) |
Definition at line 744 of file stvdriver.c.
| int STV_DownloadComplete | ( | void | ) |
Definition at line 734 of file stvdriver.c.
| int STV_FileOps | ( | void | ) |
Definition at line 183 of file stvdriver.c.
| int STV_FileStatus | ( | int | status | ) |
Definition at line 728 of file stvdriver.c.
| int STV_Focus | ( | void | ) |
Definition at line 147 of file stvdriver.c.
| unsigned int STV_GetBits | ( | unsigned int | x, |
| int | p, | ||
| int | n | ||
| ) |
Definition at line 1190 of file stvdriver.c.
| int STV_Image | ( | void | ) |
Definition at line 153 of file stvdriver.c.
| int STV_Interrupt | ( | void | ) |
Definition at line 141 of file stvdriver.c.
| int STV_LRRotaryDecrease | ( | void | ) |
Definition at line 99 of file stvdriver.c.
| int STV_LRRotaryIncrease | ( | void | ) |
Definition at line 105 of file stvdriver.c.
| int STV_MenueCCDTemperature | ( | int | delay | ) |
Definition at line 1276 of file stvdriver.c.
| int STV_MenueDateTime | ( | int | delay | ) |
Definition at line 1445 of file stvdriver.c.
| int STV_MenueSetup | ( | int | delay | ) |
Definition at line 1465 of file stvdriver.c.
| int STV_Monitor | ( | void | ) |
Definition at line 159 of file stvdriver.c.
| int STV_portWrite | ( | char * | buf, |
| int | nbytes | ||
| ) |
Definition at line 1142 of file stvdriver.c.
| void STV_PrintBits | ( | unsigned int | x, |
| int | n | ||
| ) |
Definition at line 1196 of file stvdriver.c.
| int STV_PrintBuffer | ( | unsigned char * | buf, |
| int | n | ||
| ) |
Definition at line 1041 of file stvdriver.c.
| int STV_PrintBufferAsText | ( | unsigned char * | buf, |
| int | n | ||
| ) |
Definition at line 1060 of file stvdriver.c.
| int STV_ReceivePacket | ( | unsigned char * | buf, |
| int | mode | ||
| ) |
Definition at line 825 of file stvdriver.c.
| unsigned int STV_RecombineInt | ( | unsigned char | low_byte, |
| unsigned char | high_byte | ||
| ) |
Definition at line 1185 of file stvdriver.c.
| int STV_RequestAck | ( | void | ) |
Definition at line 749 of file stvdriver.c.
| int STV_RequestImage | ( | int | compression, |
| int | buffer, | ||
| int | x_offset, | ||
| int | y_offset, | ||
| int * | length, | ||
| int * | lines, | ||
| int | image[][320], | ||
| IMAGE_INFO * | image_info | ||
| ) |
Definition at line 430 of file stvdriver.c.
| int STV_RequestImageData | ( | int | compression, |
| int * | data, | ||
| int | j, | ||
| int | length, | ||
| int * | values | ||
| ) |
Definition at line 520 of file stvdriver.c.
| int STV_RequestImageInfo | ( | int | buffer, |
| IMAGE_INFO * | image_info | ||
| ) |
Definition at line 189 of file stvdriver.c.
| int STV_SendPacket | ( | int | cmd, |
| int * | data, | ||
| int | n | ||
| ) |
Definition at line 1080 of file stvdriver.c.
| double STV_SetCCDTemperature | ( | double | set_value | ) |
Definition at line 1230 of file stvdriver.c.
| int STV_SetDateTime | ( | char * | times | ) |
Definition at line 1288 of file stvdriver.c.
| int STV_Setup | ( | void | ) |
Definition at line 135 of file stvdriver.c.
| int STV_TerminateTXDisplay | ( | void | ) |
Definition at line 714 of file stvdriver.c.
| int STV_Track | ( | void | ) |
Definition at line 171 of file stvdriver.c.
| int STV_TXDisplay | ( | void | ) |
Definition at line 708 of file stvdriver.c.
| int STV_UDRotaryDecrease | ( | void | ) |
Definition at line 111 of file stvdriver.c.
| int STV_UDRotaryIncrease | ( | void | ) |
Definition at line 117 of file stvdriver.c.
| DISPLAY_INFO di |
Definition at line 95 of file stvdriver.c.
|
extern |
Definition at line 43 of file intelliscope.c.
| struct termios orig_tty_setting |
Definition at line 50 of file stvdriver.c.
| struct termios tty_setting |
Definition at line 51 of file stvdriver.c.