Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

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"
Include dependency graph for rotator.c:

Go to the source code of this file.

Classes

struct  opened_rot_l

Defines

#define CHECK_ROT_ARG(r)   (!(r) || !(r)->caps || !(r)->state.comm_state)
#define DEFAULT_PARALLEL_PORT   "/dev/parport0"
#define DEFAULT_SERIAL_PORT   "/dev/ttyS0"

Functions

static int add_opened_rot (ROT *rot)
int foreach_opened_rot (int(*cfunc)(ROT *, rig_ptr_t), rig_ptr_t data)
 execs cfunc() on each opened rot
static int remove_opened_rot (ROT *rot)
int HAMLIB_API rot_cleanup (ROT *rot)
 release a rot handle and free associated memory
int HAMLIB_API rot_close (ROT *rot)
 close the communication to the rot
const char *HAMLIB_API rot_get_info (ROT *rot)
 get general information from the rotator
int HAMLIB_API rot_get_position (ROT *rot, azimuth_t *azimuth, elevation_t *elevation)
 get the azimuth and elevation of the rotator
ROT *HAMLIB_API rot_init (rot_model_t rot_model)
 allocate a new ROT handle
int HAMLIB_API rot_move (ROT *rot, int direction, int speed)
 move the rotator in the specified direction
int HAMLIB_API rot_open (ROT *rot)
 open the communication to the rot
int HAMLIB_API rot_park (ROT *rot)
 park the antenna
int HAMLIB_API rot_reset (ROT *rot, rot_reset_t reset)
 reset the rotator
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_stop (ROT *rot)
 stop the rotator

Variables

static struct opened_rot_lopened_rot_list = { NULL }

Detailed Description

Rotator interface.

Author:
Stephane Fillod
Date:
2000-2011

Hamlib interface is a frontend implementing rotator wrapper functions.

Definition in file rotator.c.


Generated by  Doxygen 1.6.0   Back to index