Public Member Functions | Private Attributes | List of all members
SerialDevice Class Reference

#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
 

Detailed Description

Definition at line 43 of file include/serial.h.

Constructor & Destructor Documentation

SerialDevice::SerialDevice ( )
SerialDevice::~SerialDevice ( )

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.

SerialDevice::SerialDevice ( )
SerialDevice::~SerialDevice ( )

Member Function Documentation

long SerialDevice::change_baud_serial ( int  tty_fd,
speed_t  speed 
)
long SerialDevice::change_baud_serial ( int  tty_fd,
speed_t  speed 
)
void SerialDevice::close_serial ( int  tty_fd)
void SerialDevice::close_serial ( int  tty_fd)
long SerialDevice::empty_serial ( int  tty_fd)
long SerialDevice::empty_serial ( int  tty_fd)
int SerialDevice::open_serial ( const char *  p_tty_name)
int SerialDevice::open_serial ( const char *  p_tty_name)
long SerialDevice::read_serial ( int  tty_fd,
unsigned char *  p_buffer,
long  nb_bytes_max 
)
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 
)
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 
)
long SerialDevice::write_serial ( int  tty_fd,
unsigned char *  p_buffer,
long  nb_byte 
)

Member Data Documentation

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.


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


asr_flock_of_birds
Author(s): Bernhardt Andre, Engelmann Stephan, Giesler Björn, Heller Florian, Jäkel Rainer, Nguyen Trung, Pardowitz Michael, Weckesser Peter, Yi Xie, Zöllner Raoul
autogenerated on Mon Jun 10 2019 12:44:40