Enumerations | Functions
urg_serial_linux.c File Reference

シリアル通信 More...

#include "urg_c/urg_ring_buffer.h"
#include <fcntl.h>
#include <unistd.h>
Include dependency graph for urg_serial_linux.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { INVALID_FD = -1 }

Functions

static int internal_receive (char data[], int data_size_max, urg_serial_t *serial, int timeout)
static void serial_clear (urg_serial_t *serial)
void serial_close (urg_serial_t *serial)
 接続を閉じる
static void serial_initialize (urg_serial_t *serial)
int serial_open (urg_serial_t *serial, const char *device, long baudrate)
 接続を開く
int serial_read (urg_serial_t *serial, char *data, int max_size, int timeout)
 データを受信する
int serial_set_baudrate (urg_serial_t *serial, long baudrate)
 ボーレートを設定する
int serial_write (urg_serial_t *serial, const char *data, int size)
 データを送信する
static int wait_receive (urg_serial_t *serial, int timeout)

Detailed Description

シリアル通信

Author:
Satofumi KAMIMURA

$Id$

Definition in file urg_serial_linux.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
INVALID_FD 

Definition at line 15 of file urg_serial_linux.c.


Function Documentation

static int internal_receive ( char  data[],
int  data_size_max,
urg_serial_t serial,
int  timeout 
) [static]

Definition at line 164 of file urg_serial_linux.c.

static void serial_clear ( urg_serial_t serial) [static]

Definition at line 29 of file urg_serial_linux.c.

void serial_close ( urg_serial_t serial)

接続を閉じる

Definition at line 82 of file urg_serial_linux.c.

static void serial_initialize ( urg_serial_t serial) [static]

Definition at line 20 of file urg_serial_linux.c.

int serial_open ( urg_serial_t serial,
const char *  device,
long  baudrate 
)

接続を開く

Definition at line 38 of file urg_serial_linux.c.

int serial_read ( urg_serial_t serial,
char *  data,
int  max_size,
int  timeout 
)

データを受信する

Definition at line 193 of file urg_serial_linux.c.

int serial_set_baudrate ( urg_serial_t serial,
long  baudrate 
)

ボーレートを設定する

Definition at line 91 of file urg_serial_linux.c.

int serial_write ( urg_serial_t serial,
const char *  data,
int  size 
)

データを送信する

Definition at line 134 of file urg_serial_linux.c.

static int wait_receive ( urg_serial_t serial,
int  timeout 
) [static]

Definition at line 143 of file urg_serial_linux.c.



urg_c
Author(s): Satofumi Kamimura , Katsumi Kimoto, Adrian Boeing
autogenerated on Thu Jun 6 2019 19:06:57