Dcodes.h 1.9 KB

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