Skip to content

File wfm_surface.h

FileList > doppler > wfm > wfm_surface.h

Go to the source code of this file

The wfm field surface table: every source and segment field a non-Python face reads or writes by name. More...

  • #include <stddef.h>
  • #include "doppler/wfm/wfm_compose.h"
  • #include "doppler/wfm/wfm_names.h"

Classes

Type Name
struct wfm_surface_exclusive_t
struct wfm_surface_row_t

Public Types

Type Name
enum wfm__surface_8h_1ac36f475ca5b446f4fde4c9b90bec77c8
enum wfm_json_level_t
enum wfm_surf_owner_t
enum wfm_sv_kind_t

Public Static Attributes

Type Name
const char *const *const WFM_JSON_KEYS = /* multi line expression */
const char *const WFM_JSON_KEYS_FIELD = /* multi line expression */
const char *const WFM_JSON_KEYS_FRAME = /* multi line expression */
const char *const WFM_JSON_KEYS_INLINE_SEGMENT
const char *const WFM_JSON_KEYS_ROOT = /* multi line expression */
const char *const WFM_JSON_KEYS_SOURCE
const char *const WFM_JSON_KEYS_STAGE = /* multi line expression */
const char *const WFM_JSON_KEYS_SUM_SEGMENT = /* multi line expression */
const wfm_surface_row_t WFM_SURFACE
const wfm_surface_exclusive_t WFM_SURFACE_EXCLUSIVE = /* multi line expression */

Public Static Functions

Type Name
int wfm_surface_row_is_set (const wfm_surface_row_t * r, const void * base)

Macros

Type Name
define WFM_SURFACE_HELP_AMPLITUDE " --level DB[:DB] Source power in dBFS (&lt;= 0; 0 is unit power). (default 0.0)\n"
define WFM_SURFACE_HELP_BITS /* multi line expression */
define WFM_SURFACE_HELP_CODED /* multi line expression */
define WFM_SURFACE_HELP_DOPPLER /* multi line expression */
define WFM_SURFACE_HELP_DSSS_BURST /* multi line expression */
define WFM_SURFACE_HELP_DSSS_CONT /* multi line expression */
define WFM_SURFACE_HELP_NOISE /* multi line expression */
define WFM_SURFACE_HELP_OFDM /* multi line expression */
define WFM_SURFACE_HELP_PN /* multi line expression */
define WFM_SURFACE_HELP_PULSE /* multi line expression */
define WFM_SURFACE_HELP_SIGNAL /* multi line expression */
define WFM_SURFACE_HELP_SYMBOLS /* multi line expression */
define WFM_SURFACE_HELP_TYPE /* multi line expression */
define WFM_SURFACE_N_EXCLUSIVE 1
define WFM_SURFACE_REPS_WHY_CLI "only --acq-code repeats (a preamble): drop the \*REPS"
define WFM_SURFACE_REPS_WHY_JSON "only \"acq\_code\" repeats (a preamble): drop the \*REPS"

Detailed Description

wfm_surface.h — GENERATED by scripts/gen_wfm_defaults.py

Do not edit. One row per wfm source or segment field that a face other than Python exposes, generated from modules/wfm_compose.toml (the rows that declare cli) and the headers it names. Every face that reads a field by name reads it from here, so a field cannot be spelled, typed or bounded two ways (docs/design/wfmgen.md, "One surface table"; doppler#853).

Public Types Documentation

enum wfm__surface_8h_1ac36f475ca5b446f4fde4c9b90bec77c8

enum wfm__surface_8h_1ac36f475ca5b446f4fde4c9b90bec77c8 {
    WFM_SURFACE_source_type,
    WFM_SURFACE_source_freq,
    WFM_SURFACE_source_snr,
    WFM_SURFACE_source_snr_mode,
    WFM_SURFACE_source_seed,
    WFM_SURFACE_source_sps,
    WFM_SURFACE_source_pn_length,
    WFM_SURFACE_source_pn_poly,
    WFM_SURFACE_source_lfsr,
    WFM_SURFACE_source_level,
    WFM_SURFACE_source_background,
    WFM_SURFACE_source_f_end,
    WFM_SURFACE_source_span,
    WFM_SURFACE_source_doppler,
    WFM_SURFACE_source_doppler_rate,
    WFM_SURFACE_source_carrier_hz,
    WFM_SURFACE_source_doppler_lifetime,
    WFM_SURFACE_source_modulation,
    WFM_SURFACE_source_pulse,
    WFM_SURFACE_source_rrc_beta,
    WFM_SURFACE_source_rrc_span,
    WFM_SURFACE_source_symbols,
    WFM_SURFACE_source_acq_code,
    WFM_SURFACE_source_data_code,
    WFM_SURFACE_source_symbol_rate,
    WFM_SURFACE_source_dsss_code_only,
    WFM_SURFACE_source_frame,
    WFM_SURFACE_source_data_from_file,
    WFM_SURFACE_source_data,
    WFM_SURFACE_source_data_len,
    WFM_SURFACE_source_fill,
    WFM_SURFACE_source_code_only_symbols,
    WFM_SURFACE_source_frame_symbols,
    WFM_SURFACE_source_wlan,
    WFM_SURFACE_source_constellation,
    WFM_SURFACE_source_code_rate,
    WFM_SURFACE_source_scrambler_init,
    WFM_SURFACE_source_window,
    WFM_SURFACE_source_mac,
    WFM_SURFACE_source_gap,
    WFM_SURFACE_source_bandwidth,
    WFM_SURFACE_source_mac_header,
    WFM_SURFACE_segment_fs,
    WFM_SURFACE_segment_num_samples,
    WFM_SURFACE_segment_off_samples,
    WFM_SURFACE_segment_repeats,
    WFM_SURFACE_segment_delay_samples,
    WFM_SURFACE_segment_gap_noise,
    WFM_SURFACE_N
};

enum wfm_json_level_t

enum wfm_json_level_t {
    WFM_JSON_ROOT,
    WFM_JSON_INLINE_SEGMENT,
    WFM_JSON_SUM_SEGMENT,
    WFM_JSON_SOURCE,
    WFM_JSON_FRAME,
    WFM_JSON_FIELD,
    WFM_JSON_STAGE,
    WFM_JSON_N_LEVELS
};

The keys each object of a scene takes, generated from the schema's properties (docs/schema/wfmgen.schema.json). The reader refuses any other key by name: the schema and the reader are one table (#1153). One level per kind of scene object; it indexes WFM_JSON_KEYS.


enum wfm_surf_owner_t

enum wfm_surf_owner_t {
    WFM_SURF_SOURCE,
    WFM_SURF_SEGMENT
};

Which struct a row's offsets are into.


enum wfm_sv_kind_t

enum wfm_sv_kind_t {
    WFM_SV_DOUBLE,
    WFM_SV_INT,
    WFM_SV_SIZE,
    WFM_SV_U32,
    WFM_SV_U64,
    WFM_SV_CHOICE,
    WFM_SV_SYMBOLS,
    WFM_SV_FIELD,
    WFM_SV_BESPOKE
};

What kind of value a row holds.


Public Static Attributes Documentation

variable WFM_JSON_KEYS

const char* const* const WFM_JSON_KEYS[WFM_JSON_N_LEVELS];

variable WFM_JSON_KEYS_FIELD

const char* const WFM_JSON_KEYS_FIELD[];

variable WFM_JSON_KEYS_FRAME

const char* const WFM_JSON_KEYS_FRAME[];

variable WFM_JSON_KEYS_INLINE_SEGMENT

const char* const WFM_JSON_KEYS_INLINE_SEGMENT[];

variable WFM_JSON_KEYS_ROOT

const char* const WFM_JSON_KEYS_ROOT[];

variable WFM_JSON_KEYS_SOURCE

const char* const WFM_JSON_KEYS_SOURCE[];

variable WFM_JSON_KEYS_STAGE

const char* const WFM_JSON_KEYS_STAGE[];

variable WFM_JSON_KEYS_SUM_SEGMENT

const char* const WFM_JSON_KEYS_SUM_SEGMENT[];

variable WFM_SURFACE

const wfm_surface_row_t WFM_SURFACE[WFM_SURFACE_N];

variable WFM_SURFACE_EXCLUSIVE

const wfm_surface_exclusive_t WFM_SURFACE_EXCLUSIVE[1];

Public Static Functions Documentation

function wfm_surface_row_is_set

static inline int wfm_surface_row_is_set (
    const wfm_surface_row_t * r,
    const void * base
) 

Macro Definition Documentation

define WFM_SURFACE_HELP_AMPLITUDE

#define WFM_SURFACE_HELP_AMPLITUDE `"  --level DB[:DB] Source power in dBFS (<= 0; 0 is unit power). (default 0.0)\n"`

wfmgen help option lines for the AMPLITUDE section of USAGE.


define WFM_SURFACE_HELP_BITS

#define WFM_SURFACE_HELP_BITS `/* multi line expression */`

wfmgen help option lines for the BITS section of USAGE.


define WFM_SURFACE_HELP_CODED

#define WFM_SURFACE_HELP_CODED `/* multi line expression */`

wfmgen help option lines for the CODED section of USAGE.


define WFM_SURFACE_HELP_DOPPLER

#define WFM_SURFACE_HELP_DOPPLER `/* multi line expression */`

wfmgen help option lines for the DOPPLER section of USAGE.


define WFM_SURFACE_HELP_DSSS_BURST

#define WFM_SURFACE_HELP_DSSS_BURST `/* multi line expression */`

wfmgen help option lines for the DSSS_BURST section of USAGE.


define WFM_SURFACE_HELP_DSSS_CONT

#define WFM_SURFACE_HELP_DSSS_CONT `/* multi line expression */`

wfmgen help option lines for the DSSS_CONT section of USAGE.


define WFM_SURFACE_HELP_NOISE

#define WFM_SURFACE_HELP_NOISE `/* multi line expression */`

wfmgen help option lines for the NOISE section of USAGE.


define WFM_SURFACE_HELP_OFDM

#define WFM_SURFACE_HELP_OFDM `/* multi line expression */`

wfmgen help option lines for the OFDM section of USAGE.


define WFM_SURFACE_HELP_PN

#define WFM_SURFACE_HELP_PN `/* multi line expression */`

wfmgen help option lines for the PN section of USAGE.


define WFM_SURFACE_HELP_PULSE

#define WFM_SURFACE_HELP_PULSE `/* multi line expression */`

wfmgen help option lines for the PULSE section of USAGE.


define WFM_SURFACE_HELP_SIGNAL

#define WFM_SURFACE_HELP_SIGNAL `/* multi line expression */`

wfmgen help option lines for the SIGNAL section of USAGE.


define WFM_SURFACE_HELP_SYMBOLS

#define WFM_SURFACE_HELP_SYMBOLS `/* multi line expression */`

wfmgen help option lines for the SYMBOLS section of USAGE.


define WFM_SURFACE_HELP_TYPE

#define WFM_SURFACE_HELP_TYPE `/* multi line expression */`

wfmgen help option lines for the TYPE section of USAGE.


define WFM_SURFACE_N_EXCLUSIVE

#define WFM_SURFACE_N_EXCLUSIVE `1`

Pairs in WFM_SURFACE_EXCLUSIVE. With 0, the array holds one zeroed entry that no loop reads.


define WFM_SURFACE_REPS_WHY_CLI

#define WFM_SURFACE_REPS_WHY_CLI `"only --acq-code repeats (a preamble): drop the *REPS"`

The command line's reason.


define WFM_SURFACE_REPS_WHY_JSON

#define WFM_SURFACE_REPS_WHY_JSON `"only \"acq_code\" repeats (a preamble): drop the *REPS"`

A scene's (JSON) reason.



The documentation for this class was generated from the following file native/inc/doppler/wfm/wfm_surface.h