Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Value structure. More...

#include <mpipe_value.h>

Data Fields

enum mpipe_value_type type
 Type of value, see mpipe_value_type.
union { 
   bool   v_boolean 
 MPIPE_TYPE_BOOLEAN. More...
   int32_t   v_int 
 MPIPE_TYPE_INT. More...
   uint32_t   v_uint 
 MPIPE_TYPE_UINT. More...
   struct { 
      union mpipe_value_bound   min 
 Lower bound of the range. More...
      union mpipe_value_bound   max 
 Upper bound of the range. More...
      union mpipe_value_bound   step 
 Step between two consecutive values of the range. More...
   }   range
 MPIPE_TYPE_INT_RANGE, MPIPE_TYPE_UINT_RANGE. More...
}; 
 Contents, read through the arm the type selects.

Detailed Description

Value structure.

One fixed-size tagged union so that every value costs the same and can be stored by value inside the structure that owns it.

Field Documentation

◆ [union]

union { ... } mpipe_value

Contents, read through the arm the type selects.

◆ max

union mpipe_value_bound mpipe_value::max

Upper bound of the range.

◆ min

union mpipe_value_bound mpipe_value::min

Lower bound of the range.

◆ [struct]

struct { ... } mpipe_value::range

MPIPE_TYPE_INT_RANGE, MPIPE_TYPE_UINT_RANGE.

◆ step

union mpipe_value_bound mpipe_value::step

Step between two consecutive values of the range.

◆ type

enum mpipe_value_type mpipe_value::type

Type of value, see mpipe_value_type.

◆ v_boolean

bool mpipe_value::v_boolean

MPIPE_TYPE_BOOLEAN.

◆ v_int

int32_t mpipe_value::v_int

MPIPE_TYPE_INT.

◆ v_uint

uint32_t mpipe_value::v_uint

MPIPE_TYPE_UINT.


The documentation for this struct was generated from the following file: