|
Open Model Railroad Network (OpenMRN)
|
This flow is responsible for taking data from the can HUB and sending it to the IfCan's dispatcher. More...
#include <CanIf.hxx>
Public Member Functions | |
| CanFrameReadFlow (CanIf *service) | |
| Constructor. | |
| Pool * | pool () OVERRIDE |
| void | send (Buffer< CanHubData > *message, unsigned priority=UINT_MAX) OVERRIDE |
| Entry point to the flow. | |
Public Member Functions inherited from FlowInterface< Buffer< CanHubData > > | |
| virtual Buffer< CanHubData > * | type_helper () |
| This function is never user in the code, but GDB can use it to infer the correct message types. | |
| Buffer< CanHubData > * | alloc () |
| Synchronously allocates a message buffer from the pool of this flow. | |
| void | alloc_async (Executable *target) |
| Asynchronously allocates a message buffer from the pool of this flow. | |
Private Attributes | |
| CanIf * | ifCan_ |
| Interface that owns this flow. | |
Additional Inherited Members | |
Public Types inherited from FlowInterface< Buffer< CanHubData > > | |
| typedef Buffer< CanHubData > | message_type |
| Stores the message template type for external reference. | |
Static Public Member Functions inherited from FlowInterface< Buffer< CanHubData > > | |
| static Buffer< CanHubData > * | cast_alloc (QMember *entry) |
| Down casts and initializes an asynchronous allocation result to the appropriate flow's buffer type. | |
This flow is responsible for taking data from the can HUB and sending it to the IfCan's dispatcher.
|
inline |
|
virtual |
Reimplemented from FlowInterface< Buffer< CanHubData > >.
|
virtual |
Entry point to the flow.
| message | incoming buffer. |
| priority | priority to assign it to |
Implements FlowInterface< Buffer< CanHubData > >.
|
private |