Dcodes.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 bool emergency_serial_dump;
  32. extern void serial_dump_and_reset(dump_crash_reason);
  33. #endif
  34. #ifdef HEATBED_ANALYSIS
  35. extern void dcode_80(); //D80 - Bed check. This command will log data to SD card file "mesh.txt".
  36. extern void dcode_81(); //D81 - Bed analysis. This command will log data to SD card file "wldsd.txt".
  37. #endif //HEATBED_ANALYSIS
  38. extern void dcode_106(); //D106 - Print measured fan speed for different pwm values
  39. #ifdef TMC2130
  40. extern void dcode_2130(); //D2130 - TMC2130
  41. #endif //TMC2130
  42. #ifdef PAT9125
  43. extern void dcode_9125(); //D9125 - PAT9125
  44. #endif //PAT9125
  45. #endif //DCODES_H