BlinkenArea - GitList
Repositories
Blog
Wiki
libetherpix
Code
Commits
Branches
Tags
Search
Tree:
82136a2
Branches
Tags
master
libetherpix
include
intern
constants.h
v1.0.2
Stefan Schuermans
commited
82136a2
at 2011-09-11 17:14:43
constants.h
Blame
History
Raw
/* * FlexiPix library * !version: 1.0.2! !date: 2010-08-30! * * Copyright 2010 Stefan Schuermans <stefan schuermans info> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef FLP_CONSTANTS_H #define FLP_CONSTANTS_H /* FlexiPix hardware constants */ #define FLP_DISTRI_MAX_CNT (4096) /**< maximum number of distributors * that can be in the system, * number of distributor addresses * available */ #define FLP_OUTPUT_MAX_CNT (128) /**< maximum number of outputs per * distributor */ #define FLP_PIXEL_MAX_CNT (128) /**< maximum number of pixels that can * be connected to an output of a * distributor */ /* MCUF constants */ #define FLP_MCUF_HDR ("\x23\x54\x26\x66" \ "\x00\x00\x00\x00" \ "\x00\x03\x00\xFF") /**< data of MCUF header */ #define FLP_MCUF_HDR_LEN (12) /**< length of MCUF header */ #define FLP_MCUF_HDR_OFS_OUTPUTS (5) /**< offset of output count * in MCUF data */ #define FLP_MCUF_HDR_OFS_PIXELS (7) /**< offset of pixel count * in MCUF data */ #define FLP_MCUF_MAX_FRAME_INTERVAL_MS (1000) /**< maximum interval between two MCUF frames */ /* fixed settings constants */ #define FLP_DEST_IP_BASE (0x0A465000) /**< base IP address of distributors, * i.e. IP address of distributor 0, * 10.70.80.0 */ #define FLP_DEST_IP_STEP (0x00000001) /**< IP adress step of distributors, * i.e. increment of IP address for * every distributor address, * 0.0.0.1 */ #define FLP_DEST_PORT (2323) /**< UDP port the distributors * listen on */ /* default settings constants */ #define FLP_BIND_IP (0x00000000) /**< default IP to bind to * (first IP octect in LSB) */ #define FLP_BIND_PORT (0) /**< default port to bind to */ #endif /* #ifndef FLP_CONSTANTS_H */