70b2487e4814de8318722171436e36ad0c395289
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

1) /*
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

2)  * EtherPix library
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

3)  *
Stefan Schuermans update copyright year

Stefan Schuermans authored 7 years ago

4)  * Copyright 2010-2017 Stefan Schuermans <stefan schuermans info>
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

5)  *
6)  * This program is free software: you can redistribute it and/or modify
7)  * it under the terms of the GNU General Public License as published by
8)  * the Free Software Foundation, version 3 of the License.
9)  *
10)  *
11)  * This program is distributed in the hope that it will be useful,
12)  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13)  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14)  * GNU General Public License for more details.
15)  *
16)  * You should have received a copy of the GNU Lesser General Public License
17)  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18)  */
19) 
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

20) #ifndef ETP_CONSTANTS_H
21) #define ETP_CONSTANTS_H
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

22) 
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

23) /* EtherPix hardware constants */
24) #define ETP_DISTRI_MAX_CNT (4096) /**< maximum number of distributors
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

25)                                    *   that can be in the system,
26)                                    *   number of distributor addresses
27)                                    *   available */
Stefan Schuermans support multiple addresses...

Stefan Schuermans authored 7 years ago

28) #define ETP_DISTRI_MAX_ADDRS (8)  /**< maximum number of network address(es)
Stefan Schuermans comment formatting

Stefan Schuermans authored 7 years ago

29)                                    *   for a distributor */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

30) #define ETP_OUTPUT_MAX_CNT (128)  /**< maximum number of outputs per
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

31)                                    *   distributor */
Stefan Schuermans support more pixels per output

Stefan Schuermans authored 7 years ago

32) #define ETP_PIXEL_MAX_CNT  (1024) /**< maximum number of pixels that can
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

33)                                    *   be connected to an output of a
34)                                    *   distributor */
35) 
36) /* MCUF constants */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

37) #define ETP_MCUF_HDR ("\x23\x54\x26\x66" \
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

38)                       "\x00\x00\x00\x00" \
39)                       "\x00\x03\x00\xFF")     /**< data of MCUF header */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

40) #define ETP_MCUF_HDR_LEN              (12)    /**< length of MCUF header */
Stefan Schuermans support more pixels per output

Stefan Schuermans authored 7 years ago

41) #define ETP_MCUF_HDR_OFS_OUTPUTS_U16  (4)     /**< offset of output count
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

42)                                                *   in MCUF data */
Stefan Schuermans support more pixels per output

Stefan Schuermans authored 7 years ago

43) #define ETP_MCUF_HDR_OFS_PIXELS_U16   (6)     /**< offset of pixel count
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

44)                                                *   in MCUF data */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

45) #define ETP_MCUF_MAX_FRAME_INTERVAL_MS (1000) /**< maximum interval between
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

46)                                                    two MCUF frames */
47) 
48) /* fixed settings constants */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

49) #define ETP_DEST_IP_BASE (0x0A465000) /**< base IP address of distributors,
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

50)                                        *   i.e. IP address of distributor 0,
51)                                        *   10.70.80.0 */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

52) #define ETP_DEST_IP_STEP (0x00000001) /**< IP adress step of distributors,
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

53)                                        *   i.e. increment of IP address for
54)                                        *   every distributor address,
55)                                        *   0.0.0.1 */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

56) #define ETP_DEST_PORT    (2323)       /**< UDP port the distributors
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

57)                                        *   listen on */
58) 
59) /* default settings constants */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

60) #define ETP_BIND_IP   (0x00000000) /**< default IP to bind to
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

61)                                     *   (first IP octect in LSB) */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

62) #define ETP_BIND_PORT (0)          /**< default port to bind to */
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

63) 
64) 
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

65) #endif /* #ifndef ETP_CONSTANTS_H */