2022-08-05 18:15:50 -04:00
|
|
|
#ifndef MACRO_H
|
|
|
|
#define MACRO_H
|
|
|
|
|
2022-11-01 18:38:01 -04:00
|
|
|
#define MaxNPorts 4
|
2022-09-29 15:26:40 -04:00
|
|
|
#define MaxNBoards 22
|
2022-08-05 18:15:50 -04:00
|
|
|
#define MaxNChannels 16
|
|
|
|
#define MaxRecordLength 0x3fff * 8
|
2022-10-04 16:54:01 -04:00
|
|
|
#define MaxSaveFileSize 1024 * 1024 * 1024 * 2
|
2022-08-05 18:15:50 -04:00
|
|
|
|
2022-10-05 17:54:10 -04:00
|
|
|
#define SETTINGSIZE 2048
|
|
|
|
|
2022-11-01 18:38:01 -04:00
|
|
|
#include <sys/time.h> /** struct timeval, select() */
|
|
|
|
|
|
|
|
inline unsigned int get_time(){
|
|
|
|
unsigned int time_us;
|
|
|
|
struct timeval t1;
|
|
|
|
struct timezone tz;
|
|
|
|
gettimeofday(&t1, &tz);
|
|
|
|
time_us = (t1.tv_sec) * 1000 * 1000 + t1.tv_usec;
|
|
|
|
return time_us;
|
|
|
|
}
|
|
|
|
|
2022-08-05 18:15:50 -04:00
|
|
|
#endif
|