Prusa3d Marlin fork
Dcodes.h
1 #ifndef DCODES_H
2 #define DCODES_H
3 
4 extern void dcode__1(); //D-1 - Endless loop (to simulate deadlock)
5 extern void dcode_0(); //D0 - Reset
6 extern void dcode_1(); //D1 - Clear EEPROM
7 
8 #if defined DEBUG_DCODE2 || defined DEBUG_DCODES
9 extern void dcode_2(); //D2 - Read/Write RAM
10 #endif
11 
12 #if defined DEBUG_DCODE3 || defined DEBUG_DCODES
13 extern void dcode_3(); //D3 - Read/Write EEPROM
14 #endif //DEBUG_DCODE3
15 
16 extern void dcode_4(); //D4 - Read/Write PIN
17 
18 #if defined DEBUG_DCODE5 || defined DEBUG_DCODES
19 extern void dcode_5(); //D5 - Read/Write FLASH
20 #endif //DEBUG_DCODE5
21 
22 #if defined DEBUG_DCODE6 || defined DEBUG_DCODES
23 extern void dcode_6(); //D6 - Read/Write external FLASH
24 #endif
25 
26 extern void dcode_7(); //D7 - Read/Write Bootloader
27 extern void dcode_8(); //D8 - Read/Write PINDA
28 extern void dcode_9(); //D9 - Read/Write ADC (Write=enable simulated, Read=disable simulated)
29 extern void dcode_10(); //D10 - XYZ calibration = OK
30 extern void dcode_12(); //D12 - Log time. Writes the current time in the log file.
31 
32 #ifdef XFLASH_DUMP
33 extern void dcode_20(); //D20 - Generate an offline crash dump
34 extern void dcode_21(); //D21 - Print crash dump to serial
35 extern void dcode_22(); //D22 - Clear crash dump state
36 #endif
37 
38 #ifdef EMERGENCY_SERIAL_DUMP
39 #include "xflash_dump.h"
40 extern void dcode_23(); //D23 - Request/generate an online serial crash dump
41 extern bool emergency_serial_dump; //emergency dump enabled flag
42 extern void serial_dump_and_reset(dump_crash_reason);
43 #endif
44 
45 #ifdef HEATBED_ANALYSIS
46 extern void dcode_80(); //D80 - Bed check. This command will log data to SD card file "mesh.txt".
47 extern void dcode_81(); //D81 - Bed analysis. This command will log data to SD card file "wldsd.txt".
48 #endif //HEATBED_ANALYSIS
49 
50  extern void dcode_106(); //D106 - Print measured fan speed for different pwm values
51 
52 #ifdef TMC2130
53  extern void dcode_2130(); //D2130 - TMC2130
54 #endif //TMC2130
55 
56 #if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
57  extern void dcode_9125(); //D9125 - PAT9125
58 #endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
59 
60 
61 #endif //DCODES_H