diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-06-09 00:36:08 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-06-09 00:36:08 +0300 |
commit | 24e7463e2c9bc45443e8e6bb01c3b3168ba9b07d (patch) | |
tree | b56b7c6b1a53f0b05b18b156e55969a81b84f51a /Scripts | |
parent | 1c765f795d803c337d1d82e040ee5ad8d9701bf0 (diff) |
Create cxdlp_v1.bt
Diffstat (limited to 'Scripts')
-rw-r--r-- | Scripts/cxdlp_v1.bt | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/Scripts/cxdlp_v1.bt b/Scripts/cxdlp_v1.bt new file mode 100644 index 0000000..6052b06 --- /dev/null +++ b/Scripts/cxdlp_v1.bt @@ -0,0 +1,89 @@ +//------------------------------------------------ +//--- 010 Editor v8.0.1 Binary Template +// +// File: Creality +// Authors: Julien Delnatte +//------------------------------------------------ + +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;
\ No newline at end of file |