ApparatusFramework::CanSDOMsg Class Reference
[Communication Services]

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

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

List of all members.

Public Member Functions

 CanSDOMsg (uint8 command_specifier, uint16 index, uint8 subindex, uint8 dir, uint8 *data)
bool toMsg (uint8 *pFrame)
void toFrame (uint8 *pFrame)
uint32 getFrameSize ()
Msgclone ()
virtual int toString (char *pBuffer, const int32 bufferLen) const

Public Attributes

uint8 m_command_specifier
uint16 m_index
uint8 m_subindex
uint8 m_dir
uint8 m_data [4]

Detailed Description

Special Message for the CanOpen SDO object.

Definition at line 171 of file CanConnection.h.


Constructor & Destructor Documentation

ApparatusFramework::CanSDOMsg::CanSDOMsg ( uint8  command_specifier,
uint16  index,
uint8  subindex,
uint8  dir,
uint8 data 
) [inline]

constructors, destructors Default constructor of a CanOpen SDO object.

Parameters:
command_specifier Specifier used in SDO objects
index Index used in SDO objects
subindex Subindex used in SDO objects
dir Direction of the communication
data The datas, which should be sent

Definition at line 183 of file CanConnection.h.


Member Function Documentation

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

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

Returns:
Msg* can SDO message

Reimplemented from ApparatusFramework::CanMsg.

Definition at line 215 of file CanConnection.h.

uint32 ApparatusFramework::CanSDOMsg::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 210 of file CanConnection.h.

void ApparatusFramework::CanSDOMsg::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 206 of file CanConnection.h.

bool ApparatusFramework::CanSDOMsg::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 202 of file CanConnection.h.

virtual int ApparatusFramework::CanSDOMsg::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 223 of file CanConnection.h.


Member Data Documentation

fields The command specifier of a CanOpen SDO object.

Definition at line 236 of file CanConnection.h.

The datas to send

Definition at line 252 of file CanConnection.h.

The direction for the communication.

Definition at line 248 of file CanConnection.h.

The index of a CanOpen SDO object.

Definition at line 240 of file CanConnection.h.

The subindex of a CanOpen SDO object.

Definition at line 244 of file CanConnection.h.

© 2004-2010 bbv Software Services AG / Apparatus Services