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)
 接続を閉じる More...
 
static void serial_initialize (urg_serial_t *serial)
 
int serial_open (urg_serial_t *serial, const char *device, long baudrate)
 接続を開く More...
 
int serial_read (urg_serial_t *serial, char *data, int max_size, int timeout)
 データを受信する More...
 
int serial_set_baudrate (urg_serial_t *serial, long baudrate)
 ボーレートを設定する More...
 
int serial_write (urg_serial_t *serial, const char *data, int size)
 データを送信する More...
 
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

anonymous enum
Enumerator
INVALID_FD 

Definition at line 15 of file urg_serial_linux.c.

Function Documentation

◆ internal_receive()

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.

◆ serial_clear()

static void serial_clear ( urg_serial_t serial)
static

Definition at line 29 of file urg_serial_linux.c.

◆ serial_close()

void serial_close ( urg_serial_t serial)

接続を閉じる

Definition at line 82 of file urg_serial_linux.c.

◆ serial_initialize()

static void serial_initialize ( urg_serial_t serial)
static

Definition at line 20 of file urg_serial_linux.c.

◆ serial_open()

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

接続を開く

Definition at line 38 of file urg_serial_linux.c.

◆ serial_read()

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

データを受信する

Definition at line 193 of file urg_serial_linux.c.

◆ serial_set_baudrate()

int serial_set_baudrate ( urg_serial_t serial,
long  baudrate 
)

ボーレートを設定する

Definition at line 91 of file urg_serial_linux.c.

◆ serial_write()

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

データを送信する

Definition at line 134 of file urg_serial_linux.c.

◆ wait_receive()

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 Wed Mar 2 2022 01:08:11