Skip to content

Struct wfm_frame_t

ClassList > wfm_frame_t

A frame's bit layout: [preamble × reps | sync | payload | crc] .More...

  • #include <wfm_frame.h>

Public Attributes

Type Name
int crc
wfm_seq_t payload
wfm_seq_t preamble
size_t preamble_reps
wfm_seq_t sync

Detailed Description

The preamble sits OUTSIDE the sync/payload/CRC group, matching the DSSS contract this generalises: it is unmodulated, it is not covered by the CRC, and in the spread case it is not spread. It is the coherent-integration target.

This is a configuration of wfm_frame_desc_t — four fields and one stage — not a second descriptor. wfm_frame_layout builds it through wfm_frame_describe and reads the general layout back, so there is one implementation of the arithmetic and the two cannot drift.

Public Attributes Documentation

variable crc

int wfm_frame_t::crc;

non-zero: CRC-16-CCITT over the payload, MSB-first


variable payload

wfm_seq_t wfm_frame_t::payload;

variable preamble

wfm_seq_t wfm_frame_t::preamble;

len 0 = none


variable preamble_reps

size_t wfm_frame_t::preamble_reps;

repetitions of preamble; 0 = none


variable sync

wfm_seq_t wfm_frame_t::sync;

len 0 = unsynced — BER then needs an external alignment



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