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

#include <myahrs_plus.hpp>

Public Member Functions

void Close ()
 
int Flush ()
 
bool Open (const char *port, int brate)
 
bool Open ()
 
int Read (unsigned char *buf, unsigned int buf_len)
 
 SerialPort (const char *port="", unsigned int brate=115200)
 
int Write (unsigned char *data, unsigned int data_len)
 
 ~SerialPort ()
 

Private Attributes

unsigned int baudrate
 
int port_fd
 
std::string port_name
 

Detailed Description

Definition at line 380 of file myahrs_plus.hpp.

Constructor & Destructor Documentation

WithRobot::Platform::SerialPort::SerialPort ( const char *  port = "",
unsigned int  brate = 115200 
)
inline

Definition at line 387 of file myahrs_plus.hpp.

WithRobot::Platform::SerialPort::~SerialPort ( )
inline

Definition at line 393 of file myahrs_plus.hpp.

Member Function Documentation

void WithRobot::Platform::SerialPort::Close ( )
inline

Definition at line 439 of file myahrs_plus.hpp.

int WithRobot::Platform::SerialPort::Flush ( )
inline

Definition at line 467 of file myahrs_plus.hpp.

bool WithRobot::Platform::SerialPort::Open ( const char *  port,
int  brate 
)
inline

Definition at line 397 of file myahrs_plus.hpp.

bool WithRobot::Platform::SerialPort::Open ( )
inline

Definition at line 403 of file myahrs_plus.hpp.

int WithRobot::Platform::SerialPort::Read ( unsigned char *  buf,
unsigned int  buf_len 
)
inline

Definition at line 446 of file myahrs_plus.hpp.

int WithRobot::Platform::SerialPort::Write ( unsigned char *  data,
unsigned int  data_len 
)
inline

Definition at line 459 of file myahrs_plus.hpp.

Member Data Documentation

unsigned int WithRobot::Platform::SerialPort::baudrate
private

Definition at line 384 of file myahrs_plus.hpp.

int WithRobot::Platform::SerialPort::port_fd
private

Definition at line 383 of file myahrs_plus.hpp.

std::string WithRobot::Platform::SerialPort::port_name
private

Definition at line 382 of file myahrs_plus.hpp.


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


myahrs_driver
Author(s): Yoonseok Pyo
autogenerated on Thu Jul 16 2020 03:08:51