Class SerialClient
Inherits the following classes: BaseClient
Public Functions
| Type | Name |
|---|---|
| virtual bool | Connect () override |
| bool | FlushQueu () |
| virtual int | GetWaitTime () override |
| virtual bool | ReadReply (std::string * str, size_t min_size=3) override |
| SerialClient (std::string USB_PORT, int baudrate, int character_size=8, std::string parity="None", float stop_bits=1, int to=100, std::string flow_ctrl="None") |
|
| virtual void | SetDefaultWaitTime (int value) override |
| virtual bool | Write (std::string str) override |
| ~SerialClient () |
Public Functions inherited from BaseClient
See BaseClient
| Type | Name |
|---|---|
| BaseClient (int to) |
|
| virtual bool | Connect () |
| virtual int | GetWaitTime () |
| virtual bool | ReadReply (std::string * str, size_t=3) |
| virtual void | SetDefaultWaitTime (int value) |
| virtual bool | Write (std::string str) |
| virtual | ~BaseClient () |
Protected Attributes inherited from BaseClient
See BaseClient
| Type | Name |
|---|---|
| int | default_wait |
| std::string | read_stop |
| int | read_time_out |
Public Functions Documentation
function Connect
virtual bool SerialClient::Connect () override
Implements BaseClient::Connect
function FlushQueu
bool SerialClient::FlushQueu ()
function GetWaitTime
inline virtual int SerialClient::GetWaitTime () override
Implements BaseClient::GetWaitTime
function ReadReply
virtual bool SerialClient::ReadReply (
std::string * str,
size_t min_size=3
) override
Implements BaseClient::ReadReply
function SerialClient
SerialClient::SerialClient (
std::string USB_PORT,
int baudrate,
int character_size=8,
std::string parity="None",
float stop_bits=1,
int to=100,
std::string flow_ctrl="None"
)
function SetDefaultWaitTime
inline virtual void SerialClient::SetDefaultWaitTime (
int value
) override
Implements BaseClient::SetDefaultWaitTime
function Write
virtual bool SerialClient::Write (
std::string str
) override
Implements BaseClient::Write
function ~SerialClient
SerialClient::~SerialClient ()
The documentation for this class was generated from the following file midas_fe/power/SerialClient.h