a3a92abf1ca043aaaaaa79381afa316abaa00ace
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 removed version information...

Stefan Schuermans authored 13 years ago

4)  * Copyright 2010-2011 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 rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

38) #define ETP_MCUF_HDR_LEN              (12)    /**< length of MCUF header */
39) #define ETP_MCUF_HDR_OFS_OUTPUTS      (5)     /**< offset of output count
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

41) #define ETP_MCUF_HDR_OFS_PIXELS       (7)     /**< offset of pixel count
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

61) 
62) 
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

63) #endif /* #ifndef ETP_CONSTANTS_H */