LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
LccNodeNowBridge::WritePort Class Reference

State machine running in the OpenMRN cooperative executor, registered to receive data that needs to be sent to the port. More...

Inherits HubPort.

Collaboration diagram for LccNodeNowBridge::WritePort:

Public Member Functions

 WritePort (LccNodeNowBridge *pParent, Service *pService)
 Constructor. More...
 
Action entry () override
 State machine state when a new buffer of data to be sent shows up. More...
 
Action write_done ()
 State reached when the output buffer's data has fully been sent to the hardware and notify() call was made. More...
 

Private Attributes

LccNodeNowBridgepParent_
 Parent object that owns this instance.
 

Detailed Description

State machine running in the OpenMRN cooperative executor, registered to receive data that needs to be sent to the port.

Definition at line 140 of file LccNodeNowBridge.h.

Constructor & Destructor Documentation

◆ WritePort()

LccNodeNowBridge::WritePort::WritePort ( LccNodeNowBridge pParent,
Service *  pService 
)
inline

Constructor.

Parameters
pParentParent object that owns this instance.
pServiceService holding the cooperative executor from the OpenMRN stack.

Definition at line 148 of file LccNodeNowBridge.h.

Member Function Documentation

◆ entry()

Action LccNodeNowBridge::WritePort::entry ( )
inlineoverride

State machine state when a new buffer of data to be sent shows up.

Must not block.

Returns
Action to wait and call write_done state.

Definition at line 158 of file LccNodeNowBridge.h.

Here is the call graph for this function:

◆ write_done()

Action LccNodeNowBridge::WritePort::write_done ( )
inline

State reached when the output buffer's data has fully been sent to the hardware and notify() call was made.

It releases the memory and continues processing any further data piled up in the input queue.

Returns
Action to release and exit.

Definition at line 171 of file LccNodeNowBridge.h.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: