NetMeterbusMaster/mBusDialog.h

21 lines
558 B
C
Raw Permalink Normal View History

2014-05-14 19:37:04 +02:00
#ifndef MBUS_DIALOG_H_
#define MBUS_DIALOG_H_
#include <stdint.h>
class ResponseCallback {
public:
2015-05-29 22:38:24 +02:00
virtual void sendResponse(uint8_t *responseBuffer, uint16_t responseBufferLength, uint8_t token, char *name) =0;
2017-01-07 19:08:53 +01:00
virtual void sendError(uint8_t code, uint16_t errorCount, uint16_t loopDisabledCount, uint8_t token, char *name) = 0;
2014-05-14 19:37:04 +02:00
};
class RequestSender {
public:
virtual uint8_t *getSendBuffer() =0;
2015-05-29 22:38:24 +02:00
virtual void sendBufferReady(uint16_t bufLen, uint8_t token, char *name, ResponseCallback *responseCallback) =0;
2014-05-14 19:37:04 +02:00
};
#endif /* MBUS_DIALOG_H_ */