NetBurner 3.1
ThroughputConstants.h
1 /*NB_REVISION*/
2 
3 /*NB_COPYRIGHT*/
4 
5 #ifndef _CONSTANTS_H_
6 #define _CONSTANTS_H_
7 #pragma once
8 
9 #include <basictypes.h>
10 
11 enum TestModes
12 {
13  eTestModeNone = 0,
14  eTestModeTCP,
15  eTestModeUDP
16 };
17 
24 const int BUFFER_SIZE = 96000;
25 
29 const int COMMAND_BUFFER_SIZE = 80;
30 
35 const int TRANSMISSION_RATE = 4643;
36 
40 const int TEST_COUNT = 1;
41 
45 const int DEBUG_SERIAL_PORT = 0;
46 
50 const bool DEBUG_ENABLED = false;
51 
55 // If you change this to allow other platforms to use more than 2,
56 // a fair bit of logic will need to change
57 #if ( defined NANO54415 || defined PK70 )
58 #define NB_FACTORY_SERIAL_PORTS ( 5 )
59 #else
60 #define NB_FACTORY_SERIAL_PORTS ( 2 )
61 #endif
62 
63 
64 #endif /* _CONSTANTS_H_ */