Appearance
RS232API
cpp
#include <VirtualC64.h>cpp
class RS232APIDefined in VirtualC64.h:1106
RS232 Public API
Public Methods
| Return | Name | Description |
|---|---|---|
void | operator<< | Returns the component's current state. |
void | operator<< | Feeds a string into the RS232 adapter. |
std::u16string | readIncoming | Read a printable byte from the incoming logbuffer. Calling this function empties the logbuffer. When the logbuffer is empty and a new data packet is received, a Msg::RS232_IN message is sent to the GUI. |
std::u16string | readOutgoing | Read the logbuffer that records outgoing data. Calling this function empties the logbuffer. When the logbuffer is empty and a new data packet is sent, a Msg::RS232_OUT message is sent to the GUI. |
int | readIncomingPrintableByte | Read a printable byte from the incoming logbuffer. |
int | readOutgoingPrintableByte | Read a printable byte from the outgoing logbuffer. |
operator<<
cpp
void operator<<(char c)Defined in VirtualC64.h:1123
Returns the component's current state.
Feeds textual data into the RS232 adapter. This function emulates the transmission of incoming data from an external device.
operator<<
cpp
void operator<<(const string & s)Defined in VirtualC64.h:1125
Feeds a string into the RS232 adapter.
readIncoming
cpp
std::u16string readIncoming()Defined in VirtualC64.h:1132
Read a printable byte from the incoming logbuffer. Calling this function empties the logbuffer. When the logbuffer is empty and a new data packet is received, a Msg::RS232_IN message is sent to the GUI.
readOutgoing
cpp
std::u16string readOutgoing()Defined in VirtualC64.h:1139
Read the logbuffer that records outgoing data. Calling this function empties the logbuffer. When the logbuffer is empty and a new data packet is sent, a Msg::RS232_OUT message is sent to the GUI.
readIncomingPrintableByte
cpp
int readIncomingPrintableByte()Defined in VirtualC64.h:1143
Read a printable byte from the incoming logbuffer.
readOutgoingPrintableByte
cpp
int readOutgoingPrintableByte()Defined in VirtualC64.h:1147
Read a printable byte from the outgoing logbuffer.