Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ls::LSIOSR Class Reference

#include <lsiosr.h>

Public Member Functions

int close ()
 
std::string getPort ()
 
int init ()
 
int read (char *buffer, int length, int timeout=30)
 
int send (const char *buffer, int length, int timeout=30)
 
int setPort (std::string name)
 
 ~LSIOSR ()
 

Static Public Member Functions

static LSIOSRinstance (std::string name, int speed, int fd=0)
 

Private Member Functions

 LSIOSR (std::string name, int speed, int fd)
 
int setOpt (int nBits, uint8_t nEvent, int nStop)
 
int waitReadable (int millis)
 
int waitWritable (int millis)
 

Private Attributes

int baud_rate_
 
int fd_
 
std::string port_
 

Detailed Description

Definition at line 46 of file lsiosr.h.

Constructor & Destructor Documentation

ls::LSIOSR::~LSIOSR ( )

Definition at line 24 of file lsiosr.cpp.

ls::LSIOSR::LSIOSR ( std::string  name,
int  speed,
int  fd 
)
private

Definition at line 19 of file lsiosr.cpp.

Member Function Documentation

int ls::LSIOSR::close ( )

Definition at line 402 of file lsiosr.cpp.

std::string ls::LSIOSR::getPort ( )

Definition at line 407 of file lsiosr.cpp.

int ls::LSIOSR::init ( )

Definition at line 381 of file lsiosr.cpp.

LSIOSR * ls::LSIOSR::instance ( std::string  name,
int  speed,
int  fd = 0 
)
static

Definition at line 13 of file lsiosr.cpp.

int ls::LSIOSR::read ( char *  buffer,
int  length,
int  timeout = 30 
)

Definition at line 127 of file lsiosr.cpp.

int ls::LSIOSR::send ( const char *  buffer,
int  length,
int  timeout = 30 
)

Definition at line 299 of file lsiosr.cpp.

int ls::LSIOSR::setOpt ( int  nBits,
uint8_t  nEvent,
int  nStop 
)
private

Definition at line 29 of file lsiosr.cpp.

int ls::LSIOSR::setPort ( std::string  name)

Definition at line 412 of file lsiosr.cpp.

int ls::LSIOSR::waitReadable ( int  millis)
private

Definition at line 201 of file lsiosr.cpp.

int ls::LSIOSR::waitWritable ( int  millis)
private

Definition at line 250 of file lsiosr.cpp.

Member Data Documentation

int ls::LSIOSR::baud_rate_
private

Definition at line 80 of file lsiosr.h.

int ls::LSIOSR::fd_
private

Definition at line 82 of file lsiosr.h.

std::string ls::LSIOSR::port_
private

Definition at line 78 of file lsiosr.h.


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


ls01b_v2
Author(s): fu
autogenerated on Sat Sep 28 2019 03:51:19