Prusa MINI Firmware overview
variant8.h File Reference
#include <inttypes.h>

Go to the source code of this file.

Classes

struct  _variant8_t
 

Macros

#define VARIANT8_EMPTY   0x00
 
#define VARIANT8_I8   0x01
 
#define VARIANT8_UI8   0x02
 
#define VARIANT8_I16   0x03
 
#define VARIANT8_UI16   0x04
 
#define VARIANT8_I32   0x05
 
#define VARIANT8_UI32   0x06
 
#define VARIANT8_FLT   0x07
 
#define VARIANT8_USER   0x3f
 
#define VARIANT8_PTR   0x40
 
#define VARIANT8_ARRAY   0x80
 
#define VARIANT8_ERROR   0xff
 

Typedefs

typedef struct _variant8_t variant8_t
 

Functions

variant8_t variant8_empty (void)
 
variant8_t variant8_i8 (int8_t i8)
 
variant8_t variant8_ui8 (uint8_t ui8)
 
variant8_t variant8_i16 (int16_t i16)
 
variant8_t variant8_ui16 (uint16_t ui16)
 
variant8_t variant8_i32 (int32_t i32)
 
variant8_t variant8_ui32 (uint32_t ui32)
 
variant8_t variant8_flt (float flt)
 
variant8_t variant8_user (uint32_t usr32)
 

Macro Definition Documentation

◆ VARIANT8_EMPTY

#define VARIANT8_EMPTY   0x00

◆ VARIANT8_I8

#define VARIANT8_I8   0x01

◆ VARIANT8_UI8

#define VARIANT8_UI8   0x02

◆ VARIANT8_I16

#define VARIANT8_I16   0x03

◆ VARIANT8_UI16

#define VARIANT8_UI16   0x04

◆ VARIANT8_I32

#define VARIANT8_I32   0x05

◆ VARIANT8_UI32

#define VARIANT8_UI32   0x06

◆ VARIANT8_FLT

#define VARIANT8_FLT   0x07

◆ VARIANT8_USER

#define VARIANT8_USER   0x3f

◆ VARIANT8_PTR

#define VARIANT8_PTR   0x40

◆ VARIANT8_ARRAY

#define VARIANT8_ARRAY   0x80

◆ VARIANT8_ERROR

#define VARIANT8_ERROR   0xff

Typedef Documentation

◆ variant8_t

typedef struct _variant8_t variant8_t

Function Documentation

◆ variant8_empty()

variant8_t variant8_empty ( void  )
10 { return variant8_(VARIANT8_EMPTY); }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant8_i8()

variant8_t variant8_i8 ( int8_t  i8)
12  {
14  var.i8 = i8;
15  return var;
16 }
Here is the call graph for this function:

◆ variant8_ui8()

variant8_t variant8_ui8 ( uint8_t  ui8)
18  {
20  var.ui8 = ui8;
21  return var;
22 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant8_i16()

variant8_t variant8_i16 ( int16_t  i16)
24  {
26  var.i16 = i16;
27  return var;
28 }
Here is the call graph for this function:

◆ variant8_ui16()

variant8_t variant8_ui16 ( uint16_t  ui16)
30  {
32  var.ui16 = ui16;
33  return var;
34 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant8_i32()

variant8_t variant8_i32 ( int32_t  i32)
36  {
38  var.i32 = i32;
39  return var;
40 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant8_ui32()

variant8_t variant8_ui32 ( uint32_t  ui32)
42  {
44  var.ui32 = ui32;
45  return var;
46 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant8_flt()

variant8_t variant8_flt ( float  flt)
48  {
50  var.flt = flt;
51  return var;
52 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant8_user()

variant8_t variant8_user ( uint32_t  usr32)
54  {
56  var.usr32 = usr32;
57  return var;
58 }
Here is the call graph for this function:
Here is the caller graph for this function:
VARIANT8_UI8
#define VARIANT8_UI8
Definition: variant8.h:10
_variant8_t::ui16
uint16_t ui16
Definition: variant8.h:34
VARIANT8_I16
#define VARIANT8_I16
Definition: variant8.h:11
_variant8_t::ui8
uint8_t ui8
Definition: variant8.h:36
VARIANT8_I8
#define VARIANT8_I8
Definition: variant8.h:9
VARIANT8_USER
#define VARIANT8_USER
Definition: variant8.h:16
_variant8_t
Definition: variant8.h:24
_variant8_t::flt
float flt
Definition: variant8.h:31
variant8_
variant8_t variant8_(uint8_t type)
Definition: variant8.c:5
VARIANT8_EMPTY
#define VARIANT8_EMPTY
Definition: variant8.h:8
_variant8_t::i16
int16_t i16
Definition: variant8.h:35
VARIANT8_UI16
#define VARIANT8_UI16
Definition: variant8.h:12
VARIANT8_FLT
#define VARIANT8_FLT
Definition: variant8.h:15
_variant8_t::usr32
uint32_t usr32
Definition: variant8.h:30
VARIANT8_UI32
#define VARIANT8_UI32
Definition: variant8.h:14
_variant8_t::i8
int8_t i8
Definition: variant8.h:37
_variant8_t::ui32
uint32_t ui32
Definition: variant8.h:32
VARIANT8_I32
#define VARIANT8_I32
Definition: variant8.h:13
_variant8_t::i32
int32_t i32
Definition: variant8.h:33