Actual implementation for the gridconnect bridge between a string-typed Hub and a CAN-frame-typed Hub.
More...
|
| class | BinaryToGCMember |
| | HubPort (on a CAN-typed hub) that turns a binary CAN packet into a string-formatted CAN packet, and sends it off to the HubFlow (of type string). More...
|
| |
| class | GCToBinaryMember |
| | HubPort (on a string hub) that turns a gridconnect-formatted CAN packet into a binary CAN packet, and sends them off to the HubFlow (of CAN frame). More...
|
| |
Actual implementation for the gridconnect bridge between a string-typed Hub and a CAN-frame-typed Hub.
Definition at line 55 of file GridConnectHub.cxx.
◆ GCAdapter() [1/2]
Constructor.
- Parameters
-
| gc_side | A hub of type string, the gridconnect side. |
| can_side | A hub of type struct can_frame, the binary side. |
| double_bytes | if true, upon rendering data each byte will be doubled. This is an anciant workaround. |
Definition at line 64 of file GridConnectHub.cxx.
◆ GCAdapter() [2/2]
Constructor.
- Parameters
-
| gc_side_read | A hub of type string to read packets from. The read packets will be converted to binary and sent to can_side. |
| gc_side_write | A hub of type string to write incoming binary packets that were converted to |
| can_side | A hub of type struct can_frame, the binary side. |
| double_bytes | if true, upon rendering data each byte will be doubled. This is an anciant workaround. |
Definition at line 82 of file GridConnectHub.cxx.
◆ ~GCAdapter()
| virtual GCAdapter::~GCAdapter |
( |
| ) |
|
|
inlinevirtual |
◆ shutdown()
| bool GCAdapter::shutdown |
( |
| ) |
|
|
inlinevirtual |
Unregisters *this from the pipes.
- Returns
- true if it is safe to destroy *this. It is OK to call this multiple times. It should be called on the executor of the CAN side service. */
Implements GCAdapterBase.
Definition at line 109 of file GridConnectHub.cxx.
◆ unregister()
| void GCAdapter::unregister |
( |
| ) |
|
|
inline |
◆ formatter_
◆ isRegistered_
| unsigned GCAdapter::isRegistered_ |
|
private |
◆ parser_
The documentation for this class was generated from the following file: