Functions | Variables
serial.c File Reference
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <shvel-param.h>
#include <serial.h>
#include <communication.h>
#include <utility.h>
#include <param.h>
#include <ypspur-coordinator.h>
#include <yprintf.h>
#include <errno.h>
#include <sys/select.h>
#include <sys/termios.h>
Include dependency graph for serial.c:

Go to the source code of this file.

Functions

int baud2i (speed_t baud)
int encode_write (char *data, int len)
speed_t i2baud (int baud)
int recieve_throw (char *buf, int len, double t, void *data)
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

int g_device_port = 0
struct termios g_oldtio
double SER_BAUDRATE

Function Documentation

int baud2i ( speed_t  baud)

Definition at line 114 of file serial.c.

int encode_write ( char *  data,
int  len 
)

Definition at line 520 of file serial.c.

speed_t i2baud ( int  baud)

Definition at line 70 of file serial.c.

int recieve_throw ( char *  buf,
int  len,
double  t,
void *  data 
)

Definition at line 201 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

int g_device_port = 0

Definition at line 56 of file serial.c.

struct termios g_oldtio

Definition at line 57 of file serial.c.

double SER_BAUDRATE

Definition at line 48 of file serial.c.



yp-spur
Author(s):
autogenerated on Fri May 10 2019 02:52:19