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

Functions

int frontamp_set_conf (AMP *amp, token_t token, const char *val)
 Set an amplifier state value from alpha input. More...
 
int frontamp_get_conf (AMP *amp, token_t token, char *val)
 Query data from an amplifier state in alpha form. More...
 

Detailed Description

Function Documentation

◆ frontamp_get_conf()

int frontamp_get_conf ( AMP amp,
token_t  token,
char *  val 
)

Query data from an amplifier state in alpha form.

Parameters
ampThe AMP handle.
tokenTOK_... specify which data to query.
valResult.

Assumes amp != 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
frontamp_set_conf()

◆ frontamp_set_conf()

int frontamp_set_conf ( AMP amp,
token_t  token,
const char *  val 
)

Set an amplifier state value from alpha input.

Parameters
ampThe AMP handle.
tokenTOK_... specify which value to set.
valInput.

Assumes amp != NULL and val != NULL.

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