Files
externals/linux/include/celoxica/gmac_template.h
T
2017-10-04 14:16:02 -04:00

77 lines
2.5 KiB
C

/****************************************************************
* *
* Copyright (C) 1991-2011 Celoxica Ltd. All rights reserved. *
* *
*****************************************************************
* *
* Project : GMAC Library *
* Date : 18 FEB 2008 *
* File : gmac_template.h *
* Author : Patrik Beck (PB) *
* Contributors: *
* *
* Description: *
* *
* Celoxica normalised message format. *
* *
* Date Version Author Reason for change *
* *
* 19 FEB 2008 1.00 PB Created *
* 21 JUL 2011 2.00 LM Moved feed specific notes to: *
* /Documentation/Autodocs/modules *
* *
****************************************************************/
#ifndef __GMAC_TEMPLATE_H__
#define __GMAC_TEMPLATE_H__
#include <stdint.h>
#include "gmac_template_common.h"
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#define GMAC_QUANTITY_UNDEFINED ((int32_t)-1)
/**
* \brief Short description string
*
* General-purpose short string used for some GMAC fields. If less than 12 characters,
* C-standard zero byte is used at the end.
*/
typedef char GMACShortDescriptionString[12];
typedef enum
{
GMAC_TYPE_MULTICAST_TIMEOUT = 12,
} GMACMessageType;
/**
* \brief Multicast timeout
*
* Multicast timeout
*/
typedef struct {
GMACMessageHeader Head;
uint64_t CurrentTimestamp; /**<\brief Current timestamp (in ns) */
uint64_t LastUpdateTimestamp; /**<\brief Timestsamp (in ns) of the last update */
} GMACMessageMulticastTimeout;
/** @}
* //end of dataformat group
*/
// @cond NO_DOXYGEN
/**
// @endcond
*/
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GMAC_TEMPLATE_H__ */