mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-17 17:03:12 +00:00
38 lines
710 B
C++
38 lines
710 B
C++
/**
|
|
* @copyright Utilitech AS 2023
|
|
* License: Fair Source
|
|
*
|
|
*/
|
|
|
|
#ifndef _LNG_H
|
|
#define _LNG_H
|
|
|
|
#include "AmsData.h"
|
|
#include "AmsConfiguration.h"
|
|
#include "DataParser.h"
|
|
#include "Cosem.h"
|
|
|
|
struct LngHeader {
|
|
uint8_t tag;
|
|
uint8_t values;
|
|
uint8_t arrayTag;
|
|
uint8_t arrayLength;
|
|
} __attribute__((packed));
|
|
|
|
struct LngObisDescriptor {
|
|
uint8_t ignore1[5];
|
|
uint8_t octetTag;
|
|
uint8_t octetLength;
|
|
uint8_t obis[6];
|
|
uint8_t ignore2[5];
|
|
} __attribute__((packed));
|
|
|
|
|
|
class LNG : public AmsData {
|
|
public:
|
|
LNG(AmsData& meterState, const char* payload, uint8_t useMeterType, MeterConfig* meterConfig, DataParserContext &ctx);
|
|
uint64_t getNumber(CosemData* item);
|
|
};
|
|
|
|
#endif
|