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

rotlist.h File Reference


Detailed Description

Hamlib rotator model definitions.

This file contains rotator model definitions for the Hamlib rotator API. Each distinct rotator type has a unique model number (ID) and is used by hamlib to identify and distinguish between the different hardware drivers. The exact model numbers can be acquired using the macros in this file. To obtain a list of supported rotator branches, one can use the statically defined ROT_BACKEND_LIST macro. To obtain a full list of supported rotators (including each model in every branch), the foreach_opened_rot() API function can be used.

The model number, or ID, is used to tell hamlib, which rotator the client whishes to use. It is done with the rot_init() API call.

Definition in file rotlist.h.

Go to the source code of this file.

Defines

#define _ROTLIST_H   1
#define ROT_BACKEND_DUMMY   "dummy"
#define ROT_BACKEND_EASYCOMM   "easycomm"
#define ROT_BACKEND_FODTRACK   "fodtrack"
#define ROT_BACKEND_GS232A   "gs232a"
#define ROT_BACKEND_HEATHKIT   "heathkit"
#define ROT_BACKEND_KIT   "kit"
#define ROT_BACKEND_LIST
 Static list of rotator models.
#define ROT_BACKEND_NUM(a)   ((a)/100)
#define ROT_BACKEND_ROTOREZ   "rotorez"
#define ROT_BACKEND_RPC   "rpcrot"
#define ROT_BACKEND_SARTEK   "sartek"
#define ROT_BACKEND_SPID   "spid"
#define ROT_DUMMY   0
#define ROT_EASYCOMM   2
#define ROT_FODTRACK   3
#define ROT_GS232A   6
#define ROT_HEATHKIT   8
#define ROT_KIT   7
#define ROT_MAKE_MODEL(a, b)   ((a)*100+(b))
#define ROT_MODEL_DCU   ROT_MAKE_MODEL(ROT_ROTOREZ, 3)
 A macro that returns the model number of the DCU backend.
#define ROT_MODEL_DUMMY   ROT_MAKE_MODEL(ROT_DUMMY, 1)
 A macro that returns the model number for the dummy backend.
#define ROT_MODEL_EASYCOMM1   ROT_MAKE_MODEL(ROT_EASYCOMM, 1)
 A macro that returns the model number of the EasyComm 1 backend.
#define ROT_MODEL_EASYCOMM2   ROT_MAKE_MODEL(ROT_EASYCOMM, 2)
 A macro that returns the model number of the EasyComm 2 backend.
#define ROT_MODEL_FODTRACK   ROT_MAKE_MODEL(ROT_FODTRACK, 1)
 A macro that returns the model number of the Fodtrack backend.
#define ROT_MODEL_GS232   ROT_MAKE_MODEL(ROT_GS232A, 2)
#define ROT_MODEL_GS232A   ROT_MAKE_MODEL(ROT_GS232A, 1)
 A macro that returns the model number of the GS-232A backend.
#define ROT_MODEL_HD1780   ROT_MAKE_MODEL(ROT_HEATHKIT, 1)
 A macro that returns the model number of the HD 1780 backend.
#define ROT_MODEL_NETROTCTL   ROT_MAKE_MODEL(ROT_DUMMY, 2)
#define ROT_MODEL_NONE   0
#define ROT_MODEL_PCROTOR   ROT_MAKE_MODEL(ROT_KIT, 1)
 A macro that returns the model number of the PcRotor/WA6UFQ backend.
#define ROT_MODEL_ROTORCARD   ROT_MAKE_MODEL(ROT_ROTOREZ, 2)
 A macro that returns the model number of the Rotor Card backend.
#define ROT_MODEL_ROTOREZ   ROT_MAKE_MODEL(ROT_ROTOREZ, 1)
 A macro that returns the model number of the Rotor-EZ backend.
#define ROT_MODEL_RPC   ROT_MAKE_MODEL(ROT_RPC, 1)
 A macro that returns the model number of the RPC Network pseudo-backend.
#define ROT_MODEL_SARTEK1   ROT_MAKE_MODEL(ROT_SARTEK, 1)
 A macro that returns the model number of the SARtek-1 backend.
#define ROT_MODEL_SPID   ROT_MAKE_MODEL(ROT_SPID, 1)
 A macro that returns the model number of the SPID backend.
#define ROT_ROTOREZ   4
#define ROT_RPC   1
#define ROT_SARTEK   5
#define ROT_SPID   9

Typedefs

typedef int rot_model_t
 Convenience type definition for rotator model.


Generated by  Doxygen 1.6.0   Back to index