2020-11-17 18:13:34 +01:00
|
|
|
#ifndef _MBUSPARSEREXT_H_
|
|
|
|
#define _MBUSPARSEREXT_H_
|
|
|
|
|
|
|
|
#include <mbus/mbus-protocol.h>
|
|
|
|
|
2020-11-17 18:44:57 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2020-11-17 18:13:34 +01:00
|
|
|
|
|
|
|
typedef struct {
|
2020-11-18 18:47:52 +01:00
|
|
|
char *name;
|
|
|
|
char *unit;
|
2020-11-17 18:21:49 +01:00
|
|
|
int8_t exponent;
|
2020-11-17 18:44:57 +01:00
|
|
|
bool found;
|
2020-11-17 18:13:34 +01:00
|
|
|
} parsedVIB_t;
|
|
|
|
|
|
|
|
parsedVIB_t parseVIB(mbus_value_information_block vib);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //_MBUSPARSEREXT_H_
|