Prusa MINI Firmware overview
filament.h File Reference
#include "gui.h"

Go to the source code of this file.

Classes

struct  filament_t
 

Enumerations

enum  FILAMENT_t {
  FILAMENT_NONE = 0, FILAMENT_PLA, FILAMENT_PETG, FILAMENT_ASA,
  FILAMENT_FLEX, FILAMENTS_END
}
 

Functions

void set_filament (FILAMENT_t filament)
 
FILAMENT_t get_filament ()
 

Variables

const filament_t filaments [FILAMENTS_END]
 

Enumeration Type Documentation

◆ FILAMENT_t

enum FILAMENT_t
Enumerator
FILAMENT_NONE 
FILAMENT_PLA 
FILAMENT_PETG 
FILAMENT_ASA 
FILAMENT_FLEX 
FILAMENTS_END 
25  {
26  FILAMENT_NONE = 0,
32 } FILAMENT_t;

Function Documentation

◆ set_filament()

void set_filament ( FILAMENT_t  filament)
32  {
33  assert(filament < FILAMENTS_END);
34  if (filament == filament_selected) {
35  return;
36  }
37  filament_selected = filament;
39 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_filament()

FILAMENT_t get_filament ( )
41  {
44  if (fil >= FILAMENTS_END)
45  fil = 0;
47  }
48  return filament_selected;
49 }
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ filaments

FILAMENTS_END
Definition: filament.h:31
filament_selected
static FILAMENT_t filament_selected
Definition: filament.cpp:30
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
st25dv64k_user_write
void st25dv64k_user_write(uint16_t address, uint8_t data)
Definition: st25dv64k.c:103
FILAMENT_PLA
Definition: filament.h:27
FILAMENT_FLEX
Definition: filament.h:30
uint8_t
const uint8_t[]
Definition: 404_html.c:3
FILAMENT_t
FILAMENT_t
Definition: filament.h:25
st25dv64k_user_read
uint8_t st25dv64k_user_read(uint16_t address)
Definition: st25dv64k.c:93
FILAMENT_ASA
Definition: filament.h:29