ApparatusFramework::CanReceiveMsg Class Reference
[Communication Services]

#include <CommunicationServices/current/include/CanOpen/CanConnection.h>

Inheritance diagram for ApparatusFramework::CanReceiveMsg:
ApparatusFramework::CanMsg ApparatusFramework::ConnectionMsg ApparatusFramework::Msg

List of all members.

Public Member Functions

 CanReceiveMsg (uint8 *data, uint8 dataLength, uint8 nodeId)
bool toMsg (uint8 *pFrame)
void toFrame (uint8 *pFrame)
uint32 getFrameSize ()
Msgclone ()
virtual int toString (char *pBuffer, const int32 bufferLen) const

Public Attributes

uint8 m_dataLength
uint8 m_nodeId
uint8 m_data [8]
MsgHandlerm_pReceiver

Detailed Description

CanReceiveMsg Special Message for the received datas.

Definition at line 450 of file CanConnection.h.


Constructor & Destructor Documentation

ApparatusFramework::CanReceiveMsg::CanReceiveMsg ( uint8 data,
uint8  dataLength,
uint8  nodeId 
) [inline]

constructors, destructors constructor of a CanOpen PDO object.

Parameters:
data the data, which should be sent.
dataLength length of the message.
nodeId the node id of the can modul for the connection.

Definition at line 460 of file CanConnection.h.


Member Function Documentation

Msg* ApparatusFramework::CanReceiveMsg::clone (  )  [inline, virtual]

Copies an instance of Msg given as parameter and delievers it back.

Returns:
Msg* can receive message.

Reimplemented from ApparatusFramework::CanMsg.

Definition at line 494 of file CanConnection.h.

uint32 ApparatusFramework::CanReceiveMsg::getFrameSize (  )  [inline, virtual]

Gets the size of the internal data as byte stream.

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

Reimplemented from ApparatusFramework::CanMsg.

Definition at line 489 of file CanConnection.h.

void ApparatusFramework::CanReceiveMsg::toFrame ( uint8 pFrame  )  [inline, virtual]

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

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

Reimplemented from ApparatusFramework::CanMsg.

Definition at line 484 of file CanConnection.h.

bool ApparatusFramework::CanReceiveMsg::toMsg ( uint8 pFrame  )  [inline, 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.

Reimplemented from ApparatusFramework::CanMsg.

Definition at line 479 of file CanConnection.h.

virtual int ApparatusFramework::CanReceiveMsg::toString ( char *  pBuffer,
const int32  bufferLen 
) const [inline, virtual]

Dumps the content of this message into a string for debug reasons.

Parameters:
pBuffer Buffer for the string representation.
bufferLen Size of the buffer.
Returns:
Number of characters that (would) have been printed to pBuffer or -1 on failure.

Reimplemented from ApparatusFramework::CanMsg.

Definition at line 502 of file CanConnection.h.


Member Data Documentation

The received datas.

Definition at line 523 of file CanConnection.h.

fields The length of the received data.

Definition at line 515 of file CanConnection.h.

The Id of the node.

Definition at line 519 of file CanConnection.h.

Holds pointer to MsgHandler.

Definition at line 527 of file CanConnection.h.

© 2004-2010 bbv Software Services AG / Apparatus Services