versadac
1
versadac - Scalable Recorder Firmware
Main Page
Classes
Files
File List
File Members
core
profinet_io
src
addin
mrp
mrp_envevent.h
1
/***************************************************************************************
2
*********** Copyright 2005 Zurich University of Applied Sciences / InES **************
3
***************************************************************************************
4
**
5
** File : mrp_envevent.h
6
**
7
** Description : This file provides the environment events necessary to post
8
** events to the MRP environment.
9
**
10
***************************************************************************************
11
** Department : Institute of Embedded Systems
12
** Project : MRP
13
** Modul : MRP_EnvEvent_T
14
** Author : Christian Schaer
15
** Contact : scc@zhwin.ch
16
** Date : 10.04.2006
17
****************************** Modifications ******************************************
18
**
19
** Date : Who : Comment :
20
** 10.05.06 scc initial release
21
**************************************************************************************/
22
/* $Workfile:: mrp_envevent.h $*/
23
/* $Revision:: 2 $*/
24
/* $Date:: 16/12/10 14:44 $*/
25
26
#ifndef MRP_ENVEVENT_H
27
#define MRP_ENVEVENT_H
28
29
30
/***********************************************************************/
31
/*** Header Files Includes ***/
32
/***********************************************************************/
33
34
#include "mrp_pkg.h"
35
36
37
/***********************************************************************/
38
/*** Definitions ***/
39
/***********************************************************************/
40
41
typedef
enum
MRPEnvEvent {
42
MRP_EnvEvRXPDU,
43
MRP_EnvEvLocalLinkChangeInd,
44
MRP_EnvEvTimer,
45
} MRPEnvEvent;
46
47
48
49
/**********************************************************************/
50
/*** class MRP_ProtocolEvent_T ***/
51
/**********************************************************************/
52
53
struct
MRP_EnvEvent_T
54
{
55
MRPEnvEvent event_;
/* contains the event type */
56
char
* data_ptr_;
/* Pointer to event specific data */
57
Unsigned16 data_length_;
/* Length of the data */
58
Unsigned16 rx_port_;
/* If a message is received, this attribute indicates on which port the msg was received */
59
Unsigned16 vlan_id_;
/* If a message is received, this attribute indicates on which vlan the msg was received */
60
};
61
62
63
/********************************************/
64
/*** Constructors and destructors ***/
65
/********************************************/
66
67
void
MRP_EnvEvent_T_Init(
MRP_EnvEvent_T
*
const
me, MRPEnvEvent event,
char
* data_ptr );
68
69
70
/********************************************/
71
/*** public Methods ***/
72
/********************************************/
73
74
void
MRP_EnvEvent_T_copy(
MRP_EnvEvent_T
*
const
me,
const
MRP_EnvEvent_T
* in_event );
75
76
77
#endif
78
MRP_EnvEvent_T
Definition:
mrp_envevent.h:53
Generated on Wed Aug 19 2020 10:33:44 for versadac by
1.8.9.1