The Communication class.
More...
#include <communication.hh>
Definition at line 23 of file communication.hh.
◆ Communication()
Communication::Communication |
( |
| ) |
|
◆ ~Communication()
Communication::~Communication |
( |
| ) |
|
◆ closeSerialPort()
bool Communication::closeSerialPort |
( |
| ) |
|
- Returns
- bool Identifier wether serial port was closed succesfully
- Return values
-
true | Serial port closed successfully |
false | Serial port closed incoreccty |
Definition at line 44 of file communication.cpp.
◆ endCommunication()
void Communication::endCommunication |
( |
| ) |
|
|
inline |
◆ getFrameBuffer()
const FrameBuffer& Communication::getFrameBuffer |
( |
| ) |
const |
|
inline |
◆ isOpen()
bool Communication::isOpen |
( |
| ) |
|
|
inline |
- Returns
- bool Port openning identifier
- Return values
-
true | Port is open |
false | Port is closed |
Definition at line 104 of file communication.hh.
◆ openSerialPort() [1/2]
bool Communication::openSerialPort |
( |
| ) |
|
|
inline |
- Returns
- bool Identifier wether serial port was opened succesfully
- Return values
-
true | Serial port opened successfully |
false | Serial port opened incoreccty |
Definition at line 88 of file communication.hh.
◆ openSerialPort() [2/2]
bool Communication::openSerialPort |
( |
const char * |
serialPort | ) |
|
- Parameters
-
[in] | serialPort | Serial port name |
- Returns
- bool Identifier wether serial port was opened succesfully
- Return values
-
true | Serial port opened succesfully |
false | Serial port opened incoreccty |
Definition at line 22 of file communication.cpp.
◆ receiveData()
void Communication::receiveData |
( |
| ) |
|
◆ setDevice()
void Communication::setDevice |
( |
QSerialPort * |
device | ) |
|
|
inline |
◆ setDeviceName()
void Communication::setDeviceName |
( |
const std::string & |
name | ) |
|
|
inline |
- Parameters
-
[in] | name | Name of the serial device |
Definition at line 65 of file communication.hh.
◆ setStatus()
void Communication::setStatus |
( |
QLabel * |
statusBar | ) |
|
- Parameters
-
[in] | statusBar | Handle to QLabel on status bar |
Definition at line 59 of file communication.cpp.
◆ toContinue()
bool Communication::toContinue |
( |
| ) |
const |
|
inline |
- Returns
- bool Identifier wether to continue communication
- Return values
-
true | Continue communication |
false | End communicaton |
Definition at line 130 of file communication.hh.
◆ useFrameBuffer()
◆ _continue
bool Communication::_continue = true |
|
private |
◆ _device
QSerialPort* Communication::_device = nullptr |
|
private |
◆ _deviceName
std::string Communication::_deviceName |
|
private |
◆ _frame
◆ _opened
bool Communication::_opened = false |
|
private |
The documentation for this class was generated from the following files: