Prusa MINI Firmware overview
filament.h
Go to the documentation of this file.
1 /*
2  * filament.h
3  *
4  * Created on: 19. 7. 2019
5  * Author: mcbig
6  */
7 
8 #ifndef FILAMENT_H_
9 #define FILAMENT_H_
10 
11 #include "gui.h"
12 
13 #pragma pack(push)
14 #pragma pack(1)
15 
16 typedef struct {
17  const char *name;
18  const char *long_name;
19  uint16_t nozzle;
20  uint16_t heatbed;
21 } filament_t;
22 
23 #pragma pack(pop)
24 
25 typedef enum {
32 } FILAMENT_t;
33 
34 //#define FILAMENT_COUNT ((uint32_t)FILAMENTS_END-1)
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif //__cplusplus
39 
40 extern const filament_t filaments[FILAMENTS_END];
41 
42 void set_filament(FILAMENT_t filament);
43 
45 
46 #ifdef __cplusplus
47 }
48 #endif //__cplusplus
49 
50 #endif /* FILAMENT_H_ */
FILAMENTS_END
Definition: filament.h:31
marlin_client.h
filament_selected
static FILAMENT_t filament_selected
Definition: filament.cpp:30
set_filament
void set_filament(FILAMENT_t filament)
Definition: filament.cpp:32
FILAMENT_NONE
Definition: filament.h:26
FILAMENT_ADDRESS
#define FILAMENT_ADDRESS
Definition: filament.cpp:28
fil
FIL fil
Definition: pngview.c:11
FILAMENT_PETG
Definition: filament.h:28
dbg.h
filaments
const filament_t filaments[FILAMENTS_END]
Definition: filament.cpp:20
st25dv64k_user_write
void st25dv64k_user_write(uint16_t address, uint8_t data)
Definition: st25dv64k.c:103
FILAMENT_PLA
Definition: filament.h:27
new_eeprom.h
filament_t::name
const char * name
Definition: filament.h:17
get_filament
FILAMENT_t get_filament()
Definition: filament.cpp:41
filament_t::long_name
const char * long_name
Definition: filament.h:18
filaments
const filament_t filaments[FILAMENTS_END]
Definition: filament.cpp:20
filament_t::nozzle
uint16_t nozzle
Definition: filament.h:19
FILAMENT_FLEX
Definition: filament.h:30
filament.h
uint8_t
const uint8_t[]
Definition: 404_html.c:3
set_filament
void set_filament(FILAMENT_t filament)
Definition: filament.cpp:32
filament_t::heatbed
uint16_t heatbed
Definition: filament.h:20
FILAMENT_t
FILAMENT_t
Definition: filament.h:25
filament_t
Definition: filament.h:16
gui.h
st25dv64k_user_read
uint8_t st25dv64k_user_read(uint16_t address)
Definition: st25dv64k.c:93
st25dv64k.h
get_filament
FILAMENT_t get_filament()
Definition: filament.cpp:41
FILAMENT_ASA
Definition: filament.h:29