![]() |
COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Simple Serial library header file. More...
Go to the source code of this file.
Classes | |
| struct | __cssl_t |
Macros | |
| #define | XMODEM_SOH 0x01 |
| #define | XMODEM_EOT 0x04 |
| #define | XMODEM_ACK 0x06 |
| #define | XMODEM_NAK 0x15 |
| #define | XMODEM_CAN 0x18 |
Typedefs | |
| typedef struct __cssl_t | cssl_t |
Enumerations | |
| enum | cssl_error_t { CSSL_OK =0, CSSL_ERROR_NOSIGNAL =CSSL_ERROR_BASE, CSSL_ERROR_NOTSTARTED, CSSL_ERROR_NULLPOINTER, CSSL_ERROR_OOPS, CSSL_ERROR_MEMORY, CSSL_ERROR_OPEN } |
Functions | |
| const char * | cssl_geterrormsg () |
| int32_t | cssl_geterror () |
| int32_t | cssl_start () |
| int32_t | cssl_stop () |
| cssl_t * | cssl_open (const char *fname, int baud, int bits, int parity, int stop) |
| int32_t | cssl_close (cssl_t *serial) |
| int32_t | cssl_setup (cssl_t *serial, int baud, int bits, int parity, int stop) |
| int32_t | cssl_setflowcontrol (cssl_t *serial, int rtscts, int xonxoff) |
| int32_t | cssl_putchar (cssl_t *serial, uint8_t c) |
| int32_t | cssl_putstring (cssl_t *serial, char *str) |
| int32_t | cssl_putdata (cssl_t *serial, uint8_t *data, uint32_t datalen) |
| int32_t | cssl_putslip (cssl_t *serial, uint8_t *buf, size_t size) |
| int32_t | cssl_putnmea (cssl_t *serial, uint8_t *buf, size_t size) |
| int32_t | cssl_drain (cssl_t *serial) |
| int32_t | cssl_settimeout (cssl_t *serial, int, double timeout) |
| Set read timeout. More... | |
| int32_t | cssl_getchar (cssl_t *serial) |
| int32_t | cssl_getdata (cssl_t *serial, uint8_t *buffer, int size) |
| int32_t | cssl_getslip (cssl_t *serial, uint8_t *buf, uint16_t size) |
| Read SLIP frame. More... | |
| int32_t | cssl_getnmea (cssl_t *serial, uint8_t *buf, uint16_t size) |
| Read NMEA response. More... | |
| int32_t | cssl_getxmodem (cssl_t *serial, uint8_t *buf) |
| Read Xmodem frame. More... | |
Simple Serial library header file.