Go to the documentation of this file.00001
00014 #ifndef HICAP_H
00015 #define HICAP_H
00016
00018 #define HC_CLBCOLS_XC4VFX12 24
00019
00023 #define HC_CLBMINORROWS_XC4VFX12 64
00024
00025
00026
00027
00028 #define DUMMY_PACKET 0xFFFFFFFFUL
00029 #define SYNC_PACKET 0xAA995566UL
00030 #define NOP_PACKET 0X20000000UL
00031 #define CMD_PACKET 0x30008001UL
00032 #define FAR_PACKET 0x30002001UL
00033 #define IDCODE_PACKET 0x30018001UL
00034 #define STAT_PACKET 0x2800E001UL
00035
00036
00037 #define WCFG_CMD 1 // Write configuration comand.
00038 #define LFRM_CMD 3 // Write last frame command.
00039 #define RCFG_CMD 4
00040 #define RCRC_CMD 7
00041 #define DESYNC_CMD 14
00042
00043
00044
00045 #define FDRI 2 //Frame data register input
00046 #define STAT 7 //Status register
00047
00048
00049 #define XHI_DISABLED_AUTO_CRC 0x0000DEFCUL
00050 #define XHI_TYPE_1_PACKET_MAX_WORDS 1024
00051
00052 #define WORDS_PR_FRAME 41
00053
00054 #define TYPE2 30 //Bitposition for type 2 header
00055 #define TYPE1 29 //Bitposition for type 1 header
00056
00057 #define REG_ADDR 13 //Bitposition for register address in type 1 header
00058
00059 #define OP_READ 27 //Bitposition for read op
00060 #define OP_WRITE 28 //Bitposition for write op
00061
00062
00063 #define V4FX12ID 0x21E58093; // Value read out from the virtex fx12 used.
00064
00065
00072 int hicap_open(char* icap_device, char* device_type);
00073
00079 int hicap_close(int icap_handle);
00080
00094 int hicap_write(int icap_handle, char* infilename, int real_row, int clb_column, int frames_offset, int frames);
00095
00104 int hicap_get_status(int icap_handle);
00105
00106
00107 #endif
00108
00109