#[repr(C)]pub struct SoapySDRArgInfo {
pub key: *mut c_char,
pub value: *mut c_char,
pub name: *mut c_char,
pub description: *mut c_char,
pub units: *mut c_char,
pub type_: SoapySDRArgInfoType,
pub range: SoapySDRRange,
pub numOptions: usize,
pub options: *mut *mut c_char,
pub optionNames: *mut *mut c_char,
}Expand description
Definition for argument info
Fields§
§key: *mut c_charThe key used to identify the argument (required)
value: *mut c_charThe default value of the argument when not specified (required)
Numbers should use standard floating point and integer formats. Boolean values should be represented as “true” and “false”.
name: *mut c_charThe displayable name of the argument (optional, use key if empty)
description: *mut c_charA brief description about the argument (optional)
units: *mut c_charThe units of the argument: dB, Hz, etc (optional)
type_: SoapySDRArgInfoTypeThe data type of the argument (required)
range: SoapySDRRangeThe range of possible numeric values (optional) When specified, the argument should be restricted to this range. The range is only applicable to numeric argument types.
numOptions: usizeThe size of the options set, or 0 when not used.
options: *mut *mut c_charA discrete list of possible values (optional) When specified, the argument should be restricted to this options set.
optionNames: *mut *mut c_charA discrete list of displayable names for the enumerated options (optional) When not specified, the option value itself can be used as a display name.
Trait Implementations§
Source§impl Clone for SoapySDRArgInfo
impl Clone for SoapySDRArgInfo
Source§fn clone(&self) -> SoapySDRArgInfo
fn clone(&self) -> SoapySDRArgInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more