Go to most recent revision | Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 291 | f9daq | 1 | #ifndef easiroc_H |
| 2 | #define easiroc_H |
||
| 3 | |||
| 4 | #include<stdio.h> |
||
| 5 | #include<stdlib.h> |
||
| 6 | #include<errno.h> |
||
| 7 | #include <Winsock2.h> |
||
| 8 | |||
| 9 | #define sizeByte_SC 15 |
||
| 10 | #define sizeByte_PSC 5 |
||
| 11 | #define sizeByte_RSC 1 |
||
| 12 | #define sizeByte_PIN 2 |
||
| 13 | |||
| 14 | #define WRITEDATA_DELAY 40 |
||
| 15 | |||
| 16 | |||
| 17 | //------------------------------------------------------------------------------------------------------ |
||
| 18 | |||
| 19 | int easiroc_Init(const char* SiTCP_MASTER_IP, unsigned int daq_mode) ; |
||
| 20 | void easiroc_Close(); |
||
| 21 | |||
| 22 | int WriteData(SOCKET sock, unsigned int data); |
||
| 23 | |||
| 24 | void PrepareFPGA(); |
||
| 25 | int DebugFPGA(SOCKET socket); |
||
| 26 | |||
| 27 | void PrepareSC(int chipNo); |
||
| 28 | int TransmitSC(SOCKET socket); |
||
| 29 | |||
| 30 | void PrepareReadSC(int chipNo); |
||
| 31 | int TransmitReadSC(SOCKET socket); |
||
| 32 | |||
| 33 | int PreparePSC(int CurrentCh, int CurrentProbeType); |
||
| 34 | |||
| 35 | int ADCOneCycle_wHeader_ver2(SOCKET socket, FILE* file); |
||
| 36 | void ADCStop(SOCKET socket); |
||
| 37 | int ContinuousADC_ver2(SOCKET socket, char *file_name, int MaxCycleNum); |
||
| 38 | |||
| 39 | int easiroc_fTransmitSC(); |
||
| 40 | int easiroc_fTransmitReadSC(); |
||
| 41 | int easiroc_fAsicInitialize(); |
||
| 42 | int easiroc_fTransmitProbe(int CurrentCh, int CurrentProbe); |
||
| 43 | int easiroc_fDAQ(char *file_name, int MaxCycleNum); |
||
| 44 | #endif |