mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-13 23:45:25 +00:00
28 lines
507 B
C++
28 lines
507 B
C++
/**
|
|
* @copyright Utilitech AS 2023
|
|
* License: Fair Source
|
|
*
|
|
*/
|
|
|
|
#ifndef _DSMRPARSER_H
|
|
#define _DSMRPARSER_H
|
|
|
|
#include "Arduino.h"
|
|
#include "DataParser.h"
|
|
#include "GcmParser.h"
|
|
|
|
class DSMRParser {
|
|
public:
|
|
DSMRParser(GCMParser* gcmParser) { this->gcmParser = gcmParser; };
|
|
int8_t parse(uint8_t *buf, DataParserContext &ctx, bool verified, Print* debugger);
|
|
uint16_t getCrc();
|
|
uint16_t getCrcCalc();
|
|
private:
|
|
uint16_t crc;
|
|
uint16_t crc_calc;
|
|
|
|
GCMParser* gcmParser;
|
|
};
|
|
|
|
#endif
|