fsensor.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. //update (perform M600 on filament runout)
  14. extern void fsensor_update();
  15. //setup pin-change interrupt
  16. extern void fsensor_setup_interrupt();
  17. //
  18. extern void fsensor_autoload_check_start(void);
  19. //
  20. extern void fsensor_autoload_check_stop(void);
  21. //
  22. extern bool fsensor_check_autoload(void);
  23. //callbacks from stepper
  24. extern void fsensor_st_block_begin(block_t* bl);
  25. extern void fsensor_st_block_chunk(block_t* bl, int cnt);
  26. //minimum meassured chunk length in steps
  27. extern int16_t fsensor_chunk_len;
  28. //M600 in progress
  29. extern bool fsensor_M600;
  30. //enable/disable flag
  31. extern bool fsensor_enabled;
  32. //not responding flag
  33. extern bool fsensor_not_responding;
  34. //autoload enable/disable flag
  35. extern bool fsensor_autoload_enabled;
  36. #endif //FSENSOR_H