Macros | Functions | Variables
serial.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_BAUDRATE   38400
 
#define DISABLE   0
 
#define ENABLE   1
 
#define SER_INTERVAL   0.0050
 (Byte/sec) シリアルの通信速度 More...
 

Functions

int encode_write (char *data, int len)
 
int serial_change_baudrate (int baud)
 ボーレートを変更する More...
 
int serial_close (void)
 
int serial_connect (char *device_name)
 
void serial_flush_in (void)
 
void serial_flush_out (void)
 
int serial_recieve (int(*serial_event)(char *, int, double, void *), void *data)
 
int serial_tryconnect (char *device_name)
 
int serial_write (char *buf, int len)
 

Variables

double SER_BAUDRATE
 

Macro Definition Documentation

#define DEFAULT_BAUDRATE   38400

Definition at line 27 of file serial.h.

#define DISABLE   0

Definition at line 25 of file serial.h.

#define ENABLE   1

Definition at line 24 of file serial.h.

#define SER_INTERVAL   0.0050

(Byte/sec) シリアルの通信速度

Definition at line 31 of file serial.h.

Function Documentation

int encode_write ( char *  data,
int  len 
)

Definition at line 530 of file serial.c.

int serial_change_baudrate ( int  baud)

ボーレートを変更する

Parameters
baud<ahref="bit/sec">in ボーレート

Definition at line 216 of file serial.c.

int serial_close ( void  )

Definition at line 363 of file serial.c.

int serial_connect ( char *  device_name)

Definition at line 320 of file serial.c.

void serial_flush_in ( void  )

Definition at line 388 of file serial.c.

void serial_flush_out ( void  )

Definition at line 423 of file serial.c.

int serial_recieve ( int(*)(char *, int, double, void *)  serial_event,
void *  data 
)

Definition at line 434 of file serial.c.

int serial_tryconnect ( char *  device_name)

Definition at line 178 of file serial.c.

int serial_write ( char *  buf,
int  len 
)

Definition at line 568 of file serial.c.

Variable Documentation

double SER_BAUDRATE

Definition at line 48 of file serial.c.



yp-spur
Author(s):
autogenerated on Fri May 7 2021 02:12:17