fetcher 0.0.0
A command line utility for reading sensor data over I2C and providing it over stdout.
common_t Struct Reference

#include <sensor_api.h>

Data Fields

uint8_t type
 
uint8_t id
 
union {
   float   FLOAT
 
   uint32_t   U32
 
   uint16_t   U16
 
   uint8_t   U8
 
   int32_t   I32
 
   int16_t   I16
 
   int8_t   I8
 
   vec3d_t   VEC3D
 
   vec2d_i32_t   VEC2D_I32
 
   vec2d_t   VEC2D
 
data
 

Detailed Description

Describes a message that can be sent on a message queue and recognized by both fetcher and packager

Field Documentation

◆ 

union { ... } common_t::data

The way the contents of this struct should be interpreted

◆ FLOAT

float common_t::FLOAT

◆ I16

int16_t common_t::I16

◆ I32

int32_t common_t::I32

◆ I8

int8_t common_t::I8

◆ id

uint8_t common_t::id

Sensor ID

◆ type

uint8_t common_t::type

Measurement type

◆ U16

uint16_t common_t::U16

◆ U32

uint32_t common_t::U32

◆ U8

uint8_t common_t::U8

◆ VEC2D

vec2d_t common_t::VEC2D

◆ VEC2D_I32

vec2d_i32_t common_t::VEC2D_I32

◆ VEC3D

vec3d_t common_t::VEC3D

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