SDOSegmented.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef _SDOSegmented_H
19 #define _SDOSegmented_H
20 
21 #include <vector>
22 
27 class segData {
28 
29  public:
30 
39  };
40 
41  segData() {
42  objectID = 0x0000;
43  objectSubID = 0x00;
44  toggleBit = false;
46  }
47 
48  ~segData() {}
49 
54  data.clear();
55  objectID = 0x0000;
56  objectSubID = 0x00;
57  toggleBit = false;
59  }
60 
61  //public attributes
62  //all attributes are public, as this class is used only as ~data array
63 
72 
76  int objectID;
77 
82 
86  bool toggleBit;
87 
91  unsigned int numTotalBytes;
92 
96  std::vector<unsigned char> data;
97 };
98 
99 #endif
segData::data
std::vector< unsigned char > data
Definition: SDOSegmented.h:96
segData::SDO_SEG_FREE
@ SDO_SEG_FREE
Definition: SDOSegmented.h:35
segData::SDO_SEG_COLLECTING
@ SDO_SEG_COLLECTING
Definition: SDOSegmented.h:37
segData
Definition: SDOSegmented.h:27
segData::segData
segData()
Definition: SDOSegmented.h:41
segData::objectSubID
int objectSubID
Definition: SDOSegmented.h:81
segData::SDO_SEG_PROCESSING
@ SDO_SEG_PROCESSING
Definition: SDOSegmented.h:38
segData::SDO_SEG_WAITING
@ SDO_SEG_WAITING
Definition: SDOSegmented.h:36
segData::toggleBit
bool toggleBit
Definition: SDOSegmented.h:86
segData::~segData
~segData()
Definition: SDOSegmented.h:48
segData::SDOStatusFlag
SDOStatusFlag
Definition: SDOSegmented.h:34
segData::numTotalBytes
unsigned int numTotalBytes
Definition: SDOSegmented.h:91
segData::objectID
int objectID
Definition: SDOSegmented.h:76
segData::statusFlag
int statusFlag
Definition: SDOSegmented.h:71
segData::resetTransferData
void resetTransferData()
Definition: SDOSegmented.h:53


cob_canopen_motor
Author(s): Christian Connette
autogenerated on Wed Nov 8 2023 03:47:52