|
Instrument Neutral Distributed Interface INDI
0.9.6
|
Implementations for common driver routines. More...
#include <time.h>Go to the source code of this file.
Functions | |
| int | tty_read (int fd, char *buf, int nbytes, int timeout, int *nbytes_read) |
| read buffer from terminal | |
| int | tty_read_section (int fd, char *buf, char stop_char, int timeout, int *nbytes_read) |
| read buffer from terminal with a delimiter | |
| int | tty_write (int fd, const char *buffer, int nbytes, int *nbytes_written) |
| Writes a buffer to fd. | |
| int | tty_write_string (int fd, const char *buffer, int *nbytes_written) |
| Writes a null terminated string to fd. | |
| int | tty_connect (const char *device, int bit_rate, int word_size, int parity, int stop_bits, int *fd) |
| Establishes a tty connection to a terminal device. | |
| int | tty_disconnect (int fd) |
| Closes a tty connection and flushes the bus. | |
| void | tty_error_msg (int err_code, char *err_msg, int err_msg_len) |
| Retrieve the tty error message. | |
| int | fs_sexa (char *out, double a, int w, int fracbase) |
| Converts a sexagesimal number to a string. | |
| int | f_scansexa (const char *str0, double *dp) |
| convert sexagesimal string str AxBxC to double. | |
| int | extractISOTime (char *timestr, struct ln_date *iso_date) |
| Extract ISO 8601 time and store it in a tm struct. | |
| int | numberFormat (char *buf, const char *format, double value) |
| Fill buffer with properly formatted INumber string. | |
| const char * | timestamp (void) |
| Create an ISO 8601 formatted time stamp. The format is YYYY-MM-DDTHH:MM:SS. | |
1.8.1.2