The class for port control that inherits PortHandlerLinux, PortHandlerWindows, PortHandlerMac, or PortHandlerArduino.
More...
#include <port_handler.h>
|
virtual void | clearPort ()=0 |
| The function that clears the port @description The function clears the port. More...
|
|
virtual void | closePort ()=0 |
| The function that closes the port @description The function closes the port. More...
|
|
virtual int | getBaudRate ()=0 |
| The function that returns current baudrate set into the port handler @description The function returns current baudrate set into the port handler. More...
|
|
virtual int | getBytesAvailable ()=0 |
| The function that checks how much bytes are able to be read from the port buffer @description The function checks how much bytes are able to be read from the port buffer @description and returns the number. More...
|
|
virtual char * | getPortName ()=0 |
| The function that returns port name set into the port handler @description The function returns current port name set into the port handler. More...
|
|
virtual bool | isPacketTimeout ()=0 |
| The function that checks whether packet timeout is occurred @description The function checks whether current time is passed by the time of packet timeout from the time set by PortHandlerLinux::setPacketTimeout(). More...
|
|
virtual bool | openPort ()=0 |
| The function that opens the port @description The function calls PortHandlerLinux::setBaudRate() to open the port. More...
|
|
virtual int | readPort (uint8_t *packet, int length)=0 |
| The function that reads bytes from the port buffer @description The function gets bytes from the port buffer, @description and returns a number of bytes read. More...
|
|
virtual bool | setBaudRate (const int baudrate)=0 |
| The function that sets baudrate into the port handler @description The function sets baudrate into the port handler. More...
|
|
virtual void | setPacketTimeout (double msec)=0 |
| The function that sets and starts stopwatch for watching packet timeout @description The function sets the stopwatch by getting current time and the time of packet timeout with msec. More...
|
|
virtual void | setPacketTimeout (uint16_t packet_length)=0 |
| The function that sets and starts stopwatch for watching packet timeout @description The function sets the stopwatch by getting current time and the time of packet timeout with packet_length. More...
|
|
virtual void | setPortName (const char *port_name)=0 |
| The function that sets port name into the port handler @description The function sets port name into the port handler. More...
|
|
virtual int | writePort (uint8_t *packet, int length)=0 |
| The function that writes bytes on the port buffer @description The function writes bytes on the port buffer, @description and returns a number of bytes which are successfully written. More...
|
|
virtual | ~PortHandler () |
|
◆ ~PortHandler()
virtual dynamixel::PortHandler::~PortHandler |
( |
| ) |
|
|
inlinevirtual |
◆ clearPort()
virtual void dynamixel::PortHandler::clearPort |
( |
| ) |
|
|
pure virtual |
◆ closePort()
virtual void dynamixel::PortHandler::closePort |
( |
| ) |
|
|
pure virtual |
◆ getBaudRate()
virtual int dynamixel::PortHandler::getBaudRate |
( |
| ) |
|
|
pure virtual |
◆ getBytesAvailable()
virtual int dynamixel::PortHandler::getBytesAvailable |
( |
| ) |
|
|
pure virtual |
◆ getPortHandler()
PortHandler * PortHandler::getPortHandler |
( |
const char * |
port_name | ) |
|
|
static |
◆ getPortName()
virtual char* dynamixel::PortHandler::getPortName |
( |
| ) |
|
|
pure virtual |
◆ isPacketTimeout()
virtual bool dynamixel::PortHandler::isPacketTimeout |
( |
| ) |
|
|
pure virtual |
◆ openPort()
virtual bool dynamixel::PortHandler::openPort |
( |
| ) |
|
|
pure virtual |
◆ readPort()
virtual int dynamixel::PortHandler::readPort |
( |
uint8_t * |
packet, |
|
|
int |
length |
|
) |
| |
|
pure virtual |
◆ setBaudRate()
virtual bool dynamixel::PortHandler::setBaudRate |
( |
const int |
baudrate | ) |
|
|
pure virtual |
◆ setPacketTimeout() [1/2]
virtual void dynamixel::PortHandler::setPacketTimeout |
( |
double |
msec | ) |
|
|
pure virtual |
◆ setPacketTimeout() [2/2]
virtual void dynamixel::PortHandler::setPacketTimeout |
( |
uint16_t |
packet_length | ) |
|
|
pure virtual |
◆ setPortName()
virtual void dynamixel::PortHandler::setPortName |
( |
const char * |
port_name | ) |
|
|
pure virtual |
◆ writePort()
virtual int dynamixel::PortHandler::writePort |
( |
uint8_t * |
packet, |
|
|
int |
length |
|
) |
| |
|
pure virtual |
◆ DEFAULT_BAUDRATE_
const int dynamixel::PortHandler::DEFAULT_BAUDRATE_ = 57600 |
|
static |
◆ is_using_
bool dynamixel::PortHandler::is_using_ |
The documentation for this class was generated from the following files: