LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
LccNodeSlcanSerialBridge< SerialType >::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 LccNodeSlcanSerialBridge< SerialType >::WritePort:

Public Member Functions

 WritePort (LccNodeSlcanSerialBridge *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

LccNodeSlcanSerialBridgepParent_
 Parent object that owns this instance.
 

Detailed Description

template<class SerialType>
class LccNodeSlcanSerialBridge< SerialType >::WritePort

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

Definition at line 105 of file LccNodeSlcanSerialBridge.h.

Constructor & Destructor Documentation

◆ WritePort()

template<class SerialType >
LccNodeSlcanSerialBridge< SerialType >::WritePort::WritePort ( LccNodeSlcanSerialBridge pParent,
Service *  pService 
)
inline

Constructor.

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

Definition at line 113 of file LccNodeSlcanSerialBridge.h.

Member Function Documentation

◆ entry()

template<class SerialType >
Action LccNodeSlcanSerialBridge< SerialType >::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 123 of file LccNodeSlcanSerialBridge.h.

Here is the call graph for this function:

◆ write_done()

template<class SerialType >
Action LccNodeSlcanSerialBridge< SerialType >::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 136 of file LccNodeSlcanSerialBridge.h.

Here is the caller graph for this function:

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