1 #ifndef _ots_VIPICFirmwareDefinitions_h_
2 #define _ots_VIPICFirmwareDefinitions_h_
9 const uint32_t ETHIO_DESTINATION_PORT = 0xc1000018;
10 const uint32_t DATA_DESTINATION_IP = 0xc10000a4;
11 const uint32_t DATA_SOURCE_DESTINATION_PORT = 0xc10000a8;
13 const double EXTERNAL_CLOCK_FREQUENCY = 54;
14 const double INTERNAL_CLOCK_FREQUENCY = 66.667;
16 const uint8_t WRITE = 1;
17 const uint8_t SET = 2;
18 const uint8_t READ = 4;
19 const uint8_t RESET = 5;
20 const uint8_t CLEAR = 5;
21 const uint8_t DEFAULT = 6;
22 const uint8_t WAITCLR = 7;
23 const uint8_t WAITSET = 8;
25 const int PIXELS_SIDE = 64;
27 const unsigned int VIPIC_CLOCK = 0xc9000004;
28 const unsigned int VIPIC_CSR = 0xc9000000;
29 const unsigned int VIPIC_LINK = 0xc9000010;
30 const unsigned int VIPIC_TEST_INJECT = 0xc9000020;
31 const unsigned int VIPIC_SPY_FIFO_STATUS = 0xc9000024;
32 const unsigned int VIPIC_SPY_FIFO_DATA = 0xc9000028;
33 const unsigned int VIPIC_TS_COUNTER_LOW = 0xc9000040;
34 const unsigned int VIPIC_TS_COUNTER_HIGH = 0xc9000044;
35 const unsigned int VIPIC_DCM_DATA = 0xc9000048;
36 const unsigned int VIPIC_STREAMER = 0xc900004c;
38 const unsigned int VIPIC_SET_WRITE_BASE = 0xc9001000;
39 const unsigned int VIPIC_SET_WRITE_END = 0xc90011ff;
40 const unsigned int VIPIC_SET_READ_BASE = 0xc9001200;
41 const unsigned int VIPIC_SET_READ_END = 0xc90013ff;
42 const unsigned int VIPIC_RESET_WRITE_BASE = 0xc9001400;
43 const unsigned int VIPIC_RESET_WRITE_END = 0xc90015ff;
44 const unsigned int VIPIC_RESET_READ_BASE = 0xc9001600;
45 const unsigned int VIPIC_RESET_READ_END = 0xc90017ff;
46 const unsigned int VIPIC_DATA_WRITE_BASE = 0xc9002000;
47 const unsigned int VIPIC_DATA_WRITE_END = 0xc90037ff;
48 const unsigned int VIPIC_DATA_READ_BASE = 0xc9004000;
49 const unsigned int VIPIC_DATA_READ_END = 0xc90057ff;