rotator.c File Reference

Rotator interface. More...

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "hamlib/rotator.h"
#include "serial.h"
#include "parallel.h"
#include "usb_port.h"
#include "network.h"
#include "rot_conf.h"
#include "token.h"

Functions

int foreach_opened_rot (int(*cfunc)(ROT *, rig_ptr_t), rig_ptr_t data)
 execs cfunc() on each opened rot
ROT *HAMLIB_API rot_init (rot_model_t rot_model)
 allocate a new ROT handle
int HAMLIB_API rot_open (ROT *rot)
 open the communication to the rot
int HAMLIB_API rot_close (ROT *rot)
 close the communication to the rot
int HAMLIB_API rot_cleanup (ROT *rot)
 release a rot handle and free associated memory
int HAMLIB_API rot_set_conf (ROT *rot, token_t token, const char *val)
 set a rotator configuration parameter
int HAMLIB_API rot_get_conf (ROT *rot, token_t token, char *val)
 get the value of a configuration parameter
int HAMLIB_API rot_set_position (ROT *rot, azimuth_t azimuth, elevation_t elevation)
 set the azimuth and elevation of the rotator
int HAMLIB_API rot_get_position (ROT *rot, azimuth_t *azimuth, elevation_t *elevation)
 get the azimuth and elevation of the rotator
int HAMLIB_API rot_park (ROT *rot)
 park the antenna
int HAMLIB_API rot_stop (ROT *rot)
 stop the rotator
int HAMLIB_API rot_reset (ROT *rot, rot_reset_t reset)
 reset the rotator
int HAMLIB_API rot_move (ROT *rot, int direction, int speed)
 move the rotator in the specified direction
const char *HAMLIB_API rot_get_info (ROT *rot)
 get general information from the rotator

Detailed Description

Rotator interface.

Author:
Stephane Fillod
Date:
2000-2009

Hamlib interface is a frontend implementing rotator wrapper functions.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Hamlib documentation for version 1.2.9 -- Thu Aug 27 13:26:39 2009
Project page: http://hamlib.org