34#ifndef _UTILS_GRIDCONNECTHUB_HXX_
35#define _UTILS_GRIDCONNECTHUB_HXX_
140 Notifiable *on_exit =
nullptr,
bool use_select =
false);
void create_gc_port_for_can_hub(CanHubFlow *can_hub, int fd, Notifiable *on_exit=nullptr, bool use_select=false)
Creates a new port on a CAN hub in gridconnect format for a select-compatible file descriptor.
Type-specific implementations of the DispatchFlow methods.
Abstract class for message recipients.
Publicly visible API for the gridconnect-to-CAN bridge.
static GCAdapterBase * CreateGridConnectAdapter(HubFlow *gc_side, CanHubFlow *can_side, bool double_bytes)
This function connects an ASCII (GridConnect-format) CAN adapter to a binary CAN adapter,...
virtual bool shutdown()=0
Unregisters *this from the pipes.
Create this port for a CAN hub and all packets will be written to stdout in gridconnect format.
std::unique_ptr< Impl > impl_
pImpl object.
An object that can schedule itself on an executor to run.
Private data for a can device.
Implementation for the gridconnect bridge.