fsensor.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef FSENSOR_H
  2. #define FSENSOR_H
  3. #include "planner.h"
  4. //save restore printing
  5. extern void fsensor_stop_and_save_print();
  6. extern void fsensor_restore_print_and_continue();
  7. //temporarily enable/disable without writing to eeprom
  8. extern void fsensor_block();
  9. extern void fsensor_unblock();
  10. //enable/disable
  11. extern bool fsensor_enable();
  12. extern void fsensor_disable();
  13. extern bool filament_autoload_enabled;
  14. extern void fautoload_set(bool State);
  15. //update (perform M600 on filament runout)
  16. extern void fsensor_update();
  17. //setup pin-change interrupt
  18. extern void fsensor_setup_interrupt();
  19. //
  20. extern void fsensor_autoload_check_start(void);
  21. //
  22. extern void fsensor_autoload_check_stop(void);
  23. //
  24. extern bool fsensor_check_autoload(void);
  25. //callbacks from stepper
  26. extern void fsensor_st_block_begin(block_t* bl);
  27. extern void fsensor_st_block_chunk(block_t* bl, int cnt);
  28. //minimum meassured chunk length in steps
  29. extern int16_t fsensor_chunk_len;
  30. //M600 in progress
  31. extern bool fsensor_M600;
  32. //enable/disable flag
  33. extern bool fsensor_enabled;
  34. //not responding flag
  35. extern bool fsensor_not_responding;
  36. //autoload enable/disable flag
  37. extern bool fsensor_autoload_enabled;
  38. #endif //FSENSOR_H