Macros | 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.

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)
 

Macro Definition Documentation

◆ B921600

#define B921600   0010007

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

◆ cfsetspeed

#define cfsetspeed (   term,
  baudrate 
)
Value:
cfsetispeed(term, baudrate);\
cfsetospeed(term, baudrate);

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

◆ DATA_LENGTH

#define DATA_LENGTH   27

◆ DEBUGSS

#define DEBUGSS   0

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

◆ DELTA_SEC

#define DELTA_SEC (   start,
  end 
)    (end.tv_sec - start.tv_sec + (end.tv_usec - start.tv_usec)/1e6)

◆ false

#define false   0

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

◆ true

#define true   1

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

Function Documentation

◆ clear_packet()

void clear_packet ( int  fd)

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

◆ com_write()

int com_write ( int  fd,
const char *  msg 
)

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

◆ kbhit()

int kbhit ( void  )

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

◆ main()

int main ( )

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

◆ SetComAttr()

int SetComAttr ( int  fdc)

added

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

◆ SetComAttr2()

int SetComAttr2 ( int  fd)

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

◆ SetComAttr4()

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 Mon Feb 28 2022 23:45:15