versadac  1
versadac - Scalable Recorder Firmware
system.h
1 /*---------------------------------------------------------------------------*/
2 /* Copyright (C) 2006 Woodhead Software & Electonics. All rights reserved. */
3 /*---------------------------------------------------------------------------*/
4 /* This program is protected by international copyright. */
5 /* */
6 /* The use of this software including but not limited to its Source Code */
7 /* is subject to restrictions as agreed in the license agreement between */
8 /* you and Woodhead. */
9 /* Copying or distribution is not allowed unless expressly permitted */
10 /* according to your license agreement with Woodhead. */
11 /*---------------------------------------------------------------------------*/
12 /* */
13 /* Project : STACK PROFINET Controller */
14 /* Component : Production */
15 /* $Workfile:: system.h $*/
16 /* $Revision:: 2 $*/
17 /* $Date:: 9/22/09 6:01p $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* */
23 /*---------------------------------------------------------------------------*/
24 
25 
26 #ifndef __SYSTEM_H__
27 #define __SYSTEM_H__
28 
29 #define OS_OK 1
30 #define OS_NOT_OK 0
31 #define OS_NULL 0
32 
33 
34 
35 /* Ethernet Frame Maximal Length */
36 #define ETHERNET_MAX_FRAME_LENGTH 1517
37 #define MAC_ADDRESS_LEN 6
38 
39 /* Maximal Data in production and consumption frame */
40 #define MAX_DATA_FRAME_IO 1440
41 
42 /* Minimal Data in production and consumption frame */
43 #define MIN_DATA_FRAME_IO_RT_CLASS_1_2 40
44 #define MIN_DATA_FRAME_IO_RT_CLASS_3 0
45 #define MIN_DATA_FRAME_IO_RT_CLASS_UDP 12
46 
47 #define INVALID 0xffff
48 
49 
50 /*version */
51 #define PN_DEVICE_VERSION "0.0.0.1"
52 
53 #define COUNT_OF(array) (sizeof(array)/sizeof(array[0]))
54 
55 #endif