kstars
indicom.h File Reference
Detailed Description
Implementations for common driver routines.The INDI Common Routine Library provides formatting and serial routines employed by many INDI drivers. Currently, the library is composed of the following sections:
- Formatting Functions
- Conversion Functions
-
TTY Functions
Definition in file indicom.h.
#include <time.h>
#include <config.h>
Include dependency graph for indicom.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | J2000 2451545.0 |
| #define | ERRMSG_SIZE 1024 |
| #define | INDI_DEBUG |
Enumerations | |
| enum | TTY_ERROR { TTY_OK = 0, TTY_READ_ERROR = -1, TTY_WRITE_ERROR = -2, TTY_SELECT_ERROR = -3, TTY_TIME_OUT = -4, TTY_PORT_FAILURE = -5, TTY_PARAM_ERROR = -6, TTY_ERRNO = -7 } |
Functions | |
| int | tty_read (int fd, char *buf, int nbytes, int timeout, int *nbytes_read) |
| int | tty_read_section (int fd, char *buf, char stop_char, int timeout, int *nbytes_read) |
| int | tty_write (int fd, const char *buffer, int nbytes, int *nbytes_written) |
| int | tty_write_string (int fd, const char *buffer, int *nbytes_written) |
| int | tty_connect (const char *device, int bit_rate, int word_size, int parity, int stop_bits, int *fd) |
| int | tty_disconnect (int fd) |
| void | tty_error_msg (int err_code, char *err_msg, int err_msg_len) |
| int | tty_timeout (int fd, int timeout) |
| int | fs_sexa (char *out, double a, int w, int fracbase) |
| int | f_scansexa (const char *str0, double *dp) |
| void | getSexComponents (double value, int *d, int *m, int *s) |
| int | numberFormat (char *buf, const char *format, double value) |
| const char * | timestamp (void) |
Variables | |
| const char * | Direction [] |
| const char * | SolarSystem [] |
Define Documentation
Enumeration Type Documentation
| enum TTY_ERROR |
Variable Documentation
| const char* Direction[] |
| const char* SolarSystem[] |
KDE 4.0 API Reference