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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
//------------------------------------------------
//--- 010 Editor v8.0.1 Binary Template
//
// File: Creality
// Authors: Julien Delnatte
//------------------------------------------------
BigEndian();
typedef struct {
BitfieldDisablePadding();
ushort startY:13;
ushort endY:13;
ushort x:14;
ubyte grey <fgcolor=cBlack, bgcolor=cWhite>;
} layerPointsData;
typedef struct {
uint32 unknown <fgcolor=cBlack, bgcolor=cWhite>;
} layerDef;
typedef struct() {
uint32 unknown <fgcolor=cBlack, bgcolor=cWhite>;
uint32 LayerPointNum <fgcolor=cBlack, bgcolor=cWhite>;
layerPointsData pD()[LayerPointNum];
BYTE CR_LF2[2] <fgcolor=cBlack, bgcolor=cRed>;
} layerData;
typedef struct(int size) {
BYTE layerDataBlock[size] <fgcolor=cBlack, bgcolor=0x00FF00>;
} rgbPreviewImageRawData;
struct HEADER {
uint32 headerSize <fgcolor=cBlack, bgcolor=cWhite>;
BYTE header[header.headerSize] <fgcolor=cBlack, bgcolor=cRed>;
uint16 totalLayers <fgcolor=cBlack, bgcolor=cWhite>;
uint16 resolutionX <fgcolor=cBlack, bgcolor=cWhite>;
uint16 resolutionY <fgcolor=cBlack, bgcolor=cWhite>;
rgbPreviewImageRawData preview(116*116*2);
BYTE rn0[2] <fgcolor=cBlack, bgcolor=cRed>;
rgbPreviewImageRawData preview2(290*290*2);
BYTE rn1[2] <fgcolor=cBlack, bgcolor=cRed>;
rgbPreviewImageRawData preview2(290*290*2);
BYTE rn2[2] <fgcolor=cBlack, bgcolor=cRed>;
uint32 plateformXLength <fgcolor=cBlack, bgcolor=cWhite>;
wchar_t plateformX[plateformXLength/2];
uint32 plateformYLength <fgcolor=cBlack, bgcolor=cWhite>;
wchar_t plateformY[plateformYLength/2];
uint32 layerThicknessLength <fgcolor=cBlack, bgcolor=cWhite>;
wchar_t layerThickness[layerThicknessLength/2];
uint16 exposureTime <fgcolor=cBlack, bgcolor=cWhite>;
uint16 turnOffTime <fgcolor=cBlack, bgcolor=cWhite>;
uint16 bottomExposure <fgcolor=cBlack, bgcolor=cWhite>;
uint16 bottomLayers <fgcolor=cBlack, bgcolor=cWhite>;
uint16 bottomRaise <fgcolor=cBlack, bgcolor=cWhite>;
uint16 bottomRaiseSpeed <fgcolor=cBlack, bgcolor=cWhite>;
uint16 raise <fgcolor=cBlack, bgcolor=cWhite>;
uint16 raiseSpeed <fgcolor=cBlack, bgcolor=cWhite>;
uint16 fallSpeed <fgcolor=cBlack, bgcolor=cWhite>;
uint16 bottomPWM <fgcolor=cBlack, bgcolor=cWhite>;
uint16 normalPWM <fgcolor=cBlack, bgcolor=cWhite>;
} header;
struct LAYER_DEF {
local int i;
for( i = 0; i < header.totalLayers; i++ ){
layerDef lD();
}
BYTE rn3[2] <fgcolor=cBlack, bgcolor=cRed>;
} layerDefs;
struct LAYERS {
local int i;
for( i = 0; i < header.totalLayers; i++ ){
layerData lD();
}
} layers;
struct FOOTER {
uint32 footerSize <fgcolor=cBlack, bgcolor=cWhite>;
BYTE str[footer.footerSize] <fgcolor=cBlack, bgcolor=cRed>;
uint32 unknown <fgcolor=cBlack, bgcolor=cWhite>;
} footer;
|