|
Open Model Railroad Network (OpenMRN)
|
Interface class for the asynchronous frame write flow. More...
#include <CanIf.hxx>
Public Member Functions | |
| CanFrameWriteFlow (CanIf *service) | |
| Constructor. | |
| Pool * | pool () OVERRIDE |
| void | send (Buffer< CanHubData > *message, unsigned priority=UINT_MAX) OVERRIDE |
| Entry point to this 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_ |
| Parent 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. | |
Interface class for the asynchronous frame write flow.
This flow allows you to write frames to the CAN bus.
Usage: . allocate a buffer for this flow. . fill in buffer->data()->mutable_frame() [*] . call flow->send(buffer)
|
inline |
|
virtual |
Reimplemented from FlowInterface< Buffer< CanHubData > >.
|
virtual |
Entry point to this flow.
| message | buffer to send. |
| priority | Priority to use when sending. |
Implements FlowInterface< Buffer< CanHubData > >.
|
private |