Skip to content

File syn_dsp.h

FileList > dsp > syn_dsp.h

Go to the source code of this file

Zero-heap Fixed-Point DSP & Spectral Processing Primitives. More...

  • #include "../util/syn_qmath.h"
  • #include "syntropic/common/syn_defs.h"

Public Functions

Type Name
SYN_Status syn_dsp_dct2_q7 (const q7_t * time_series, size_t num_samples, q7_t * dct_coeffs, size_t num_coeffs)
Compute Type-II Discrete Cosine Transform (DCT-II) on Q7 data.

Detailed Description

Provides fixed-point Discrete Cosine Transform (DCT-II) and signal processing helpers tailored for resource-constrained microcontrollers.

Public Functions Documentation

function syn_dsp_dct2_q7

Compute Type-II Discrete Cosine Transform (DCT-II) on Q7 data.

SYN_Status syn_dsp_dct2_q7 (
    const q7_t * time_series,
    size_t num_samples,
    q7_t * dct_coeffs,
    size_t num_coeffs
) 

Transforms time-domain sensor samples into frequency-domain coefficients. Formula: X_k = Sum_{n=0}^{N-1} x_n * cos(pi/N * (n + 0.5) * k)

Parameters:

  • time_series Pointer to input time-domain sample vector (length = num_samples).
  • num_samples Number of time-domain input samples.
  • dct_coeffs Destination vector for frequency coefficients (length = num_coeffs).
  • num_coeffs Number of output frequency coefficients to retain (num_coeffs <= num_samples).

Returns:

SYN_OK on success, SYN_INVALID_PARAM on failure.



The documentation for this class was generated from the following file src/syntropic/dsp/syn_dsp.h