Public Member Functions | Private Attributes | List of all members
rt_usb_9axisimu::SerialPort Class Reference

#include <rt_usb_9axisimu.hpp>

Inheritance diagram for rt_usb_9axisimu::SerialPort:
Inheritance graph
[legend]

Public Member Functions

void closeSerialPort ()
 
bool openPort (const char *port)
 
bool openSerialPort ()
 
int readFromDevice (unsigned char *buf, unsigned int buf_len)
 
 SerialPort (const char *port="")
 
int writeToDevice (unsigned char *data, unsigned int data_len)
 
 ~SerialPort ()
 

Private Attributes

struct termios old_settings_
 
int port_fd_
 
std::string port_name_
 

Detailed Description

Definition at line 170 of file rt_usb_9axisimu.hpp.

Constructor & Destructor Documentation

rt_usb_9axisimu::SerialPort::SerialPort ( const char *  port = "")
inline

Definition at line 178 of file rt_usb_9axisimu.hpp.

rt_usb_9axisimu::SerialPort::~SerialPort ( )
inline

Definition at line 182 of file rt_usb_9axisimu.hpp.

Member Function Documentation

void rt_usb_9axisimu::SerialPort::closeSerialPort ( )
inline

Definition at line 222 of file rt_usb_9axisimu.hpp.

bool rt_usb_9axisimu::SerialPort::openPort ( const char *  port)
inline

Definition at line 187 of file rt_usb_9axisimu.hpp.

bool rt_usb_9axisimu::SerialPort::openSerialPort ( )
inline

Definition at line 193 of file rt_usb_9axisimu.hpp.

int rt_usb_9axisimu::SerialPort::readFromDevice ( unsigned char *  buf,
unsigned int  buf_len 
)
inline

Definition at line 232 of file rt_usb_9axisimu.hpp.

int rt_usb_9axisimu::SerialPort::writeToDevice ( unsigned char *  data,
unsigned int  data_len 
)
inline

Definition at line 242 of file rt_usb_9axisimu.hpp.

Member Data Documentation

struct termios rt_usb_9axisimu::SerialPort::old_settings_
private

Definition at line 174 of file rt_usb_9axisimu.hpp.

int rt_usb_9axisimu::SerialPort::port_fd_
private

Definition at line 175 of file rt_usb_9axisimu.hpp.

std::string rt_usb_9axisimu::SerialPort::port_name_
private

Definition at line 173 of file rt_usb_9axisimu.hpp.


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


rt_usb_9axisimu_driver
Author(s): RT Corporation
autogenerated on Fri May 14 2021 02:35:44