ApparatusFramework::ConnectionMsg Class Reference
[Communication Services]

#include <CommunicationServices/current/include/Connection.h>

Inheritance diagram for ApparatusFramework::ConnectionMsg:
ApparatusFramework::Msg ApparatusFramework::CanMsg ApparatusFramework::CanNMTMsg ApparatusFramework::CanPDOMsg ApparatusFramework::CanReceiveMsg ApparatusFramework::CanSDOMsg ApparatusFramework::CanSYNCMsg

List of all members.

Public Member Functions

virtual bool toMsg (uint8 *pFrame)=0
virtual void toFrame (uint8 *pFrame)=0
virtual uint32 getFrameSize ()=0

Detailed Description

Message type to be sent over the connection. The connection message base has to be overridden and finally contains the specific application data frame structure. It is able to directly convert the internal structure into a byte stream to be packed into the transport layer frame.

Definition at line 57 of file Connection.h.


Member Function Documentation

virtual uint32 ApparatusFramework::ConnectionMsg::getFrameSize (  )  [pure virtual]

Gets the size of the internal data as byte stream.

Returns:
uint32 size of the internal data as byte stream.

Implemented in ApparatusFramework::CanMsg, ApparatusFramework::CanSDOMsg, ApparatusFramework::CanPDOMsg, ApparatusFramework::CanNMTMsg, ApparatusFramework::CanSYNCMsg, and ApparatusFramework::CanReceiveMsg.

virtual void ApparatusFramework::ConnectionMsg::toFrame ( uint8 pFrame  )  [pure virtual]

Converts the internal representation of the data into a byte stream.

Parameters:
pFrame a byte stream representing the internal data ready for transmission.

Implemented in ApparatusFramework::CanMsg, ApparatusFramework::CanSDOMsg, ApparatusFramework::CanPDOMsg, ApparatusFramework::CanNMTMsg, ApparatusFramework::CanSYNCMsg, and ApparatusFramework::CanReceiveMsg.

virtual bool ApparatusFramework::ConnectionMsg::toMsg ( uint8 pFrame  )  [pure virtual]

conversion methods Converts a frame into the internal data representation.

Parameters:
pFrame a byte stream containing the frame to be filled into the message structure.
Returns:
bool true if the buffer has been successfully converted to a message.

Implemented in ApparatusFramework::CanMsg, ApparatusFramework::CanSDOMsg, ApparatusFramework::CanPDOMsg, ApparatusFramework::CanNMTMsg, ApparatusFramework::CanSYNCMsg, and ApparatusFramework::CanReceiveMsg.

© 2004-2010 bbv Software Services AG / Apparatus Services