2017-10-22 20:42:45 +00:00
|
|
|
#ifndef FSENSOR_H
|
|
|
|
#define FSENSOR_H
|
|
|
|
|
2017-10-24 17:45:15 +00:00
|
|
|
#include "planner.h"
|
2017-10-22 20:42:45 +00:00
|
|
|
|
2017-10-24 17:45:15 +00:00
|
|
|
//save restore printing
|
2017-10-22 20:42:45 +00:00
|
|
|
extern void fsensor_stop_and_save_print();
|
|
|
|
extern void fsensor_restore_print_and_continue();
|
2017-10-24 17:45:15 +00:00
|
|
|
|
2017-12-20 12:33:45 +00:00
|
|
|
//temporarily enable/disable without writing to eeprom
|
|
|
|
extern void fsensor_block();
|
|
|
|
extern void fsensor_unblock();
|
|
|
|
|
2017-10-24 17:45:15 +00:00
|
|
|
//enable/disable
|
2017-11-28 21:44:58 +00:00
|
|
|
extern bool fsensor_enable();
|
2017-10-22 20:42:45 +00:00
|
|
|
extern void fsensor_disable();
|
2017-10-24 17:45:15 +00:00
|
|
|
|
|
|
|
//update (perform M600 on filament runout)
|
2017-10-22 20:42:45 +00:00
|
|
|
extern void fsensor_update();
|
|
|
|
|
2017-10-24 17:45:15 +00:00
|
|
|
//setup pin-change interrupt
|
|
|
|
extern void fsensor_setup_interrupt();
|
2017-10-22 20:42:45 +00:00
|
|
|
|
2017-12-13 16:39:32 +00:00
|
|
|
//
|
|
|
|
extern void fsensor_autoload_check_start(void);
|
|
|
|
|
|
|
|
//
|
|
|
|
extern void fsensor_autoload_check_stop(void);
|
|
|
|
|
|
|
|
//
|
|
|
|
extern bool fsensor_check_autoload(void);
|
|
|
|
|
2017-10-24 17:45:15 +00:00
|
|
|
//callbacks from stepper
|
|
|
|
extern void fsensor_st_block_begin(block_t* bl);
|
|
|
|
extern void fsensor_st_block_chunk(block_t* bl, int cnt);
|
2017-10-22 20:42:45 +00:00
|
|
|
|
2017-10-24 17:45:15 +00:00
|
|
|
//minimum meassured chunk length in steps
|
|
|
|
extern int16_t fsensor_chunk_len;
|
|
|
|
//M600 in progress
|
|
|
|
extern bool fsensor_M600;
|
2017-11-26 16:14:39 +00:00
|
|
|
//enable/disable flag
|
|
|
|
extern bool fsensor_enabled;
|
2017-12-11 17:17:25 +00:00
|
|
|
//not responding flag
|
|
|
|
extern bool fsensor_not_responding;
|
|
|
|
|
2017-12-13 16:39:32 +00:00
|
|
|
//autoload enable/disable flag
|
|
|
|
extern bool fsensor_autoload_enabled;
|
2017-10-22 20:42:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif //FSENSOR_H
|