#include <RoboteqDevice.h>
Public Member Functions | |
int | Connect (string port) |
void | Disconnect () |
int | GetConfig (int configItem, int index, int &result) |
int | GetConfig (int configItem, int &result) |
int | GetValue (int operatingItem, int index, int &result) |
int | GetValue (int operatingItem, int &result) |
bool | IsConnected () |
RoboteqDevice () | |
int | SetCommand (int commandItem, int index, int value) |
int | SetCommand (int commandItem, int value) |
int | SetCommand (int commandItem) |
int | SetConfig (int configItem, int index, int value) |
int | SetConfig (int configItem, int value) |
~RoboteqDevice () | |
Protected Member Functions | |
void | InitPort () |
int | IssueCommand (string commandType, string command, string args, int waitms, string &response, bool isplusminus=false) |
int | IssueCommand (string commandType, string command, int waitms, string &response, bool isplusminus=false) |
int | ReadAll (string &str) |
int | Write (string str) |
Private Attributes | |
int | device_fd |
int | fd0 |
int | handle |
Definition at line 9 of file RoboteqDevice.h.
Definition at line 18 of file RoboteqDevice.cpp.
Definition at line 22 of file RoboteqDevice.cpp.
int RoboteqDevice::Connect | ( | string | port | ) |
Definition at line 31 of file RoboteqDevice.cpp.
void RoboteqDevice::Disconnect | ( | ) |
Definition at line 76 of file RoboteqDevice.cpp.
int RoboteqDevice::GetConfig | ( | int | configItem, |
int | index, | ||
int & | result | ||
) |
Definition at line 282 of file RoboteqDevice.cpp.
int RoboteqDevice::GetConfig | ( | int | configItem, |
int & | result | ||
) |
Definition at line 309 of file RoboteqDevice.cpp.
int RoboteqDevice::GetValue | ( | int | operatingItem, |
int | index, | ||
int & | result | ||
) |
Definition at line 314 of file RoboteqDevice.cpp.
int RoboteqDevice::GetValue | ( | int | operatingItem, |
int & | result | ||
) |
Definition at line 341 of file RoboteqDevice.cpp.
void RoboteqDevice::InitPort | ( | ) | [protected] |
Definition at line 84 of file RoboteqDevice.cpp.
bool RoboteqDevice::IsConnected | ( | ) |
Definition at line 27 of file RoboteqDevice.cpp.
int RoboteqDevice::IssueCommand | ( | string | commandType, |
string | command, | ||
string | args, | ||
int | waitms, | ||
string & | response, | ||
bool | isplusminus = false |
||
) | [protected] |
Definition at line 161 of file RoboteqDevice.cpp.
int RoboteqDevice::IssueCommand | ( | string | commandType, |
string | command, | ||
int | waitms, | ||
string & | response, | ||
bool | isplusminus = false |
||
) | [protected] |
Definition at line 206 of file RoboteqDevice.cpp.
int RoboteqDevice::ReadAll | ( | string & | str | ) | [protected] |
Definition at line 131 of file RoboteqDevice.cpp.
int RoboteqDevice::SetCommand | ( | int | commandItem, |
int | index, | ||
int | value | ||
) |
Definition at line 244 of file RoboteqDevice.cpp.
int RoboteqDevice::SetCommand | ( | int | commandItem, |
int | value | ||
) |
Definition at line 273 of file RoboteqDevice.cpp.
int RoboteqDevice::SetCommand | ( | int | commandItem | ) |
Definition at line 277 of file RoboteqDevice.cpp.
int RoboteqDevice::SetConfig | ( | int | configItem, |
int | index, | ||
int | value | ||
) |
Definition at line 211 of file RoboteqDevice.cpp.
int RoboteqDevice::SetConfig | ( | int | configItem, |
int | value | ||
) |
Definition at line 239 of file RoboteqDevice.cpp.
int RoboteqDevice::Write | ( | string | str | ) | [protected] |
Definition at line 117 of file RoboteqDevice.cpp.
int RoboteqDevice::device_fd [private] |
Definition at line 12 of file RoboteqDevice.h.
int RoboteqDevice::fd0 [private] |
Definition at line 13 of file RoboteqDevice.h.
int RoboteqDevice::handle [private] |
Definition at line 14 of file RoboteqDevice.h.