Prusa MINI Firmware overview
|
Go to the documentation of this file.
8 #ifndef _FILAMENT_SENSOR_H
9 #define _FILAMENT_SENSOR_H
16 #pragma pack(1) //makes enum 1 BYTE
50 #endif //_FILAMENT_SENSOR_H
Definition: filament_sensor.c:27
void fs_enable()
Definition: filament_sensor.c:90
void fs_send_M600_on_edge()
Definition: filament_sensor.c:76
void fs_send_M600_on_edge()
Definition: filament_sensor.c:76
variant8_t variant8_ui8(uint8_t ui8)
Definition: variant8.c:18
uint8_t meas_cycle
Definition: filament_sensor.c:35
#define EEVAR_FSENSOR_ENABLED
Definition: eeprom.h:17
void fs_init_never()
Definition: filament_sensor.c:132
send_M600_on_t
Definition: filament_sensor.c:26
uint8_t getProgress_percent()
Definition: fake_uiapi.cpp:15
fsensor_t fs_get_state()
Definition: filament_sensor.c:67
Definition: filament_sensor.h:22
void fs_init_on_edge()
Definition: filament_sensor.c:124
variant8_t eeprom_get_var(uint8_t id)
Definition: eeprom.c:75
uint8_t ui8
Definition: variant8.h:36
void marlin_gcode_push_front(const char *gcode)
Definition: marlin_client.c:222
static volatile fsensor_t state
Definition: filament_sensor.c:23
void eeprom_set_var(uint8_t id, variant8_t var)
Definition: eeprom.c:88
void fs_init_on_level()
Definition: filament_sensor.c:128
void fs_send_M600_never()
Definition: filament_sensor.c:84
Definition: filament_sensor.h:18
static void _disable()
Definition: filament_sensor.c:59
#define GPIO_PULLUP
Definition: stm32f4xx_hal_gpio.h:171
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
static int gpio_get(uint8_t pin8)
Definition: gpio.h:94
#define MARLIN_VAR_WAITUSER
Definition: marlin_vars.h:28
void fs_init_on_edge()
Definition: filament_sensor.c:124
Definition: filament_sensor.h:19
#define taskENTER_CRITICAL()
Definition: task.h:217
static void _cycle1()
Definition: filament_sensor.c:177
#define GPIO_PULLDOWN
Definition: stm32f4xx_hal_gpio.h:172
static void gpio_init(uint8_t pin8, uint32_t mode, uint32_t pull, uint32_t speed)
Definition: gpio.h:102
int fs_did_filament_runout()
Definition: filament_sensor.c:72
void fs_init_on_level()
Definition: filament_sensor.c:128
void fs_send_M600_on_level()
Definition: filament_sensor.c:80
Definition: fake_uiapi.cpp:9
bool isMoving()
Definition: fake_uiapi.cpp:11
#define MARLIN_VAR_WAITHEAT
Definition: marlin_vars.h:27
static void _injectM600()
Definition: filament_sensor.c:139
Definition: filament_sensor.h:20
fsensor_t fs_get_state()
Definition: filament_sensor.c:67
#define GPIO_SPEED_FREQ_VERY_HIGH
Definition: stm32f4xx_hal_gpio.h:161
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
uint8_t wait_user
Definition: marlin_vars.h:92
#define PIN_FSENSOR
Definition: hwio_pindef.h:44
const uint8_t[]
Definition: 404_html.c:3
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
static void _set_state(fsensor_t st)
Definition: filament_sensor.c:44
uint8_t M600_sent
Definition: filament_sensor.c:33
void fs_send_M600_on_level()
Definition: filament_sensor.c:80
Definition: filament_sensor.c:29
uint8_t send_M600_on
Definition: filament_sensor.c:34
#define MARLIN_VAR_SD_PRINT
Definition: marlin_vars.h:29
Definition: filament_sensor.c:28
This file contains all the functions prototypes for the HAL module driver.
void fs_cycle()
Definition: filament_sensor.c:185
static status_t status
Definition: filament_sensor.c:37
void fs_send_M600_never()
Definition: filament_sensor.c:84
Definition: filament_sensor.h:21
Definition: marlin_vars.h:77
fsensor_t fs_wait_inicialized()
Definition: filament_sensor.c:104
static volatile fsensor_t last_state
Definition: filament_sensor.c:24
static void _cycle0()
Definition: filament_sensor.c:147
fsensor_t
Definition: filament_sensor.h:17
#define taskEXIT_CRITICAL()
Definition: task.h:232
#define GPIO_MODE_INPUT
Definition: stm32f4xx_hal_gpio.h:135
void fs_disable()
Definition: filament_sensor.c:97
void fs_enable()
Definition: filament_sensor.c:90
void fs_cycle()
Definition: filament_sensor.c:185
void fs_init_never()
Definition: filament_sensor.c:132
static void _init()
Definition: filament_sensor.c:115
int fs_did_filament_runout()
Definition: filament_sensor.c:72
void fs_disable()
Definition: filament_sensor.c:97
uint8_t sd_printing
Definition: marlin_vars.h:93
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
fsensor_t fs_wait_inicialized()
Definition: filament_sensor.c:104
Definition: filament_sensor.c:32
static FORCE_INLINE bool has_blocks_queued()
Definition: planner.h:762
Planner planner
Definition: planner.cpp:111
static void _enable()
Definition: filament_sensor.c:52