Hamlib 4.7~git
 
Loading...
Searching...
No Matches
Amplifier Internal API

Functions

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

Detailed Description

Function Documentation

◆ frontamp_get_conf2()

int frontamp_get_conf2 ( AMP * amp,
hamlib_token_t token,
char * val,
int val_len )

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,
hamlib_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()