mmu.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //mmu.h
  2. #include <inttypes.h>
  3. extern bool mmu_enabled;
  4. extern int8_t mmu_state;
  5. extern uint8_t mmu_extruder;
  6. extern uint8_t tmp_extruder;
  7. extern int8_t mmu_finda;
  8. extern int16_t mmu_version;
  9. extern int16_t mmu_buildnr;
  10. #define MMU_CMD_NONE 0
  11. #define MMU_CMD_T0 0x10
  12. #define MMU_CMD_T1 0x11
  13. #define MMU_CMD_T2 0x12
  14. #define MMU_CMD_T3 0x13
  15. #define MMU_CMD_T4 0x14
  16. extern int mmu_puts_P(const char* str);
  17. extern int mmu_printf_P(const char* format, ...);
  18. extern int8_t mmu_rx_ok(void);
  19. extern void mmu_init(void);
  20. extern void mmu_loop(void);
  21. extern void mmu_reset(void);
  22. extern int8_t mmu_set_filament_type(uint8_t extruder, uint8_t filament);
  23. extern void mmu_command(uint8_t cmd);
  24. extern bool mmu_get_response(void);
  25. extern void manage_response(bool move_axes, bool turn_off_nozzle);
  26. extern void mmu_load_to_nozzle();
  27. extern void mmu_M600_load_filament(bool automatic);
  28. extern void extr_mov(float shift, float feed_rate);
  29. extern void change_extr(int extr);
  30. extern int get_ext_nr();
  31. extern void display_loading();
  32. extern void extr_adj(int extruder);
  33. extern void extr_unload();
  34. extern void extr_adj_0();
  35. extern void extr_adj_1();
  36. extern void extr_adj_2();
  37. extern void extr_adj_3();
  38. extern void extr_adj_4();
  39. extern void load_all();
  40. extern void extr_change_0();
  41. extern void extr_change_1();
  42. extern void extr_change_2();
  43. extern void extr_change_3();
  44. extern void extr_unload_all();
  45. extern void extr_unload_used();
  46. extern void extr_unload_0();
  47. extern void extr_unload_1();
  48. extern void extr_unload_2();
  49. extern void extr_unload_3();
  50. extern void extr_unload_4();