DESERT 3.5.1
|
#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).
Definition at line 80 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.h.
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) |
Definition at line 79 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.cpp.
UWMconnector::~UWMconnector | ( | ) |
Class destructor.
Definition at line 87 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.cpp.
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 |
Method to close the connection with the modem.
Reimplemented in Msocket, and Msocket.
Definition at line 92 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.cpp.
|
inline |
Definition at line 133 of file DESERT_Addons/uwmphy_modem/uwmconnector.h.
|
inline |
Definition at line 133 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.h.
|
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.
Definition at line 103 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.cpp.
void UWMconnector::setDriverQueueLength | ( | int | length | ) |
void UWMconnector::setDriverQueueLength | ( | int | length | ) |
Definition at line 97 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.cpp.
|
pure virtual |
|
pure virtual |
|
protected |
Definition at line 143 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.h.
|
protected |
The path to be connected with the modem device.
Definition at line 141 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.h.
|
protected |
Pointer to UWMdriver object that contains this UWMconnector.
Definition at line 139 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.h.
std::queue< msgModem > UWMconnector::queueMsg |
Queue used to buffer incoming strings from the modem.
Definition at line 83 of file DESERT_Framework/DESERT/physical/uwmphy_modem/uwmconnector.h.