Hamlib  4.3
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Functions
Rotator Internal API

Functions

int frontrot_set_conf (ROT *rot, token_t token, const char *val)
 Set a rotator state value from alpha input. More...
 
int frontrot_get_conf (ROT *rot, token_t token, char *val)
 Query data from a rotator state in alpha form. More...
 
int foreach_opened_rot (int(*cfunc)(ROT *, rig_ptr_t), rig_ptr_t data)
 Executes cfunc on each opened ROT. More...
 

Detailed Description

Function Documentation

◆ foreach_opened_rot()

int foreach_opened_rot ( int(*)(ROT *, rig_ptr_t)  cfunc,
rig_ptr_t  data 
)

Executes cfunc on each opened ROT.

Parameters
cfuncThe function to be executed on each ROT.
dataData pointer to be passed to cfunc.

Calls cfunc function for each opened ROT. The contents of the opened ROT table is processed in random order according to a function pointed to by cfunc, which is called with two arguments, the first pointing to the ROT handle, the second to a data pointer data.

If data is not needed, then it can be set to NULL. The processing of the opened ROT table is stopped when cfunc returns 0.

Returns
RIG_OK in all cases.

◆ frontrot_get_conf()

int frontrot_get_conf ( ROT rot,
token_t  token,
char *  val 
)

Query data from a rotator state in alpha form.

Parameters
rotThe ROT handle.
tokenTOK_... specify which data to query.
valResult.

Assumes rot != NULL and val != NULL.

Returns
RIG_OK or a negative value on error.
Return values
RIG_OKTOK_... value queried successfully.
RIG_EINVALTOK_.. value not queried.
See also
frontrot_set_conf()

◆ frontrot_set_conf()

int frontrot_set_conf ( ROT rot,
token_t  token,
const char *  val 
)

Set a rotator state value from alpha input.

Parameters
rotThe ROT handle.
tokenTOK_... specify which value to set.
valInput.

Assumes rot != NULL and val != NULL.

Returns
RIG_OK or a negative value on error.
Return values
RIG_OKTOK_... value set successfully.
RIG_EINVALTOK_.. value not set.
See also
frontrot_get_conf()