#include <serial_controller.h>
|
| bool | addCallback (const callback_data_t &callback, const string data) |
| | addCallback Add callback message More...
|
| |
| template<class T > |
| bool | addCallback (void(T::*fp)(const string), T *obj, const string data) |
| |
| bool | command (string msg, string params="", string type="!") |
| |
| bool | downloadScript () |
| | downloadScript Launch the script update for the Roboteq board More...
|
| |
| bool | echo (bool type) |
| | echo Enable or disable the echo message More...
|
| |
| bool | factoryReset () |
| | factoryReset Factory reset of Roboteq board More...
|
| |
| string | get () |
| | get Get the message parsed More...
|
| |
| string | getParam (string msg, string params="") |
| |
| string | getQuery (string msg, string params="") |
| |
| string | getVersionScript () |
| | getVersionScript The version of the script loaded More...
|
| |
| bool | loadFromEEPROM () |
| | loadFromEEPROM More...
|
| |
| bool | maintenance (string msg, string params="") |
| |
| bool | query (string msg, string params="", string type="?") |
| |
| void | reset () |
| | reset Reset the Roboteq board More...
|
| |
| bool | saveInEEPROM () |
| | saveInEEPROM The EESAV it's a real-time Command must be used to copy the RAM array to Flash. The Flash is copied to RAM every time the device powers up. More...
|
| |
| bool | script (bool status) |
| | script Run and stop the script inside the Roboteq More...
|
| |
| | serial_controller (string port, unsigned long baudrate) |
| | serial_controller Open the serial controller More...
|
| |
| bool | setParam (string msg, string params="") |
| |
| bool | start () |
| | start Initialize the serial communcation More...
|
| |
| bool | stop () |
| | stop More...
|
| |
| | ~serial_controller () |
| |
Definition at line 49 of file serial_controller.h.
| roboteq::serial_controller::serial_controller |
( |
string |
port, |
|
|
unsigned long |
baudrate |
|
) |
| |
| roboteq::serial_controller::~serial_controller |
( |
| ) |
|
addCallback Add callback message
- Parameters
-
| callback | The callback function |
| type | The type of message to check |
Definition at line 129 of file serial_controller.cpp.
template<class T >
| bool roboteq::serial_controller::addCallback |
( |
void(T::*)(const string) |
fp, |
|
|
T * |
obj, |
|
|
const string |
data |
|
) |
| |
|
inline |
| void roboteq::serial_controller::async_reader |
( |
| ) |
|
|
private |
async_reader Thread to read realtime all charachters sent from roboteq board
Definition at line 262 of file serial_controller.cpp.
| bool roboteq::serial_controller::command |
( |
string |
msg, |
|
|
string |
params = "", |
|
|
string |
type = "!" |
|
) |
| |
| bool roboteq::serial_controller::downloadScript |
( |
| ) |
|
downloadScript Launch the script update for the Roboteq board
- Returns
- Return true if the script is fully updated
Definition at line 163 of file serial_controller.cpp.
| bool roboteq::serial_controller::echo |
( |
bool |
type | ) |
|
|
inline |
echo Enable or disable the echo message
- Parameters
-
- Returns
- The status of command
Definition at line 179 of file serial_controller.h.
| bool roboteq::serial_controller::enableDownload |
( |
| ) |
|
|
private |
enableDownload Enable writing script
- Returns
- Status of HLD reference [pag. 183]
Definition at line 141 of file serial_controller.cpp.
| bool roboteq::serial_controller::factoryReset |
( |
| ) |
|
|
inline |
| string roboteq::serial_controller::get |
( |
| ) |
|
|
inline |
get Get the message parsed
- Returns
- Return the string received
Definition at line 111 of file serial_controller.h.
| string roboteq::serial_controller::getVersionScript |
( |
| ) |
|
|
inline |
getVersionScript The version of the script loaded
- Returns
- The string of roboteq control version
Definition at line 119 of file serial_controller.h.
| bool roboteq::serial_controller::loadFromEEPROM |
( |
| ) |
|
|
inline |
| bool roboteq::serial_controller::maintenance |
( |
string |
msg, |
|
|
string |
params = "" |
|
) |
| |
|
inline |
| bool roboteq::serial_controller::query |
( |
string |
msg, |
|
|
string |
params = "", |
|
|
string |
type = "?" |
|
) |
| |
| void roboteq::serial_controller::reset |
( |
| ) |
|
|
inline |
| bool roboteq::serial_controller::saveInEEPROM |
( |
| ) |
|
|
inline |
saveInEEPROM The EESAV it's a real-time Command must be used to copy the RAM array to Flash. The Flash is copied to RAM every time the device powers up.
- Returns
- the status of write
Definition at line 156 of file serial_controller.h.
| bool roboteq::serial_controller::script |
( |
bool |
status | ) |
|
|
inline |
script Run and stop the script inside the Roboteq
- Parameters
-
| status | The status of the script |
- Returns
- the status of command
Definition at line 165 of file serial_controller.h.
| bool roboteq::serial_controller::setParam |
( |
string |
msg, |
|
|
string |
params = "" |
|
) |
| |
|
inline |
| bool roboteq::serial_controller::start |
( |
| ) |
|
start Initialize the serial communcation
- Returns
- if open the connection return true
Definition at line 55 of file serial_controller.cpp.
| bool roboteq::serial_controller::stop |
( |
| ) |
|
| string roboteq::serial_controller::_script_ver |
|
private |
| std::condition_variable roboteq::serial_controller::cv |
|
private |
| bool roboteq::serial_controller::data |
|
private |
| std::thread roboteq::serial_controller::first |
|
private |
| bool roboteq::serial_controller::isHLD |
|
private |
| uint32_t roboteq::serial_controller::mBaudrate |
|
private |
| string roboteq::serial_controller::mMessage |
|
private |
| mutex roboteq::serial_controller::mReaderMutex |
|
private |
| string roboteq::serial_controller::mSerialPort |
|
private |
| bool roboteq::serial_controller::mStopping |
|
private |
| uint32_t roboteq::serial_controller::mTimeout |
|
private |
| mutex roboteq::serial_controller::mWriteMutex |
|
private |
| string roboteq::serial_controller::sub_data |
|
private |
| bool roboteq::serial_controller::sub_data_cmd |
|
private |
The documentation for this class was generated from the following files: