Public Member Functions | Private Attributes
SerialDevice Class Reference

#include <serial.h>

List of all members.

Public Member Functions

long change_baud_serial (int tty_fd, speed_t speed)
void close_serial (int tty_fd)
long empty_serial (int tty_fd)
int open_serial (const char *p_tty_name)
long read_serial (int tty_fd, unsigned char *p_buffer, long nb_bytes_max)
 SerialDevice ()
long wait_for_serial (int tty_fd, long max_time_secs)
long write_serial (int tty_fd, unsigned char *p_buffer, long nb_byte)
 ~SerialDevice ()

Private Attributes

char device_name [255]
int tty_fd_slot

Detailed Description

Definition at line 42 of file serial.h.


Constructor & Destructor Documentation

Definition at line 34 of file serial.cc.

Copyright (c) 2016, Heller Florian, Meißner Pascal, Nguyen Trung, Yi Xie All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition at line 28 of file serial.cc.


Member Function Documentation

long SerialDevice::change_baud_serial ( int  tty_fd,
speed_t  speed 
)

Definition at line 104 of file serial.cc.

void SerialDevice::close_serial ( int  tty_fd)

Definition at line 220 of file serial.cc.

long SerialDevice::empty_serial ( int  tty_fd)

Definition at line 275 of file serial.cc.

int SerialDevice::open_serial ( const char *  p_tty_name)

Definition at line 53 of file serial.cc.

long SerialDevice::read_serial ( int  tty_fd,
unsigned char *  p_buffer,
long  nb_bytes_max 
)

Definition at line 172 of file serial.cc.

long SerialDevice::wait_for_serial ( int  tty_fd,
long  max_time_secs 
)

Definition at line 239 of file serial.cc.

long SerialDevice::write_serial ( int  tty_fd,
unsigned char *  p_buffer,
long  nb_byte 
)

Definition at line 141 of file serial.cc.


Member Data Documentation

char SerialDevice::device_name[255] [private]

Definition at line 45 of file serial.h.

Definition at line 44 of file serial.h.


The documentation for this class was generated from the following files:


asr_cyberglove_lib
Author(s): Heller Florian, Meißner Pascal, Nguyen Trung, Yi Xie
autogenerated on Thu Jun 6 2019 22:02:33