44 lines
895 B
C++
44 lines
895 B
C++
/**
|
|
* Helper to store/fetch a radio telegram into/from database
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, SLSE, 2016-04-22
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "PrtCnvStoredTelegram.hpp"
|
|
|
|
namespace PrtCnv
|
|
{
|
|
class PrtCnvStoredRadioTelegram : public PrtCnv::PrtCnvStoredTelegram
|
|
{
|
|
public:
|
|
using PrtCnv::PrtCnvStoredTelegram::PrtCnvStoredTelegram;
|
|
|
|
/**
|
|
* The counter while reading this telegram from central
|
|
*/
|
|
int32_t m_ReadCounter = 0;
|
|
/**
|
|
* The broadcast index if it is a broadcast-telegram and it was sent first time,
|
|
* otherwise 0.
|
|
*/
|
|
uint16_t m_BroadcastIndex = 0;
|
|
/**
|
|
* The frame-counter while sending this telegram to radio.
|
|
*/
|
|
uint8_t m_WriteCounter = 0;
|
|
/**
|
|
* True if telegram must be deleted.
|
|
*/
|
|
bool m_DoDelete = false;
|
|
/**
|
|
* True if telegram was sent.
|
|
*/
|
|
bool m_IsSent = false;
|
|
};
|
|
|
|
}
|