00001 #ifndef _ots_VIPICFirmwareDefinitions_h_
00002 #define _ots_VIPICFirmwareDefinitions_h_
00003
00004 #include <stdint.h>
00005
00006 namespace ots
00007 {
00008
00009 const uint32_t ETHIO_DESTINATION_PORT = 0xc1000018;
00010 const uint32_t DATA_DESTINATION_IP = 0xc10000a4;
00011 const uint32_t DATA_SOURCE_DESTINATION_PORT = 0xc10000a8;
00012
00013 const double EXTERNAL_CLOCK_FREQUENCY = 54;
00014 const double INTERNAL_CLOCK_FREQUENCY = 66.667;
00015
00016 const uint8_t WRITE = 1;
00017 const uint8_t SET = 2;
00018 const uint8_t READ = 4;
00019 const uint8_t RESET = 5;
00020 const uint8_t CLEAR = 5;
00021 const uint8_t DEFAULT = 6;
00022 const uint8_t WAITCLR = 7;
00023 const uint8_t WAITSET = 8;
00024
00025 const int PIXELS_SIDE = 64;
00026
00027 const unsigned int VIPIC_CLOCK = 0xc9000004;
00028 const unsigned int VIPIC_CSR = 0xc9000000;
00029 const unsigned int VIPIC_LINK = 0xc9000010;
00030 const unsigned int VIPIC_TEST_INJECT = 0xc9000020;
00031 const unsigned int VIPIC_SPY_FIFO_STATUS = 0xc9000024;
00032 const unsigned int VIPIC_SPY_FIFO_DATA = 0xc9000028;
00033 const unsigned int VIPIC_TS_COUNTER_LOW = 0xc9000040;
00034 const unsigned int VIPIC_TS_COUNTER_HIGH = 0xc9000044;
00035 const unsigned int VIPIC_DCM_DATA = 0xc9000048;
00036 const unsigned int VIPIC_STREAMER = 0xc900004c;
00037
00038 const unsigned int VIPIC_SET_WRITE_BASE = 0xc9001000;
00039 const unsigned int VIPIC_SET_WRITE_END = 0xc90011ff;
00040 const unsigned int VIPIC_SET_READ_BASE = 0xc9001200;
00041 const unsigned int VIPIC_SET_READ_END = 0xc90013ff;
00042 const unsigned int VIPIC_RESET_WRITE_BASE = 0xc9001400;
00043 const unsigned int VIPIC_RESET_WRITE_END = 0xc90015ff;
00044 const unsigned int VIPIC_RESET_READ_BASE = 0xc9001600;
00045 const unsigned int VIPIC_RESET_READ_END = 0xc90017ff;
00046 const unsigned int VIPIC_DATA_WRITE_BASE = 0xc9002000;
00047 const unsigned int VIPIC_DATA_WRITE_END = 0xc90037ff;
00048 const unsigned int VIPIC_DATA_READ_BASE = 0xc9004000;
00049 const unsigned int VIPIC_DATA_READ_END = 0xc90057ff;
00050 }
00051
00052 #endif