| 38 | } |
| 39 | |
| 40 | bool SerialIf_OpenSerial(int protocol, QString portname, qint32 baud) |
| 41 | { |
| 42 | m_serialPort.setPortName(portname); |
| 43 | m_serialPort.setBaudRate(baud); |
| 44 | |
| 45 | m_Interface = IF_SERIAL; |
| 46 | m_Protocol = protocol; |
| 47 | |
| 48 | return m_serialPort.open(QIODevice::ReadWrite); |
| 49 | } |
| 50 | |
| 51 | bool SerialIf_OpenEth(QString ip, qint32 port) |
| 52 | { |
no outgoing calls
no test coverage detected