Hamlib 1.2.13
Data Structures | Defines | Typedefs | Enumerations | Functions | Variables

rotator.h File Reference

Hamlib rotator data structures. More...

#include <hamlib/rig.h>
#include <hamlib/rotlist.h>
#include <hamlib/rotlist.h>

Go to the source code of this file.

Data Structures

struct  rot_caps
 Rotator data structure. More...
struct  rot_state
 Live data and customized fields. More...
struct  rot
 This is the master data structure, acting as a handle for the controlled rotator. More...

Defines

#define NETROTCTL_RET   "RPRT "
 Token in the netrotctl protocol for returning error code.
#define ROT_RESET_ALL   1
 A macro that returns the flag for the reset operation.
#define ROT_TYPE_MASK   (ROT_FLAG_AZIMUTH|ROT_FLAG_ELEVATION)
#define ROT_TYPE_OTHER   0
#define ROT_TYPE_AZIMUTH   ROT_FLAG_AZIMUTH
#define ROT_TYPE_ELEVATION   ROT_FLAG_ELEVATION
#define ROT_TYPE_AZEL   (ROT_FLAG_AZIMUTH|ROT_FLAG_ELEVATION)
#define ROT_MOVE_UP   (1<<1)
 A macro that returns the flag for the UP direction.
#define ROT_MOVE_DOWN   (1<<2)
 A macro that returns the flag for the DOWN direction.
#define ROT_MOVE_LEFT   (1<<3)
 A macro that returns the flag for the LEFT direction.
#define ROT_MOVE_CCW   ROT_MOVE_LEFT
 A macro that returns the flag for the counterclockwise direction.
#define ROT_MOVE_RIGHT   (1<<4)
 A macro that returns the flag for the RIGHT direction.
#define ROT_MOVE_CW   ROT_MOVE_RIGHT
 A macro that returns the flag for the clockwise direction.
#define rot_debug   rig_debug
 Convenience definition for debug level.

Typedefs

typedef struct rot ROT
 Rotator structure definition (see rot for details).
typedef float elevation_t
 Type definition for elevation.
typedef float azimuth_t
 Type definition for azimuth.
typedef int rot_reset_t
 Type definition for rotator reset.

Enumerations

enum  rot_type_t { ROT_FLAG_AZIMUTH = (1<<1), ROT_FLAG_ELEVATION = (1<<2) }
 

Rotator type flags.

More...

Functions

 HAMLIB_EXPORT (ROT *) rot_init HAMLIB_PARAMS((rot_model_t rot_model))
 HAMLIB_EXPORT (int) rot_open HAMLIB_PARAMS((ROT *rot))
 HAMLIB_EXPORT (const char *) rot_get_info HAMLIB_PARAMS((ROT *rot))
 HAMLIB_EXPORT (const struct confparams *) rot_confparam_lookup HAMLIB_PARAMS((ROT *rot
 HAMLIB_EXPORT (token_t) rot_token_lookup HAMLIB_PARAMS((ROT *rot
 HAMLIB_EXPORT (const struct rot_caps *) rot_get_caps HAMLIB_PARAMS((rot_model_t rot_model))
 HAMLIB_EXPORT (double) distance_long_path HAMLIB_PARAMS((double distance))

Variables

token_t token
token_t const char * val
azimuth_t azimuth
azimuth_t elevation_t elevation
rot_reset_t reset
int direction
int int speed
 rig_ptr_t
rig_ptr_t data
int(* cfunc )(const struct confparams *, rig_ptr_t)
const char * name
double lat1
double double lon2
double double double lat2
double double double double * distance
double latitude
double char * locator_res
double char int pair_count
double const char * locator
int minutes
int double seconds
int double int sw
int * degrees

Detailed Description

Hamlib rotator data structures.

This file contains the data structures and definitions for the Hamlib rotator API. see the rotator.c file for more details on the rotator API.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by doxygen 1.7.3

Hamlib documentation for version 1.2.13 -- Tue Mar 15 2011 12:14:23
Project page: http://www.hamlib.org