#include <serial.h>
Public Member Functions | |
long | change_baud_serial (int tty_fd, speed_t speed) |
long | change_baud_serial (int tty_fd, speed_t speed) |
void | close_serial (int tty_fd) |
void | close_serial (int tty_fd) |
long | empty_serial (int tty_fd) |
long | empty_serial (int tty_fd) |
int | open_serial (const char *p_tty_name) |
int | open_serial (const char *p_tty_name) |
long | read_serial (int tty_fd, unsigned char *p_buffer, long nb_bytes_max) |
long | read_serial (int tty_fd, unsigned char *p_buffer, long nb_bytes_max) |
SerialDevice () | |
SerialDevice () | |
long | wait_for_serial (int tty_fd, long max_time_secs) |
long | wait_for_serial (int tty_fd, long max_time_secs) |
long | write_serial (int tty_fd, unsigned char *p_buffer, long nb_byte) |
long | write_serial (int tty_fd, unsigned char *p_buffer, long nb_byte) |
~SerialDevice () | |
~SerialDevice () | |
Private Attributes | |
char | device_name [255] |
int | tty_fd_slot |
Definition at line 43 of file include/serial.h.
Definition at line 35 of file kogmo_fob/trackerServer/serialClass/serial.cc.
Copyright (c) 2016, Bernhardt Andre, Engelmann Stephan, Giesler Björn, Heller Florian, Jäkel Rainer, Nguyen Trung, Pardowitz Michael, Weckesser Peter, Yi Xie, Zöllner Raoul 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 29 of file kogmo_fob/trackerServer/serialClass/serial.cc.
long SerialDevice::change_baud_serial | ( | int | tty_fd, |
speed_t | speed | ||
) |
Definition at line 105 of file kogmo_fob/trackerServer/serialClass/serial.cc.
long SerialDevice::change_baud_serial | ( | int | tty_fd, |
speed_t | speed | ||
) |
void SerialDevice::close_serial | ( | int | tty_fd | ) |
Definition at line 216 of file kogmo_fob/trackerServer/serialClass/serial.cc.
void SerialDevice::close_serial | ( | int | tty_fd | ) |
long SerialDevice::empty_serial | ( | int | tty_fd | ) |
Definition at line 271 of file kogmo_fob/trackerServer/serialClass/serial.cc.
long SerialDevice::empty_serial | ( | int | tty_fd | ) |
int SerialDevice::open_serial | ( | const char * | p_tty_name | ) |
Definition at line 54 of file kogmo_fob/trackerServer/serialClass/serial.cc.
int SerialDevice::open_serial | ( | const char * | p_tty_name | ) |
long SerialDevice::read_serial | ( | int | tty_fd, |
unsigned char * | p_buffer, | ||
long | nb_bytes_max | ||
) |
Definition at line 171 of file kogmo_fob/trackerServer/serialClass/serial.cc.
long SerialDevice::read_serial | ( | int | tty_fd, |
unsigned char * | p_buffer, | ||
long | nb_bytes_max | ||
) |
long SerialDevice::wait_for_serial | ( | int | tty_fd, |
long | max_time_secs | ||
) |
Definition at line 235 of file kogmo_fob/trackerServer/serialClass/serial.cc.
long SerialDevice::wait_for_serial | ( | int | tty_fd, |
long | max_time_secs | ||
) |
long SerialDevice::write_serial | ( | int | tty_fd, |
unsigned char * | p_buffer, | ||
long | nb_byte | ||
) |
Definition at line 142 of file kogmo_fob/trackerServer/serialClass/serial.cc.
long SerialDevice::write_serial | ( | int | tty_fd, |
unsigned char * | p_buffer, | ||
long | nb_byte | ||
) |
char SerialDevice::device_name [private] |
Definition at line 46 of file include/serial.h.
int SerialDevice::tty_fd_slot [private] |
Definition at line 45 of file include/serial.h.