17 #if defined(COSMOS_LINUX_OS) || defined(COSMOS_CYGWIN_OS) || defined(COSMOS_MAC_OS) 24 #define XMODEM_SOH 0x01 25 #define XMODEM_EOT 0x04 26 #define XMODEM_ACK 0x06 27 #define XMODEM_NAK 0x15 28 #define XMODEM_CAN 0x18 40 #if defined(COSMOS_LINUX_OS) || defined(COSMOS_CYGWIN_OS) || defined(COSMOS_MAC_OS) 42 struct termios oldtio;
struct _DCB dcb
Definition: cssl_lib.h:44
COSMOS SLIP support include file.
HANDLE handle
Definition: cssl_lib.h:46
struct __cssl_t * next
Definition: cssl_lib.h:51
int32_t cssl_getslip(cssl_t *serial, uint8_t *buf, uint16_t size)
Read SLIP frame.
Definition: cssl_lib.cpp:826
int32_t cssl_start()
Definition: cssl_lib.cpp:73
cssl_error_t
Definition: cssl_lib.h:55
Definition: cssl_lib.h:62
const string & str
Definition: json11.cpp:360
Definition: cssl_lib.h:59
int32_t cssl_getnmea(cssl_t *serial, uint8_t *buf, uint16_t size)
Read NMEA response.
Definition: cssl_lib.cpp:902
#define CSSL_ERROR_BASE
Definition: cosmos-errno.h:159
int32_t cssl_getxmodem(cssl_t *serial, uint8_t *buf)
Read Xmodem frame.
Definition: cssl_lib.cpp:771
int fd
Definition: cssl_lib.h:38
int datalen
Definition: mcastclient.c:41
Definition: cssl_lib.h:58
const char * cssl_geterrormsg()
Definition: cssl_lib.cpp:56
static char fname[100]
Definition: geomag.cpp:89
int32_t cssl_putchar(cssl_t *serial, uint8_t c)
Definition: cssl_lib.cpp:505
Headers and definitions common to all COSMOS.
Definition: cssl_lib.h:61
int32_t cssl_setup(cssl_t *serial, int baud, int bits, int parity, int stop)
Definition: cssl_lib.cpp:257
int32_t cssl_stop()
Definition: cssl_lib.cpp:86
uint8_t buffer[255]
Definition: cssl_lib.h:36
int32_t cssl_setflowcontrol(cssl_t *serial, int rtscts, int xonxoff)
Definition: cssl_lib.cpp:389
int32_t cssl_close(cssl_t *serial)
Definition: cssl_lib.cpp:197
int32_t cssl_getchar(cssl_t *serial)
Definition: cssl_lib.cpp:709
Definition: cssl_lib.h:56
Definition: cssl_lib.h:57
Definition: cssl_lib.h:60
int32_t cssl_putstring(cssl_t *serial, char *str)
Definition: cssl_lib.cpp:535
int32_t cssl_putnmea(cssl_t *serial, uint8_t *buf, size_t size)
Definition: cssl_lib.cpp:617
cssl_t * cssl_open(const char *fname, int baud, int bits, int parity, int stop)
Definition: cssl_lib.cpp:108
int32_t cssl_geterror()
Definition: cssl_lib.cpp:63
char buf[128]
Definition: rw_test.cpp:40
int32_t cssl_getdata(cssl_t *serial, uint8_t *buffer, int size)
Definition: cssl_lib.cpp:738
int32_t cssl_drain(cssl_t *serial)
Definition: cssl_lib.cpp:685
int32_t cssl_settimeout(cssl_t *serial, int, double timeout)
Set read timeout.
Definition: cssl_lib.cpp:469
int32_t cssl_putslip(cssl_t *serial, uint8_t *buf, size_t size)
Definition: cssl_lib.cpp:586
struct _DCB olddcb
Definition: cssl_lib.h:45
cssl_t * serial
Definition: arduino_lib.cpp:63
int32_t cssl_putdata(cssl_t *serial, uint8_t *data, uint32_t datalen)
Definition: cssl_lib.cpp:553
int baud
Definition: cssl_lib.h:49
Definition: cssl_lib.h:34