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

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_int_write ( char *  data,
int  len 
)

Definition at line 549 of file serial.c.

int encode_write ( char *  data,
int  len 
)

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

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 7 2021 02:12:17