Rev 291 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 291 | Rev 299 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | #define sizeByte_PSC 5 |
10 | #define sizeByte_PSC 5 |
11 | #define sizeByte_RSC 1 |
11 | #define sizeByte_RSC 1 |
12 | #define sizeByte_PIN 2 |
12 | #define sizeByte_PIN 2 |
13 | 13 | ||
14 | #define WRITEDATA_DELAY 40 |
14 | #define WRITEDATA_DELAY 40 |
- | 15 | ||
- | 16 | #define EASIROC_MAX_READ_N_WORDS 100 |
|
15 | 17 | ||
16 | 18 | ||
17 | //------------------------------------------------------------------------------------------------------ |
19 | //------------------------------------------------------------------------------------------------------ |
18 | 20 | ||
19 | int easiroc_Init(const char* SiTCP_MASTER_IP, unsigned int daq_mode) ; |
21 | int easiroc_Init(const char* SiTCP_MASTER_IP, unsigned int daq_mode) ; |
20 | void easiroc_Close(); |
22 | void easiroc_Close(); |
21 | 23 | ||
22 | int WriteData(SOCKET sock, unsigned int data); |
24 | int WriteData(SOCKET sock, unsigned int data); |
- | 25 | ||
- | 26 | int easiroc_LoadIni(const char *iniFile); |
|
23 | 27 | ||
24 | void PrepareFPGA(); |
28 | void PrepareFPGA(); |
25 | int DebugFPGA(SOCKET socket); |
29 | int DebugFPGA(SOCKET socket); |
26 | 30 | ||
27 | void PrepareSC(int chipNo); |
31 | void PrepareSC(int chipNo); |
28 | int TransmitSC(SOCKET socket); |
32 | int TransmitSC(SOCKET socket); |
29 | 33 | ||
30 | void PrepareReadSC(int chipNo); |
34 | void PrepareReadSC(int chipNo); |
31 | int TransmitReadSC(SOCKET socket); |
35 | int TransmitReadSC(SOCKET socket); |
32 | 36 | ||
33 | int PreparePSC(int CurrentCh, int CurrentProbeType); |
37 | int PreparePSC(int CurrentCh, int CurrentProbeType); |
- | 38 | ||
- | 39 | void easiroc_PrintData(); |
|
34 | 40 | ||
35 | int ADCOneCycle_wHeader_ver2(SOCKET socket, FILE* |
41 | int ADCOneCycle_wHeader_ver2(SOCKET socket, FILE* file, int stopping); |
36 | void ADCStop(SOCKET socket); |
42 | void ADCStop(SOCKET socket); |
37 | int ContinuousADC_ver2(SOCKET socket, char *file_name, int MaxCycleNum); |
43 | int ContinuousADC_ver2(SOCKET socket, char *file_name, int MaxCycleNum); |
- | 44 | ||
- | 45 | int easiroc_singleADCstart(); |
|
- | 46 | int easiroc_singleADCevent(unsigned int *retData); |
|
- | 47 | int easiroc_singleADCstop(); |
|
38 | 48 | ||
39 | int easiroc_fTransmitSC(); |
49 | int easiroc_fTransmitSC(); |
40 | int easiroc_fTransmitReadSC(); |
50 | int easiroc_fTransmitReadSC(); |
41 | int easiroc_fAsicInitialize(); |
51 | int easiroc_fAsicInitialize(); |
42 | int easiroc_fTransmitProbe(int CurrentCh, int CurrentProbe); |
52 | int easiroc_fTransmitProbe(int CurrentCh, int CurrentProbe); |