Public Types | Public Member Functions | Public Attributes
segData Class Reference

#include <SDOSegmented.h>

List of all members.

Public Types

enum  SDOStatusFlag { SDO_SEG_FREE = 0, SDO_SEG_WAITING = 3, SDO_SEG_COLLECTING = 2, SDO_SEG_PROCESSING = 1 }

Public Member Functions

void resetTransferData ()
 segData ()
 ~segData ()

Public Attributes

std::vector< unsigned char > data
unsigned int numTotalBytes
int objectID
int objectSubID
int statusFlag
bool toggleBit

Detailed Description

This class is used to collect data that is uploaded to the master in an segmented SDO transfer. Additionally, it includes some administrative functions for this proccess. It can be seen as a SDO segmented collector.

Definition at line 63 of file SDOSegmented.h.


Member Enumeration Documentation

States, that are used to describe the current state of the transmission process of the collected segmented SDO transfer.

Enumerator:
SDO_SEG_FREE 

SDO collector is ready for a new transmission

SDO_SEG_WAITING 

SDO collector is waiting for the first bytes to receive

SDO_SEG_COLLECTING 

SDO collector is currently collecting data in a segmented SDO transfer

SDO_SEG_PROCESSING 

collection of data is finished but still has to be processed

Definition at line 70 of file SDOSegmented.h.


Constructor & Destructor Documentation

segData::segData ( ) [inline]

Definition at line 77 of file SDOSegmented.h.

segData::~segData ( ) [inline]

Definition at line 84 of file SDOSegmented.h.


Member Function Documentation

void segData::resetTransferData ( ) [inline]

Clear the SDO segmented collector

Definition at line 89 of file SDOSegmented.h.


Member Data Documentation

std::vector<unsigned char> segData::data

This vector holds the received data byte-wise

Definition at line 132 of file SDOSegmented.h.

unsigned int segData::numTotalBytes

Contains the total number of bytes to be uploaded (if specified by SDO sehmented header)

Definition at line 127 of file SDOSegmented.h.

Holds the ID of the currently uploading object

Definition at line 112 of file SDOSegmented.h.

Holds the Sub-ID of the currently uploading object

Definition at line 117 of file SDOSegmented.h.

combines different status flags and represents the workflow from 3 to 0: 3: SDORequest sent, waiting for transmission !If you are expecting a Segmented answer, this must be set during the request! 2: SDO process initiated, collecting data 1: finished transmission, waiting for data processing 0: SDO workflow finished, free for new transmission

Definition at line 107 of file SDOSegmented.h.

The toggle bit, that has to be alternated in each confirmation response to a received segment.

Definition at line 122 of file SDOSegmented.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


cob_canopen_motor
Author(s): Christian Connette
autogenerated on Fri Mar 1 2013 17:46:48