Go to the documentation of this file.
22 #ifndef DYNAMIXEL_SDK_INCLUDE_DYNAMIXEL_SDK_MAC_PORTHANDLERMAC_H_
23 #define DYNAMIXEL_SDK_INCLUDE_DYNAMIXEL_SDK_MAC_PORTHANDLERMAC_H_
134 int readPort(uint8_t *packet,
int length);
146 int writePort(uint8_t *packet,
int length);
void clearPort()
The function that clears the port @description The function clears the port.
int getCFlagBaud(const int baudrate)
bool setBaudRate(const int baudrate)
The function that sets baudrate into the port handler @description The function sets baudrate into th...
void setPortName(const char *port_name)
The function that sets port name into the port handler @description The function sets port name into ...
bool openPort()
The function that opens the port @description The function calls PortHandlerMac::setBaudRate() to ope...
int readPort(uint8_t *packet, int length)
The function that reads bytes from the port buffer @description The function gets bytes from the port...
void setPacketTimeout(uint16_t packet_length)
The function that sets and starts stopwatch for watching packet timeout @description The function set...
The class for port control that inherits PortHandlerLinux, PortHandlerWindows, PortHandlerMac,...
int writePort(uint8_t *packet, int length)
The function that writes bytes on the port buffer @description The function writes bytes on the port ...
void closePort()
The function that closes the port @description The function closes the port.
double packet_start_time_
int getBaudRate()
The function that returns current baudrate set into the port handler @description The function return...
int getBytesAvailable()
The function that checks how much bytes are able to be read from the port buffer @description The fun...
char * getPortName()
The function that returns port name set into the port handler @description The function returns curre...
bool isPacketTimeout()
The function that checks whether packet timeout is occurred @description The function checks whether ...
PortHandlerMac(const char *port_name)
The function that initializes instance of PortHandler and gets port_name @description The function in...
bool setupPort(const int cflag_baud)
The class for control port in Mac OS.
bool setCustomBaudrate(int speed)
virtual ~PortHandlerMac()
The function that closes the port @description The function calls PortHandlerMac::closePort() to clos...
double getTimeSinceStart()
dynamixel_sdk
Author(s): Gilbert
, Zerom , Darby Lim , Leon
autogenerated on Wed Mar 2 2022 00:13:50