Defines | Functions
test-com.c File Reference
#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>
Include dependency graph for test-com.c:

Go to the source code of this file.

Defines

#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 Documentation

#define B921600   0010007

Definition at line 236 of file test-com.c.

#define cfsetspeed (   term,
  baudrate 
)
Value:
cfsetispeed(term, baudrate);\
   cfsetospeed(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.


Function Documentation

Definition at line 224 of file test-com.c.

int com_write ( int  fd,
const char *  msg 
)

Definition at line 52 of file test-com.c.

int kbhit ( void  )

Definition at line 21 of file test-com.c.

int main ( )

Definition at line 69 of file test-com.c.

int SetComAttr ( int  fdc)

added

Definition at line 365 of file test-com.c.

int SetComAttr2 ( int  fd)

Definition at line 238 of file test-com.c.

int SetComAttr4 ( int  fdc)

Definition at line 285 of file test-com.c.



hironx_ros_bridge
Author(s): Kei Okada , Isaac I.Y. Saito
autogenerated on Thu Feb 21 2019 03:42:37