PacketStream Implementation for Windows based Systems.
More...
#include <eoWin32PacketStream.h>
PacketStream Implementation for Windows based Systems.
eoWin32PacketStream uses a \\.\COMxx Interface for a direct communication to an EnOcean device via UART [ESP3].
- Examples:
- packetStream_example.cpp.
◆ Close()
void eoWin32PacketStream::Close |
( |
| ) |
|
|
virtual |
◆ GetLastError()
DWORD eoWin32PacketStream::GetLastError |
( |
| ) |
|
|
inline |
Returns the last error from the windows api
◆ Open()
eoReturn eoWin32PacketStream::Open |
( |
const char * |
port | ) |
|
|
virtual |
Tries to Open and initialize the specific port for the eoLinuxPacketstream
- Parameters
-
port | to open; for example "\\\\.\\COM0" |
- Returns
- eoReturn OK if everything was ok else eoReturn PORT_ERROR
Implements eoPacketStream.
◆ ReceiveByte()
eoReturn eoWin32PacketStream::ReceiveByte |
( |
uint8_t * |
d | ) |
|
|
virtual |
◆ SendByte()
eoReturn eoWin32PacketStream::SendByte |
( |
uint8_t |
d | ) |
|
|
virtual |