fsensor.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef FSENSOR_H
  2. #define FSENSOR_H
  3. #include <inttypes.h>
  4. //minimum meassured chunk length in steps
  5. extern int16_t fsensor_chunk_len;
  6. //enable/disable flag
  7. extern bool fsensor_enabled;
  8. //not responding flag
  9. extern bool fsensor_not_responding;
  10. //save restore printing
  11. extern void fsensor_stop_and_save_print(void);
  12. extern void fsensor_restore_print_and_continue(void);
  13. //initialize
  14. extern void fsensor_init(void);
  15. //enable/disable
  16. extern bool fsensor_enable(void);
  17. extern void fsensor_disable(void);
  18. //autoload feature enabled
  19. extern bool fsensor_autoload_enabled;
  20. extern void fsensor_autoload_set(bool State);
  21. //update (perform M600 on filament runout)
  22. extern void fsensor_update(void);
  23. //setup pin-change interrupt
  24. extern void fsensor_setup_interrupt(void);
  25. //autoload support
  26. extern void fsensor_autoload_check_start(void);
  27. extern void fsensor_autoload_check_stop(void);
  28. extern bool fsensor_check_autoload(void);
  29. //optical quality meassurement support
  30. extern void fsensor_oq_meassure_start(uint8_t skip);
  31. extern void fsensor_oq_meassure_stop(void);
  32. extern bool fsensor_oq_result(void);
  33. //callbacks from stepper
  34. #include "planner.h"
  35. extern void fsensor_st_block_begin(block_t* bl);
  36. extern void fsensor_st_block_chunk(block_t* bl, int cnt);
  37. #endif //FSENSOR_H