-
Notifications
You must be signed in to change notification settings - Fork 0
/
3DWorksEasyCAT.h
76 lines (68 loc) · 2.02 KB
/
3DWorksEasyCAT.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef CUSTOM_PDO_NAME_H
#define CUSTOM_PDO_NAME_H
//-------------------------------------------------------------------//
// //
// This file has been created by the Easy Configurator tool //
// //
// Easy Configurator project 3DWorksEasyCAT.prj
// //
//-------------------------------------------------------------------//
#define CUST_BYTE_NUM_OUT 24
#define CUST_BYTE_NUM_IN 40
#define TOT_BYTE_NUM_ROUND_OUT 24
#define TOT_BYTE_NUM_ROUND_IN 40
typedef union //---- output buffer ----
{
uint8_t Byte [TOT_BYTE_NUM_ROUND_OUT];
struct
{
uint32_t outDigitalSet0;
uint32_t outDigitalSet1;
uint8_t outAnalog00;
uint8_t outAnalog01;
uint8_t outAnalog02;
uint8_t outAnalog03;
uint8_t outAnalog04;
uint8_t outAnalog05;
uint8_t outAnalog06;
uint8_t outAnalog07;
uint8_t outAnalog08;
uint8_t outAnalog09;
uint8_t outAnalog10;
uint8_t outAnalog11;
uint8_t outAnalog12;
uint8_t outAnalog13;
uint8_t outAnalog14;
uint8_t outAnalog15;
}Cust;
} PROCBUFFER_OUT;
typedef union //---- input buffer ----
{
uint8_t Byte [TOT_BYTE_NUM_ROUND_IN];
struct
{
uint32_t inDigitalSet0;
uint32_t inDigitalSet1;
uint32_t inToggleSet0;
uint32_t inToggleSet1;
int32_t mpg0;
int32_t mpg1;
uint8_t inAnalog00;
uint8_t inAnalog01;
uint8_t inAnalog02;
uint8_t inAnalog03;
uint8_t inAnalog04;
uint8_t inAnalog05;
uint8_t inAnalog06;
uint8_t inAnalog07;
uint8_t inAnalog08;
uint8_t inAnalog09;
uint8_t inAnalog10;
uint8_t inAnalog11;
uint8_t inAnalog12;
uint8_t inAnalog13;
uint8_t inAnalog14;
uint8_t inAnalog15;
}Cust;
} PROCBUFFER_IN;
#endif