📄 sdc.h
字号:
/******************************************************************************\ * Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik * Copyright (c) 2001 * * Author(s): * Volker Fischer * * Description: * See SDC.cpp * ****************************************************************************** * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *\******************************************************************************/#if !defined(SDC_H__3B0BA660_CA63SDBOJKEWROBNER89NE877A0D312__INCLUDED_)#define SDC_H__3B0BA660_CA63SDBOJKEWROBNER89NE877A0D312__INCLUDED_#include "../GlobalDefinitions.h"#include "../Parameter.h"#include "../util/CRC.h"#include "../util/Vector.h"#include "../util/Utilities.h"/* Definitions ****************************************************************//* Number of bits of header of SDC block */#define NUM_BITS_HEADER_SDC 12/* Classes ********************************************************************/class CSDCTransmit{public: CSDCTransmit() {} virtual ~CSDCTransmit() {} void SDCParam(CVector<_BINARY>* pbiData, CParameter& Parameter);protected: void DataEntityType0(CVector<_BINARY>& vecbiData, CParameter& Parameter); void DataEntityType1(CVector<_BINARY>& vecbiData, int ServiceID, CParameter& Parameter);// ... void DataEntityType5(CVector<_BINARY>& vecbiData, int ServiceID, CParameter& Parameter);// ... void DataEntityType9(CVector<_BINARY>& vecbiData, int ServiceID, CParameter& Parameter); CCRC CRCObject;};class CSDCReceive{public: enum ERetStatus {SR_OK, SR_BAD_CRC, SR_BAD_DATA}; CSDCReceive() {} virtual ~CSDCReceive() {} ERetStatus SDCParam(CVector<_BINARY>* pbiData, CParameter& Parameter);protected: _BOOLEAN DataEntityType0(CVector<_BINARY>* pbiData, const int iLengthOfBody, CParameter& Parameter); _BOOLEAN DataEntityType1(CVector<_BINARY>* pbiData, const int iLengthOfBody, CParameter& Parameter);// ... _BOOLEAN DataEntityType3(CVector<_BINARY>* pbiData, const int iLengthOfBody, CParameter& Parameter, const _BOOLEAN bVersion); _BOOLEAN DataEntityType4(CVector<_BINARY>* pbiData, const int iLengthOfBody, CParameter& Parameter, const _BOOLEAN bVersion); _BOOLEAN DataEntityType5(CVector<_BINARY>* pbiData, const int iLengthOfBody, CParameter& Parameter);// ... _BOOLEAN DataEntityType7(CVector<_BINARY>* pbiData, const int iLengthOfBody, CParameter& Parameter, const _BOOLEAN bVersion); _BOOLEAN DataEntityType8(CVector<_BINARY>* pbiData, const int iLengthOfBody, CParameter& Parameter); _BOOLEAN DataEntityType9(CVector<_BINARY>* pbiData, const int iLengthOfBody, CParameter& Parameter); CCRC CRCObject;};#endif // !defined(SDC_H__3B0BA660_CA63SDBOJKEWROBNER89NE877A0D312__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -