64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
// **************************************************************************
|
|
//
|
|
// (C) Copyright 2009 Swiss SIMTEC AG
|
|
//
|
|
// **************************************************************************
|
|
//
|
|
// $HeadURL$
|
|
// $LastChangedBy$
|
|
// $LastChangedDate$
|
|
// $LastChangedRevision$
|
|
//
|
|
// **************************************************************************
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace N_CoPrtCnv
|
|
{
|
|
/**
|
|
* @author alois.wismer
|
|
* @version 1.0
|
|
* @created 12-Mrz-2010 16:07:19
|
|
*/
|
|
struct CoPrtCnvLogHeader
|
|
{
|
|
/**
|
|
* @author alois.wismer
|
|
* @version 1.0
|
|
* @created 12-Mrz-2010 16:04:42
|
|
*/
|
|
enum E_CoPrtCnvProtocol
|
|
{
|
|
e_DestProtocolCentral = 0,
|
|
e_DestProtocolWls = 1,
|
|
e_DestProtocolTetra = 5,
|
|
e_DestProtocolMax = 6,
|
|
e_DestProtocolMask = 0x0000000F,
|
|
e_DestDirectionMask = 0xC0000000,
|
|
e_DestReceive = 0x40000000,
|
|
e_DestSend = 0xC0000000
|
|
};
|
|
/**
|
|
* length of data, including length of this header
|
|
*/
|
|
short m_Length = 0;
|
|
short m_Version = 0;
|
|
int m_Priority = 0;
|
|
/**
|
|
* We do not use E_CoPrtCnvProtocol here, because we want a size of 4 bytes
|
|
*/
|
|
int m_Protocol = 0;
|
|
/**
|
|
* needed for correct alignment when compiling on 64-bit systems
|
|
*/
|
|
int m_Reserved = 0;
|
|
/**
|
|
* Upper 4 bytes => seconds
|
|
* Lower 4 byte => microseconds
|
|
*/
|
|
uint64_t m_Time = 0;
|
|
};
|
|
}
|