#include <stdlib.h>
#include "instctrl.h"
#include "semaphore.h"
#include "error.h"
#include "glib.h"
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/time.h>
#include <stdio.h>
Functions | |
| void | intctrl_set_lockbusy (double time) |
| a horrible patch to overcome a synchroniztion problem. | |
| void | instctrl_push_item (struct instctrl_struct input) |
| queues a new command into the instctrl queue. | |
| int | instctrl_pop_item (struct instctrl_struct *dummy) |
| pops a command from the instctrl queue. | |
| void | instctrl_set_status_async (struct instctrl_status_struct input) |
| sets the status of the instrument control (for internal use by instctrl.c only). | |
| void | instctrl_set_status (struct instctrl_status_struct input) |
| sets the status of the instrument control. | |
| int | instctrl_parse_statusfile () |
| parses the statusfile of the instrument control program. | |
| int | instctrl_parse_statuslightfile () |
| parses the statuslightfile of the instrument control program. | |
| void | instctrl_set_filters (struct instctrl_filterlist_struct input) |
| updates the filterlist. | |
| instctrl_filterlist_struct | instctrl_get_filters () |
| returns the filterlist. | |
| int | instctrl_parse_filterfile () |
| parses the filterlistfile | |
| int | instctrl_send_commands () |
| sends commands from the command queue to the instrument control program | |
| void | instctrl_set_telescopefocus (long focus) |
| queues the command to set the telescope focus. | |
| void | instctrl_set_filter (char *filter) |
| queues the command to set a filter. | |
| char * | instctrl_status_message (int code) |
| retruns a string corresponding to status code defined in instctrl.h. | |
| void | instctrl_set_filenames (struct instctrl_filename_struct input) |
| sets the names of the files to be used to communicate with the instrument control program | |
| instctrl_filename_struct | instctrl_get_filenames () |
| retruns a strcut containing the names of the files currently used to communicate with the instrument control program | |
| instctrl_status_struct | instctrl_get_status () |
| returns the current status of the instrument control. | |
| volatile double | instctrl_get_tel_focus () |
| returns the current focus of the telescope. | |
| void | instctrl_init () |
| (constructor) initialzes the communcation with the instrument control program. | |
Variables | |
| GList * | instctrl_list = NULL |
| sem_t | instctrl_sem |
| sem_t | instctrl_status_sem |
| instctrl_status_struct | instctrl_status |
| instctrl_filename_struct | instctrl_filenames |
| sem_t | instctrl_filters_sem |
| instctrl_filter_struct | instctrl_filters [100] |
Copyright (C) 2001-2003 Dirk Huenniger (dhun@astro.uni-bonn.de)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
|
retruns a strcut containing the names of the files currently used to communicate with the instrument control program
|
|
|
returns the filterlist.
|
|
|
returns the current status of the instrument control.
|
|
|
returns the current focus of the telescope.
|
|
|
(constructor) initialzes the communcation with the instrument control program.
|
|
|
parses the filterlistfile
|
|
|
parses the statusfile of the instrument control program.
|
|
|
parses the statuslightfile of the instrument control program.
|
|
|
pops a command from the instctrl queue.
|
|
|
queues a new command into the instctrl queue.
|
|
|
sends commands from the command queue to the instrument control program
|
|
|
sets the names of the files to be used to communicate with the instrument control program
|
|
|
queues the command to set a filter.
|
|
|
updates the filterlist.
|
|
|
sets the status of the instrument control.
|
|
|
sets the status of the instrument control (for internal use by instctrl.c only).
|
|
|
queues the command to set the telescope focus.
|
|
|
retruns a string corresponding to status code defined in instctrl.h.
|
|
|
a horrible patch to overcome a synchroniztion problem.
|
|
|
a struct storing all filenames needed by instrument control |
|
|
an array of structs storing all information all about filters used by instrument control |
|
|
a semaphore procteting instctrl_status |
|
|
a list of commands to be sent to the instument control programm |
|
|
a semaphore protecting instctrl_list |
|
|
a struct representing the current status of instrument control |
|
|
a semaphore procteting instctrl_status |
1.4.2