Prusa MINI Firmware overview
variant8.c File Reference
#include "variant8.h"

Functions

variant8_t variant8_ (uint8_t type)
 
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)
 

Function Documentation

◆ variant8_()

variant8_t variant8_ ( uint8_t  type)
5  {
6  variant8_t var = { type, 0, 0, { 0 } };
7  return var;
8 }
Here is the caller graph for this function:

◆ 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
type
uint8_t type
Definition: UsbCore.h:184
_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