ApparatusFramework::CanConnection Class Reference
[Communication Services]

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

Inheritance diagram for ApparatusFramework::CanConnection:
ApparatusFramework::Connection ApparatusFramework::KernelMultipleObservable ApparatusFramework::MultipleObservable< Msg * > ApparatusFramework::Observable< Msg * >

List of all members.

Public Member Functions

 CanConnection ()
void setAddress (uint8 nodeId)
uint8 getAddress ()
void setBusId (uint8 busId)
 ~CanConnection ()
bool send (CanMsg *pMsg)
void receive (uint8 nodeId, Message &msg)

Static Public Member Functions

static bool cmdSendPDO (char *parameter)
static bool cmdSendSDO (char *parameter)
static bool cmdSendSync (char *parameter)

Detailed Description

Special connection for CanOpen. It inherits of the connection class.

Definition at line 534 of file CanConnection.h.


Constructor & Destructor Documentation

ApparatusFramework::CanConnection::CanConnection (  ) 

constructors, destructors Default Constuctor

ApparatusFramework::CanConnection::~CanConnection (  ) 

Destructs the CanConnection and frees its resources.


Member Function Documentation

static bool ApparatusFramework::CanConnection::cmdSendPDO ( char *  parameter  )  [static]

command interpreter command functions Static method to be added to the command interpreter. Sends a PDO object.

Parameters:
parameter the parameter that was given with the command.
Returns:
bool true: command success, false: command failed.
static bool ApparatusFramework::CanConnection::cmdSendSDO ( char *  parameter  )  [static]

Static method to be added to the command interpreter. Sends a SDO object.

Parameters:
parameter the parameter that was given with the command.
Returns:
bool true: command success, false: command failed.
static bool ApparatusFramework::CanConnection::cmdSendSync ( char *  parameter  )  [static]

Static method to be added to the command interpreter. Sends a SYNC object.

Parameters:
parameter The parameter that was given with the command.
Returns:
bool true: command success, false: command failed.
uint8 ApparatusFramework::CanConnection::getAddress (  )  [inline]

Returns the node id.

Returns:
uint8 Node id of the connection.

Definition at line 551 of file CanConnection.h.

void ApparatusFramework::CanConnection::receive ( uint8  nodeId,
Message msg 
)

methods called by the protocol Receives a message over the connection.

Parameters:
nodeId the nodeId, which received a message.
msg the received message.
bool ApparatusFramework::CanConnection::send ( CanMsg pMsg  ) 

Communication methods Sends a message over the connection.

Parameters:
pMsg pointer to the message to be sent.
Returns:
bool true: message sent, false: failure.
void ApparatusFramework::CanConnection::setAddress ( uint8  nodeId  )  [inline]

Sets the node id for the connection.

Parameters:
nodeId the node id of the can modul for the connection.

Definition at line 546 of file CanConnection.h.

void ApparatusFramework::CanConnection::setBusId ( uint8  busId  )  [inline]

Sets the id of the bus, which is used to transmit the data.

Definition at line 555 of file CanConnection.h.

© 2004-2010 bbv Software Services AG / Apparatus Services