Zephyr Scientific Library (zscilib)
Data Structures | Enumerations | Functions
measurement.h File Reference

API header file for ZSL measurements. More...

#include <zsl/zsl.h>
#include <zsl/measurement/base.h>
#include <zsl/measurement/ext_color.h>
#include <zsl/measurement/ext_light.h>
#include <zsl/measurement/ext_temperature.h>
#include <zsl/measurement/unit.h>

Go to the source code of this file.

Data Structures

struct  zsl_mes_header
 
struct  zsl_measurement
 Measurement packet wrapper. More...
 

Enumerations

enum  zsl_mes_format {
  ZSL_MES_FORMAT_NONE = 0,
  ZSL_MES_FORMAT_CBOR = 1
}
 
enum  zsl_mes_encoding {
  ZSL_MES_ENCODING_NONE = 0,
  ZSL_MES_ENCODING_BASE64 = 1,
  ZSL_MES_ENCODING_BASE45 = 2
}
 
enum  zsl_mes_compression {
  ZSL_MES_COMPRESSION_NONE = 0,
  ZSL_MES_COMPRESSION_LZ4 = 1
}
 
enum  zsl_mes_fragment {
  ZSL_MES_FRAGMENT_NONE = 0,
  ZSL_MES_FRAGMENT_PARTIAL = 1,
  ZSL_MES_FRAGMENT_FINAL = 2
}
 
enum  zsl_mes_timestamp {
  ZSL_MES_TIMESTAMP_NONE = 0,
  ZSL_MES_TIMESTAMP_EPOCH_32 = 1,
  ZSL_MES_TIMESTAMP_EPOCH_64 = 2,
  ZSL_MES_TIMESTAMP_UPTIME_MS_32 = 3,
  ZSL_MES_TIMESTAMP_UPTIME_MS_64 = 4,
  ZSL_MES_TIMESTAMP_UPTIME_US_64 = 5
}
 

Functions

void zsl_mes_print (struct zsl_measurement *sample)
 Helper function to display the contents of the zsl_measurement. More...
 

Detailed Description

API header file for ZSL measurements.

Definition in file measurement.h.

Function Documentation

◆ zsl_mes_print()

void zsl_mes_print ( struct zsl_measurement sample)

Helper function to display the contents of the zsl_measurement.

End MES_STRUCTS

Parameters
samplezsl_measurement to print.