|
DESERT 4.0.0
|
#include <uwmconnector.h>


Public Member Functions | |
| UWMconnector (UWMdriver *, std::string) | |
| ~UWMconnector () | |
| virtual int | openConnection ()=0 |
| virtual void | closeConnection () |
| virtual int | writeToModem (std::string)=0 |
| std::string | readFromModem () |
| void | setDriverQueueLength (int length) |
| uint | getDriverQueueLength () |
| UWMconnector (UWMdriver *, std::string) | |
| ~UWMconnector () | |
| virtual int | openConnection ()=0 |
| virtual void | closeConnection () |
| virtual int | writeToModem (std::string)=0 |
| std::string | readFromModem () |
| void | setDriverQueueLength (int length) |
| uint | getDriverQueueLength () |
Public Attributes | |
| std::queue< msgModem > | queueMsg |
Protected Attributes | |
| UWMdriver * | pmDriver |
| std::string | pathToDevice |
| uint | driver_queue_length |
The class needed by UWMPhy_modem to manage string exchange with the modem. This class just provides the definition of the basic needed functionalities and it must be extended to handle e.g., serial connection (see Mserial) or TCP/IP connection (see Msocket).
| UWMconnector::UWMconnector | ( | UWMdriver * | pmDriver_, |
| std::string | pathToDevice_ | ||
| ) |
Class constructor.
| pmDriver_ | pointer to the UWMdriver object to link with this UWMconnector object. |
| pathToDevice_ | the path to the device that must be connected with NS-Miracle (e.g., /dev/ttyUSB0 for a serial connection) |
References pathToDevice, and pmDriver.
| UWMconnector::~UWMconnector | ( | ) |
Class destructor.
| UWMconnector::UWMconnector | ( | UWMdriver * | , |
| std::string | |||
| ) |
Class constructor.
| pmDriver_ | pointer to the UWMdriver object to link with this UWMconnector object. |
| pathToDevice_ | the path to the device that must be connected with NS-Miracle (e.g., /dev/ttyUSB0 for a serial connection) |
| UWMconnector::~UWMconnector | ( | ) |
Class destructor.
|
virtual |
|
virtual |
|
inline |
References driver_queue_length.
|
inline |
References driver_queue_length.
Referenced by read_process_msocket().
|
pure virtual |
|
pure virtual |
| std::string UWMconnector::readFromModem | ( | ) |
Method to check the receiving modem buffer.
| std::string UWMconnector::readFromModem | ( | ) |
Method to check the receiving modem buffer.
References LOG_LEVEL_ERROR, msgModem::msg_rx, pmDriver, UWMdriver::printOnLog(), and queueMsg.
Referenced by MdriverS2C_Evo_lowlev::start(), MdriverS2C_Evo_lowlev::stop(), and MdriverS2C_Evo_lowlev::updateStatus().

| void UWMconnector::setDriverQueueLength | ( | int | length | ) |
| void UWMconnector::setDriverQueueLength | ( | int | length | ) |
References driver_queue_length.
Referenced by UWMdriver::setConnections().
|
pure virtual |
|
pure virtual |
|
protected |
Referenced by getDriverQueueLength(), and setDriverQueueLength().
|
protected |
The path to be connected with the modem device
Referenced by Msocket::Msocket(), and UWMconnector().
|
protected |
Pointer to UWMdriver object that contains this UWMconnector.
Referenced by readFromModem(), and UWMconnector().
| std::queue< msgModem > UWMconnector::queueMsg |
Queue used to buffer incoming strings from the modem.
Referenced by read_process_msocket(), and readFromModem().