#include <SDOSegmented.h>
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 |
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.
States, that are used to describe the current state of the transmission process of the collected segmented SDO transfer.
Definition at line 70 of file SDOSegmented.h.
segData::segData | ( | ) | [inline] |
Definition at line 77 of file SDOSegmented.h.
segData::~segData | ( | ) | [inline] |
Definition at line 84 of file SDOSegmented.h.
void segData::resetTransferData | ( | ) | [inline] |
Clear the SDO segmented collector
Definition at line 89 of file SDOSegmented.h.
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.
bool segData::toggleBit |
The toggle bit, that has to be alternated in each confirmation response to a received segment.
Definition at line 122 of file SDOSegmented.h.