Main Page
Related Pages
Classes
Files
File List
common
include
cob_canopen_motor
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
34
enum
SDOStatusFlag
{
35
SDO_SEG_FREE
= 0,
36
SDO_SEG_WAITING
= 3,
37
SDO_SEG_COLLECTING
= 2,
38
SDO_SEG_PROCESSING
= 1,
39
};
40
41
segData
() {
42
objectID
= 0x0000;
43
objectSubID
= 0x00;
44
toggleBit
=
false
;
45
statusFlag
=
SDO_SEG_FREE
;
46
}
47
48
~segData
() {}
49
53
void
resetTransferData
() {
54
data
.clear();
55
objectID
= 0x0000;
56
objectSubID
= 0x00;
57
toggleBit
=
false
;
58
statusFlag
=
SDO_SEG_FREE
;
59
}
60
61
//public attributes
62
//all attributes are public, as this class is used only as ~data array
63
71
int
statusFlag
;
72
76
int
objectID
;
77
81
int
objectSubID
;
82
86
bool
toggleBit
;
87
91
unsigned
int
numTotalBytes
;
92
96
std::vector<unsigned char>
data
;
97
};
98
99
#endif
segData::objectID
int objectID
Definition:
SDOSegmented.h:76
segData::resetTransferData
void resetTransferData()
Definition:
SDOSegmented.h:53
segData::data
std::vector< unsigned char > data
Definition:
SDOSegmented.h:96
segData::SDO_SEG_WAITING
Definition:
SDOSegmented.h:36
segData::toggleBit
bool toggleBit
Definition:
SDOSegmented.h:86
segData::objectSubID
int objectSubID
Definition:
SDOSegmented.h:81
segData::numTotalBytes
unsigned int numTotalBytes
Definition:
SDOSegmented.h:91
segData::~segData
~segData()
Definition:
SDOSegmented.h:48
segData::SDOStatusFlag
SDOStatusFlag
Definition:
SDOSegmented.h:34
segData::SDO_SEG_FREE
Definition:
SDOSegmented.h:35
segData
Definition:
SDOSegmented.h:27
segData::segData
segData()
Definition:
SDOSegmented.h:41
segData::SDO_SEG_COLLECTING
Definition:
SDOSegmented.h:37
segData::statusFlag
int statusFlag
Definition:
SDOSegmented.h:71
segData::SDO_SEG_PROCESSING
Definition:
SDOSegmented.h:38
cob_canopen_motor
Author(s): Christian Connette
autogenerated on Wed Apr 7 2021 02:11:53