#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <time.h>
#include <termios.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <sys/slog.h>
#include <sys/time.h>
Go to the source code of this file.
Macros | |
#define | B921600 0010007 |
#define | cfsetspeed(term, baudrate) |
#define | DATA_LENGTH 27 |
#define | DEBUGSS 0 |
#define | DELTA_SEC(start, end) (end.tv_sec - start.tv_sec + (end.tv_usec - start.tv_usec)/1e6) |
#define | false 0 |
#define | true 1 |
Functions | |
void | clear_packet (int fd) |
int | com_write (int fd, const char *msg) |
int | kbhit (void) |
int | main () |
int | SetComAttr (int fdc) |
int | SetComAttr2 (int fd) |
int | SetComAttr4 (int fdc) |
#define B921600 0010007 |
Definition at line 236 of file test-com.c.
#define cfsetspeed | ( | term, | |
baudrate | |||
) |
Definition at line 48 of file test-com.c.
#define DATA_LENGTH 27 |
#define DEBUGSS 0 |
Definition at line 2 of file test-com.c.
#define DELTA_SEC | ( | start, | |
end | |||
) | (end.tv_sec - start.tv_sec + (end.tv_usec - start.tv_usec)/1e6) |
#define false 0 |
Definition at line 19 of file test-com.c.
#define true 1 |
Definition at line 18 of file test-com.c.
Definition at line 224 of file test-com.c.
Definition at line 52 of file test-com.c.
Definition at line 21 of file test-com.c.
int main | ( | ) |
Definition at line 69 of file test-com.c.
added
Definition at line 365 of file test-com.c.
Definition at line 238 of file test-com.c.
Definition at line 285 of file test-com.c.