#include "serial.h"
#include "semaphore.h"
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
Go to the source code of this file.
Defines | |
#define | __instctrl_h 1 |
#define | instctrl_status_idle 0 |
#define | instctrl_status_ok 1 |
#define | instctrl_status_busy 2 |
#define | instctrl_status_fail 3 |
Functions | |
int | instctrl_parse_statusfile () |
parses the statusfile of the instrument control program. | |
char * | instctrl_status_message (int code) |
retruns a string corresponding to status code defined in instctrl.h. | |
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. | |
int | instctrl_parse_filterfile () |
parses the filterlistfile | |
instctrl_status_struct | instctrl_get_status () |
returns the current status of the instrument control. | |
void | instctrl_set_filters (struct instctrl_filterlist_struct input) |
updates the filterlist. | |
void | instctrl_set_filter (char *filter) |
queues the command to set a filter. | |
instctrl_filterlist_struct | instctrl_get_filters () |
returns the filterlist. | |
volatile double | instctrl_get_tel_focus () |
returns the current focus of the telescope. | |
void | ui_instctrl_numbers_changed (struct instctrl_status_struct) |
called by instctrl.c whenever its status numbers have changed. | |
void | ui_instctrl_strings_changed (struct instctrl_status_struct) |
called by instctrl.c whenever its status strings have changed. | |
void | ui_instctrl_statuslight_changed (struct instctrl_status_struct) |
called by instctrl.c whenever its status light has changed. | |
void | ui_instctrl_filters_changed (struct instctrl_filterlist_struct) |
called by instctrl.c whenever the list of filters has changed. | |
void | instctrl_init () |
(constructor) initialzes the communcation with the instrument control program. | |
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_filenames (struct instctrl_filename_struct input) |
sets the names of the files to be used to communicate with the instrument control program | |
Variables | |
sem_t | instctrl_sem |
sem_t | instctrl_status_sem |
sem_t | instctrl_filters_sem |
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.
|
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.
|
|
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 (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.
|
|
called by instctrl.c whenever the list of filters has changed.
|
|
called by instctrl.c whenever its status numbers have changed.
|
|
called by instctrl.c whenever its status light has changed.
|
|
called by instctrl.c whenever its status strings have changed.
|
|
a semaphore procteting instctrl_status |
|
a semaphore protecting instctrl_list |
|
a semaphore procteting instctrl_status |