Public Member Functions
SerialPort Class Reference

#include <port.h>

Inheritance diagram for SerialPort:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ssize_t read (void *buf, size_t count)
 SerialPort (const char *conn_string, pollfd *pollfd_ptr)
virtual ssize_t write (void *buf, size_t count)
virtual ~SerialPort ()

Detailed Description

Actual serial port class Connection string has the form "serial:devname,baud"

Definition at line 91 of file port.h.


Constructor & Destructor Documentation

SerialPort::SerialPort ( const char *  conn_str,
pollfd *  pollfd_ptr 
)

Open a serial port using a given connection strin.

Parameters:
conn_strThe connection string, of the form "serial:devname,baudrate". The baudrate element is optional; baud rate defaults to 115200

Definition at line 243 of file port.cpp.

SerialPort::~SerialPort ( ) [virtual]

Closes the serial port.

Definition at line 285 of file port.cpp.


Member Function Documentation

ssize_t SerialPort::read ( void *  buf,
size_t  count 
) [virtual]

Implements Port.

Definition at line 290 of file port.cpp.

ssize_t SerialPort::write ( void *  buf,
size_t  count 
) [virtual]

Implements Port.

Definition at line 295 of file port.cpp.


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


kingfisher_bringup
Author(s): Mike Purvis, Ryan Gariepy
autogenerated on Sat Dec 28 2013 17:08:06