TwiceAsNice  2019-02-18
Public Member Functions | Protected Attributes | List of all members
Arduino Class Reference

#include <arduino.h>

Collaboration diagram for Arduino:
Collaboration graph

Public Member Functions

 Arduino ()
 
 ~Arduino ()
 
int destroy ()
 
int sendUchar (const unsigned char)
 
int sendString (const string)
 
int readPort (void *buff, int count)
 
int openPort (const char *_serialPort)
 
int openPort (const char *_serialPort, int _baud)
 
int closePort ()
 
int flushPort ()
 

Protected Attributes

char serialPort [PATH_MAX]
 
int baud
 
struct termios oldterm
 
struct termios term
 
int flags
 
int fd
 

Constructor & Destructor Documentation

◆ Arduino()

Arduino::Arduino ( )

◆ ~Arduino()

Arduino::~Arduino ( )

Member Function Documentation

◆ closePort()

int Arduino::closePort ( )

◆ destroy()

int Arduino::destroy ( )

◆ flushPort()

int Arduino::flushPort ( )

◆ openPort() [1/2]

int Arduino::openPort ( const char *  _serialPort)

◆ openPort() [2/2]

int Arduino::openPort ( const char *  _serialPort,
int  _baud 
)

◆ readPort()

int Arduino::readPort ( void *  buff,
int  count 
)

◆ sendString()

int Arduino::sendString ( const string  datastr)

◆ sendUchar()

int Arduino::sendUchar ( const unsigned char  data)

Member Data Documentation

◆ baud

int Arduino::baud
protected

◆ fd

int Arduino::fd
protected

◆ flags

int Arduino::flags
protected

◆ oldterm

struct termios Arduino::oldterm
protected

◆ serialPort

char Arduino::serialPort[PATH_MAX]
protected

◆ term

struct termios Arduino::term
protected

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