![]() |
Hamlib
4.3
|
Rotator capability data structure. More...
#include <rotator.h>

Rotator capability data structure.
The main idea of this structure is that it will be defined by the backend rotator driver, and will remain read-only for the application. Fields that need to be modifiable by the application are copied into the rot_state structure, which is the private memory area of the ROT instance.
This way, you can have several rotators running within the same application, sharing the rot_caps structure of the backend, while keeping their own customized data.
Note: Don't move fields around and only add new fields at the end of the rot_caps structure. Shared libraries and DLLs depend on a constant structure to maintain compatibility.
| const struct confparams* rot_caps::cfgparams |
Configuration parameters.
| const char* rot_caps::copyright |
Copyright info (should be LGPL).
| int* rot_caps::ext_tokens |
Extension token list.
| const struct confparams* rot_caps::extfuncs |
Extension functions list,
| const struct confparams* rot_caps::extlevels |
Extension levels list,
| const struct confparams* rot_caps::extparms |
Extension parameters list,
Pointer to backend implementation of rot_get_conf().
Pointer to backend implementation of rot_get_ext_func().
Pointer to backend implementation of rot_get_ext_level().
Pointer to backend implementation of rot_get_ext_parm().
Pointer to backend implementation of rot_get_func().
| const char*(* rot_caps::get_info) (ROT *rot) |
Pointer to backend implementation of rot_get_info().
Pointer to backend implementation of rot_get_level().
Pointer to backend implementation of rot_get_parm().
| int(* rot_caps::get_position) (ROT *rot, azimuth_t *azimuth, elevation_t *elevation) |
Pointer to backend implementation of rot_get_position().
| int(* rot_caps::get_status) (ROT *rot, rot_status_t *status) |
Pointer to backend implementation of rot_get_status().
| setting_t rot_caps::has_get_func |
List of get functions.
| setting_t rot_caps::has_get_level |
List of get levels.
| setting_t rot_caps::has_get_parm |
List of get parameters.
| setting_t rot_caps::has_set_func |
List of set functions.
| setting_t rot_caps::has_set_level |
List of set levels.
| setting_t rot_caps::has_set_parm |
List of set parameters.
| rot_status_t rot_caps::has_status |
Supported status flags.
| gran_t rot_caps::level_gran[64] |
level granularity (i.e. steps).
| const char* rot_caps::macro_name |
Rotator model macro name.
| azimuth_t rot_caps::max_az |
Upper limit for azimuth (relative to North).
| elevation_t rot_caps::max_el |
Upper limit for elevation.
| const char* rot_caps::mfg_name |
Manufacturer, e.g. Tower Torquer.
| azimuth_t rot_caps::min_az |
Lower limit for azimuth (relative to North).
| elevation_t rot_caps::min_el |
Lower limit for elevation.
| const char* rot_caps::model_name |
Model name, e.g. TT-360.
| int(* rot_caps::move) (ROT *rot, int direction, int speed) |
Pointer to backend implementation of rot_move().
| int(* rot_caps::park) (ROT *rot) |
Pointer to backend implementation of rot_park().
| gran_t rot_caps::parm_gran[64] |
parm granularity (i.e. steps).
| enum rig_port_e rot_caps::port_type |
Type of communication port (serial, ethernet, etc.).
| int rot_caps::post_write_delay |
Post-write delay.
| const rig_ptr_t rot_caps::priv |
Private data.
| int(* rot_caps::reset) (ROT *rot, rot_reset_t reset) |
Pointer to backend implementation of rot_reset().
| int rot_caps::retry |
Number of retries if command fails.
| int(* rot_caps::rot_cleanup) (ROT *rot) |
Pointer to backend implementation of rot_cleanup().
| int(* rot_caps::rot_close) (ROT *rot) |
Pointer to backend implementation of rot_close().
| int(* rot_caps::rot_init) (ROT *rot) |
Pointer to backend implementation of rot_init().
| rot_model_t rot_caps::rot_model |
Rotator model as defined in rotlist.h.
| int(* rot_caps::rot_open) (ROT *rot) |
Pointer to backend implementation of rot_open().
| int rot_caps::rot_type |
Rotator type.
| int rot_caps::serial_data_bits |
Number of data bits.
| enum serial_handshake_e rot_caps::serial_handshake |
Handshake.
| enum serial_parity_e rot_caps::serial_parity |
Parity.
| int rot_caps::serial_rate_max |
Maximal serial speed.
| int rot_caps::serial_rate_min |
Minimal serial speed.
| int rot_caps::serial_stop_bits |
Number of stop bits.
Pointer to backend implementation of rot_set_conf().
Pointer to backend implementation of rot_set_ext_func().
Pointer to backend implementation of rot_set_ext_level().
Pointer to backend implementation of rot_set_ext_parm().
Pointer to backend implementation of rot_set_func().
Pointer to backend implementation of rot_set_level().
Pointer to backend implementation of rot_set_parm().
| int(* rot_caps::set_position) (ROT *rot, azimuth_t azimuth, elevation_t elevation) |
Pointer to backend implementation of rot_set_position().
| enum rig_status_e rot_caps::status |
Driver status.
| int(* rot_caps::stop) (ROT *rot) |
Pointer to backend implementation of rot_stop().
| int rot_caps::timeout |
Timeout.
| const char* rot_caps::version |
Driver version, typically in YYYYMMDD.x format.
| int rot_caps::write_delay |
Write delay.