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 460 of file unix.cc.

Definition at line 437 of file unix.cc.

Definition at line 766 of file unix.cc.

Definition at line 775 of file unix.cc.

Definition at line 784 of file unix.cc.

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

Definition at line 704 of file unix.cc.

Definition at line 718 of file unix.cc.

Definition at line 984 of file unix.cc.

Definition at line 921 of file unix.cc.

Definition at line 942 of file unix.cc.

Definition at line 760 of file unix.cc.

Definition at line 732 of file unix.cc.

string Serial::SerialImpl::getPort ( ) const

Definition at line 678 of file unix.cc.

Definition at line 963 of file unix.cc.

Definition at line 746 of file unix.cc.

Definition at line 690 of file unix.cc.

Definition at line 454 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 512 of file unix.cc.

Definition at line 1005 of file unix.cc.

Definition at line 1014 of file unix.cc.

Definition at line 160 of file unix.cc.

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

Definition at line 793 of file unix.cc.

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

Definition at line 696 of file unix.cc.

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

Definition at line 802 of file unix.cc.

Definition at line 710 of file unix.cc.

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

Definition at line 852 of file unix.cc.

Definition at line 752 of file unix.cc.

Definition at line 724 of file unix.cc.

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

Definition at line 672 of file unix.cc.

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

Definition at line 826 of file unix.cc.

Definition at line 738 of file unix.cc.

Definition at line 684 of file unix.cc.

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

Definition at line 505 of file unix.cc.

Definition at line 878 of file unix.cc.

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

Definition at line 474 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 589 of file unix.cc.

Definition at line 1023 of file unix.cc.

Definition at line 1032 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 Mon Oct 6 2014 07:34:37