Public Member Functions | Protected Member Functions | Private Attributes
serial::Serial::SerialImpl Class Reference

#include <unix.h>

List of all members.

Public Member Functions

size_t available ()
void close ()
void flush ()
void flushInput ()
void flushOutput ()
unsigned long getBaudrate () const
bytesize_t getBytesize () const
bool getCD ()
bool getCTS ()
bool getDSR ()
flowcontrol_t getFlowcontrol () const
parity_t getParity () const
string getPort () const
bool getRI ()
stopbits_t getStopbits () const
Timeout getTimeout () const
bool isOpen () const
void open ()
size_t read (uint8_t *buf, size_t size=1)
void readLock ()
void readUnlock ()
void sendBreak (int duration)
 SerialImpl (const string &port, unsigned long baudrate, bytesize_t bytesize, parity_t parity, stopbits_t stopbits, flowcontrol_t flowcontrol)
void setBaudrate (unsigned long baudrate)
void setBreak (bool level)
void setBytesize (bytesize_t bytesize)
void setDTR (bool level)
void setFlowcontrol (flowcontrol_t flowcontrol)
void setParity (parity_t parity)
void setPort (const string &port)
void setRTS (bool level)
void setStopbits (stopbits_t stopbits)
void setTimeout (Timeout &timeout)
void waitByteTimes (size_t count)
bool waitForChange ()
bool waitReadable (uint32_t timeout)
size_t write (const uint8_t *data, size_t length)
void writeLock ()
void writeUnlock ()
virtual ~SerialImpl ()

Protected Member Functions

void reconfigurePort ()

Private Attributes

unsigned long baudrate_
uint32_t byte_time_ns_
bytesize_t bytesize_
int fd_
flowcontrol_t flowcontrol_
bool is_open_
parity_t parity_
string port_
pthread_mutex_t read_mutex
bool rtscts_
stopbits_t stopbits_
Timeout timeout_
pthread_mutex_t write_mutex
bool xonxoff_

Detailed Description

Definition at line 66 of file unix.h.


Constructor & Destructor Documentation

Serial::SerialImpl::SerialImpl ( const string &  port,
unsigned long  baudrate,
bytesize_t  bytesize,
parity_t  parity,
stopbits_t  stopbits,
flowcontrol_t  flowcontrol 
)

Definition at line 108 of file unix.cc.

Definition at line 122 of file unix.cc.


Member Function Documentation

Definition at line 478 of file unix.cc.

Definition at line 455 of file unix.cc.

Definition at line 789 of file unix.cc.

Definition at line 798 of file unix.cc.

Definition at line 807 of file unix.cc.

unsigned long Serial::SerialImpl::getBaudrate ( ) const

Definition at line 727 of file unix.cc.

Definition at line 741 of file unix.cc.

Definition at line 1007 of file unix.cc.

Definition at line 944 of file unix.cc.

Definition at line 965 of file unix.cc.

Definition at line 783 of file unix.cc.

Definition at line 755 of file unix.cc.

string Serial::SerialImpl::getPort ( ) const

Definition at line 701 of file unix.cc.

Definition at line 986 of file unix.cc.

Definition at line 769 of file unix.cc.

Definition at line 713 of file unix.cc.

Definition at line 472 of file unix.cc.

Definition at line 130 of file unix.cc.

size_t Serial::SerialImpl::read ( uint8_t *  buf,
size_t  size = 1 
)

Definition at line 530 of file unix.cc.

Definition at line 1028 of file unix.cc.

Definition at line 1037 of file unix.cc.

Definition at line 160 of file unix.cc.

void Serial::SerialImpl::sendBreak ( int  duration)

Definition at line 816 of file unix.cc.

void Serial::SerialImpl::setBaudrate ( unsigned long  baudrate)

Definition at line 719 of file unix.cc.

void Serial::SerialImpl::setBreak ( bool  level)

Definition at line 825 of file unix.cc.

Definition at line 733 of file unix.cc.

void Serial::SerialImpl::setDTR ( bool  level)

Definition at line 875 of file unix.cc.

Definition at line 775 of file unix.cc.

Definition at line 747 of file unix.cc.

void Serial::SerialImpl::setPort ( const string &  port)

Definition at line 695 of file unix.cc.

void Serial::SerialImpl::setRTS ( bool  level)

Definition at line 849 of file unix.cc.

Definition at line 761 of file unix.cc.

Definition at line 707 of file unix.cc.

void Serial::SerialImpl::waitByteTimes ( size_t  count)

Definition at line 523 of file unix.cc.

Definition at line 901 of file unix.cc.

bool Serial::SerialImpl::waitReadable ( uint32_t  timeout)

Definition at line 492 of file unix.cc.

size_t Serial::SerialImpl::write ( const uint8_t *  data,
size_t  length 
)

Error

Timeout

Port ready to write

Definition at line 607 of file unix.cc.

Definition at line 1046 of file unix.cc.

Definition at line 1055 of file unix.cc.


Member Data Documentation

unsigned long serial::Serial::SerialImpl::baudrate_ [private]

Definition at line 203 of file unix.h.

Definition at line 204 of file unix.h.

Definition at line 207 of file unix.h.

Definition at line 196 of file unix.h.

Definition at line 209 of file unix.h.

Definition at line 198 of file unix.h.

Definition at line 206 of file unix.h.

Definition at line 195 of file unix.h.

pthread_mutex_t serial::Serial::SerialImpl::read_mutex [private]

Definition at line 212 of file unix.h.

Definition at line 200 of file unix.h.

Definition at line 208 of file unix.h.

Definition at line 202 of file unix.h.

pthread_mutex_t serial::Serial::SerialImpl::write_mutex [private]

Definition at line 214 of file unix.h.

Definition at line 199 of file unix.h.


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


serial
Author(s): William Woodall , John Harrison
autogenerated on Sat Jan 21 2017 03:55:47