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

Defines

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

Functions

int encode_write (char *data, int len)
int serial_change_baudrate (int baud)
 ボーレートを変更する
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

Define 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 520 of file serial.c.

int serial_change_baudrate ( int  baud)

ボーレートを変更する

Parameters:
baud[in](bit/sec) ボーレート

Definition at line 216 of file serial.c.

int serial_close ( void  )

Definition at line 360 of file serial.c.

int serial_connect ( char *  device_name)

Definition at line 317 of file serial.c.

void serial_flush_in ( void  )

Definition at line 385 of file serial.c.

void serial_flush_out ( void  )

Definition at line 420 of file serial.c.

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

Definition at line 431 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 539 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 10 2019 02:52:19