versadac
1
versadac - Scalable Recorder Firmware
Main Page
Classes
Files
File List
File Members
core
profinet_io
src
addin
mrp
mrp_pduframes.h
1
/***************************************************************************************
2
*********** Copyright 2005 Zurich University of Applied Sciences / InES **************
3
***************************************************************************************
4
**
5
** File : mrp_pduframes.h
6
**
7
** Description : This file provides function to setup PDUs and send them
8
**
9
***************************************************************************************
10
** Department : Institute of Embedded Systems
11
** Project : MRP
12
** Modul : MRP_PDUFrames_T
13
** Author : Christian Schaer
14
** Contact : scc@zhwin.ch
15
** Date : 10.04.2006
16
****************************** Modifications ******************************************
17
**
18
** Date : Who : Comment :
19
** 10.05.06 scc initial release
20
**************************************************************************************/
21
/* $Workfile:: mrp_pduframes.h $*/
22
/* $Revision:: 2 $*/
23
/* $Date:: 16/12/10 14:44 $*/
24
25
#ifndef MRP_PDUFRAMES_H
26
#define MRP_PDUFRAMES_H
27
28
29
/***********************************************************************/
30
/*** Header Files Includes ***/
31
/***********************************************************************/
32
33
#include "mrp_pkg.h"
34
35
36
/**********************************************************************/
37
/*** class MRP_PDUFrames_T ***/
38
/**********************************************************************/
39
40
struct
MRP_PDUFrames_T
41
{
42
MRP_ProtocolMachine_T
* mrp_protocolmachine_ptr_;
/* link MRP_ProtocolMachine_T */
43
MRP_Environment_T
* mrp_environment_ptr_;
/* link MRP_Environment_T */
44
MRP_Domain_T
* mrp_domain_ptr_;
/* link MRP_Ring_T */
45
46
char
frame_buffer_[MRP_FRAME_BUFFER_SIZE];
/* Buffer for the frame */
47
};
48
49
50
/********************************************/
51
/*** Constructors and destructors ***/
52
/********************************************/
53
54
void
MRP_PDUFrames_T_Init(
MRP_PDUFrames_T
*
const
me,
MRP_Domain_T
*
const
ring_ptr );
55
56
void
MRP_PDUFrames_T_Cleanup(
MRP_PDUFrames_T
*
const
me );
57
58
59
/********************************************/
60
/*** public Methods ***/
61
/********************************************/
62
64
void
MRP_PDUFrames_T_setupLinkChangeReq(
MRP_PDUFrames_T
*
const
me,
65
Unsigned16 tx_port,
66
MRPLinkState link_status,
67
MRPPortRole port_role,
68
Unsigned16 interval );
69
71
void
MRP_PDUFrames_T_setupTestRingReq(
MRP_PDUFrames_T
*
const
me );
72
74
void
MRP_PDUFrames_T_setupTopologyChangeReq(
MRP_PDUFrames_T
*
const
me,
75
Unsigned16 interval );
76
77
78
#endif
79
80
MRP_Environment_T
Definition:
mrp_environment.h:44
MRP_PDUFrames_T
Definition:
mrp_pduframes.h:40
MRP_ProtocolMachine_T
Definition:
mrp_protocolmachine.h:61
MRP_Domain_T
Definition:
mrp_domain.h:54
Generated on Wed Aug 19 2020 10:33:44 for versadac by
1.8.9.1