Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
DatagramCan.hxx
Go to the documentation of this file.
1
35#ifndef _OPENLCB_DATAGRAMCAN_HXX_
36#define _OPENLCB_DATAGRAMCAN_HXX_
37
38#include "openlcb/IfCan.hxx"
39#include "openlcb/Datagram.hxx"
40
41namespace openlcb
42{
43
50{
51public:
52 /*
53 * @param num_registry_entries is the size of the registry map (how
54 * many datagram handlers can be registered)*/
55 CanDatagramService(IfCan *iface, int num_registry_entries,
56 int num_clients);
57
59
60 IfCan *if_can()
61 {
62 return static_cast<IfCan *>(iface());
63 }
64};
65
68
69} // namespace openlcb
70
71#endif // _OPENLCB_DATAGRAMCAN_HXX_
An object that can be scheduled on an executor to run.
Implementation of the DatagramService with the CANbus-specific OpenLCB datagram protocol.
Transport-agnostic dispatcher of datagrams.
Definition Datagram.hxx:161
Implementation of the OpenLCB interface abstraction for the CAN-bus interface standard.
Definition IfCan.hxx:65
Executable * TEST_CreateCanDatagramParser(IfCan *if_can)
Creates a CAN datagram parser flow. Exposed for testing only.