16 #ifndef __libvisao_h__
17 #define __libvisao_h__
27 #define VISAO_SCHED_POLICY SCHED_FIFO
33 #define FTYPE_NORMAL 0
37 #define RTSIGTIMEOUT (RTSIGPING + 1)
48 #define SYS_N_VCORES 12
54 #define SYS_N_LOGDRV 6
63 #define set_global_error_report(er) void (*global_error_report)(const char*, const char*, int) = er
71 #define set_global_log_info(li) void (*global_log_info)(const char*) = li
101 int ComputeRepsFrameRate(
double delay_base,
double delay_inc,
double fr);
103 int ComputeRepsExpTime(
double delay_base,
double delay_inc,
double et);
141 int save_preset(std::string calname,
double fw1pos,
int wollstat,
double fw2pos,
double fw3pos, std::vector<double> *vec);
148 int get_focuscal(
double * fcal);
161 int get_preset(std::string calname,
double fw1pos,
int wollstat,
double fw2pos,
double fw3pos, std::vector<double> *vec, std::string &presetf);
168 #endif //__libvisao_h__
double get_curr_time(void)
Gets the current CLOCK_REALTIME time, returns it in seconds to double precision.
double ComputeFramerate(double delay_base, double delay_inc, int rep)
Calculate frame rate given Little Joe program parameters.
int sigproof_sleep(double secs, int *dienow)
Signal proof sleep function.
void fifo_error_message(const char *, const char *, int)
The fifoutils error reporting function.
void * attach_shm(size_t *sz, key_t mkey, int shmemid)
Attach to a shared memory buffer and get its size.
void(* global_error_report)(const char *, const char *, int)
A global error reporting function, arguments are the report, file, and line.
void(* global_log_info)(const char *)
A global info logging function.
Declarations for linux fifo utilities.
double ts_to_curr_time(struct timespec *tsp)
Convert a timespec structure to double seconds.
#define SYS_N_LOGDRV
Number of logical drives in the system.
double tv_to_curr_time(struct timeval *tvp)
Convert a timeval structure to double seconds.
int create_shmem(int *shmemid, key_t mkey, size_t sz)
Create a shared memory buffer.
int get_dio_fnames(char *fout, char *fin, char *fbase, int ch)
Fills in the properly formatted dioserver channel fifo names.