mmu.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. //mmu.h
  2. #include <inttypes.h>
  3. extern bool mmu_enabled;
  4. extern uint8_t mmu_extruder;
  5. extern uint8_t tmp_extruder;
  6. extern int8_t mmu_finda;
  7. extern int16_t mmu_version;
  8. extern int16_t mmu_buildnr;
  9. #define MMU_CMD_NONE 0
  10. #define MMU_CMD_T0 0x10
  11. #define MMU_CMD_T1 0x11
  12. #define MMU_CMD_T2 0x12
  13. #define MMU_CMD_T3 0x13
  14. #define MMU_CMD_T4 0x14
  15. #define MMU_CMD_L0 0x20
  16. #define MMU_CMD_L1 0x21
  17. #define MMU_CMD_L2 0x22
  18. #define MMU_CMD_L3 0x23
  19. #define MMU_CMD_L4 0x24
  20. #define MMU_CMD_C0 0x30
  21. #define MMU_CMD_U0 0x40
  22. #define MMU_CMD_E0 0x50
  23. #define MMU_CMD_E1 0x51
  24. #define MMU_CMD_E2 0x52
  25. #define MMU_CMD_E3 0x53
  26. #define MMU_CMD_E4 0x54
  27. #define MMU_CMD_R0 0x60
  28. extern int mmu_puts_P(const char* str);
  29. extern int mmu_printf_P(const char* format, ...);
  30. extern int8_t mmu_rx_ok(void);
  31. extern void mmu_init(void);
  32. extern void mmu_loop(void);
  33. extern void mmu_reset(void);
  34. extern int8_t mmu_set_filament_type(uint8_t extruder, uint8_t filament);
  35. extern void mmu_command(uint8_t cmd);
  36. extern bool mmu_get_response(void);
  37. extern void manage_response(bool move_axes, bool turn_off_nozzle);
  38. extern void mmu_load_to_nozzle();
  39. extern void mmu_M600_load_filament(bool automatic);
  40. extern void mmu_M600_wait_and_beep();
  41. extern void extr_mov(float shift, float feed_rate);
  42. extern void change_extr(int extr);
  43. extern int get_ext_nr();
  44. extern void display_loading();
  45. extern void extr_adj(int extruder);
  46. extern void extr_unload();
  47. extern void extr_adj_0();
  48. extern void extr_adj_1();
  49. extern void extr_adj_2();
  50. extern void extr_adj_3();
  51. extern void extr_adj_4();
  52. extern void mmu_load_to_nozzle_0();
  53. extern void mmu_load_to_nozzle_1();
  54. extern void mmu_load_to_nozzle_2();
  55. extern void mmu_load_to_nozzle_3();
  56. extern void mmu_load_to_nozzle_4();
  57. extern void load_all();
  58. extern void extr_change_0();
  59. extern void extr_change_1();
  60. extern void extr_change_2();
  61. extern void extr_change_3();
  62. #ifdef SNMM
  63. extern void extr_unload_all();
  64. extern void extr_unload_used();
  65. #endif //SNMM
  66. extern void extr_unload_0();
  67. extern void extr_unload_1();
  68. extern void extr_unload_2();
  69. extern void extr_unload_3();
  70. extern void extr_unload_4();
  71. extern bool mmu_check_version();
  72. extern void mmu_show_warning();
  73. extern void lcd_mmu_load_to_nozzle(uint8_t filament_nr);
  74. extern void mmu_eject_filament(uint8_t filament, bool recover);
  75. extern void mmu_eject_fil_0();
  76. extern void mmu_eject_fil_1();
  77. extern void mmu_eject_fil_2();
  78. extern void mmu_eject_fil_3();
  79. extern void mmu_eject_fil_4();