00001 00014 /* $Id: background.h,v 1.1.1.1 2005/11/18 17:30:35 greensheep Exp $ 00015 $Log: background.h,v $ 00016 Revision 1.1.1.1 2005/11/18 17:30:35 greensheep 00017 Initial commit 00018 00019 Revision 1.1 2004/10/19 10:14:56 Oliver Cordes 00020 - starting with gboocia 00021 Revision 1.2 2005/10/3 Dirk Huenniger 00022 - finishing gboccia 00023 */ 00024 #ifndef __background_h 00025 #define __background_h 1 00026 #include "semaphore.h" 00027 #include <time.h> 00028 extern sem_t gtk_sem; 00029 extern int command_block; 00030 extern volatile int readout_is_running; 00031 extern volatile int exposure_is_running; 00032 extern volatile int download_is_running; 00033 extern volatile int readout_is_stopped; 00034 extern volatile int exposure_is_stopped; 00035 extern float background_exposuretime; 00036 extern long int background_bytes_comming; 00037 extern long int background_bytes_red; 00038 extern double background_time_begin; 00039 extern volatile int acquire_is_running; 00040 extern volatile int postproc_is_running; 00041 extern volatile int acquire_restart; 00042 extern volatile int acquire_stop; 00043 extern char acquire_stop_string[1000]; 00044 extern char download_filename[1000]; 00045 extern char postproc_filename[1000]; 00046 extern int background_acquisitions_done; 00047 extern volatile int background_retries; 00048 extern volatile int download_start; 00049 extern volatile int zero_volt_start; 00050 extern volatile int gui_clock; 00051 extern volatile int auto_is_running; 00052 extern volatile int auto_stop; 00053 extern volatile int zero_volt_is_running; 00054 00055 void init_background_tasks( void ); 00056 int done_background_tasks( void ); 00057 int ccu_receive_command ( char *cmd, int timeout); 00058 int ccu_send_command ( char *cmd ); 00059 void task_terminal_suspend( void ); 00060 void terminal_add_item(char *str,char *str2); 00061 int ccu_send_byte ( int byte ); 00062 void background_start_download(char *); 00063 extern void ui_timer(void); 00064 int background_anything_except_acquire_running(void ); 00065 int background_anything_running(void ); 00066 int main_init_everything(); 00067 #endif