fsensor.h 725 B

1234567891011121314151617181920212223242526272829303132
  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. //enable/disable
  8. extern bool fsensor_enable();
  9. extern void fsensor_disable();
  10. //update (perform M600 on filament runout)
  11. extern void fsensor_update();
  12. //setup pin-change interrupt
  13. extern void fsensor_setup_interrupt();
  14. //callbacks from stepper
  15. extern void fsensor_st_block_begin(block_t* bl);
  16. extern void fsensor_st_block_chunk(block_t* bl, int cnt);
  17. //minimum meassured chunk length in steps
  18. extern int16_t fsensor_chunk_len;
  19. //M600 in progress
  20. extern bool fsensor_M600;
  21. //enable/disable flag
  22. extern bool fsensor_enabled;
  23. #endif //FSENSOR_H