Skip to content

File wfm_names.h

FileList > doppler > wfm > wfm_names.h

Go to the source code of this file

The one C home for the waveform enum name tables. More...

Public Static Attributes

Type Name
const char *const BITMOD_NAMES = { "none", "bpsk", "qpsk" }
const char *const CRC_NAMES = { "none", "crc16" }
const char *const DOPPLER_LIFETIME_NAMES = { "per\_instance", "persist" }
const char *const ENDIAN_NAMES = { "le", "be" }
const char *const FTYPE_NAMES = { "raw", "csv", "blue", "sigmf" }
const char *const GAP_NOISE_NAMES = { "auto", "off" }
const char *const LFSR_NAMES = { "galois", "fibonacci" }
const char *const MODE_NAMES = { "auto", "fs", "ebno", "esno" }
const char *const OFDM_CODE_RATE_NAMES = { "1/2", "2/3", "3/4", "5/6", "auto" }
const char *const OFDM_CONSTELLATION_NAMES = { "bpsk", "qpsk", "qam16", "qam64", "auto" }
const char *const OFDM_MAC_NAMES = { "none", "fcs", "data", "auto" }
const char *const PULSE_NAMES = { "rect", "rrc" }
const char *const SEED_ADVANCE_NAMES = { "none", "noise", "all" }
const char *const SEQ_KIND_NAMES = { "literal", "pn", "gold", "dotted", "data" }
const char *const STAGE_KIND_NAMES = { "crc16", "rs", "randomise", "conv", "interleave" }
const char *const STYPE_NAMES = /* multi line expression */
const char *const TYPE_NAMES = /* multi line expression */

Macros

Type Name
define N_STAGE_KINDS 5
define N_STYPES 10
define N_TYPES 10

Detailed Description

One definition per enum: the [[enum]] manifest order IS the C int, append-only. Each table carries an SSOT: annotation naming the [[enum]] in just-makeit.toml that owns its contents, the N_* macro that sizes it, and the C enum that pins its indices where one exists. make lint-wfm-enum-tables reads those annotations and holds all four to each other, so the single-source-of-truth claim is a gate rather than a comment. A table added here without an annotation FAILS that gate.

These existed as per-file copies until the wfm_writer one silently fell behind (8 entries, no "dsss"; a < 7 label guard that also dropped "symbols"), and wfmgen.c and wfm_json.c kept twelve and seven more (doppler#760) — one of which, the --data source list, had already drifted into the reverse order. That is the rot this header ends: list order IS the enum value, so a copy that drifts maps a flag to the wrong waveform rather than failing.

Public Static Attributes Documentation

variable BITMOD_NAMES

const char* const BITMOD_NAMES[];

variable CRC_NAMES

const char* const CRC_NAMES[];

variable DOPPLER_LIFETIME_NAMES

const char* const DOPPLER_LIFETIME_NAMES[];

variable ENDIAN_NAMES

const char* const ENDIAN_NAMES[];

variable FTYPE_NAMES

const char* const FTYPE_NAMES[];

variable GAP_NOISE_NAMES

const char* const GAP_NOISE_NAMES[];

variable LFSR_NAMES

const char* const LFSR_NAMES[];

variable MODE_NAMES

const char* const MODE_NAMES[];

variable OFDM_CODE_RATE_NAMES

const char* const OFDM_CODE_RATE_NAMES[];

variable OFDM_CONSTELLATION_NAMES

const char* const OFDM_CONSTELLATION_NAMES[];

variable OFDM_MAC_NAMES

const char* const OFDM_MAC_NAMES[];

variable PULSE_NAMES

const char* const PULSE_NAMES[];

variable SEED_ADVANCE_NAMES

const char* const SEED_ADVANCE_NAMES[];

variable SEQ_KIND_NAMES

const char* const SEQ_KIND_NAMES[];

variable STAGE_KIND_NAMES

const char* const STAGE_KIND_NAMES[];

variable STYPE_NAMES

const char* const STYPE_NAMES[];

variable TYPE_NAMES

const char* const TYPE_NAMES[];

Macro Definition Documentation

define N_STAGE_KINDS

#define N_STAGE_KINDS `5`

Entries in STAGE_KIND_NAMES.


define N_STYPES

#define N_STYPES `10`

Entries in STYPE_NAMES.


define N_TYPES

#define N_TYPES `10`

Entries in TYPE_NAMES.



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