libsstvenc
Asynchronous Analogue SSTV encoder
Loading...
Searching...
No Matches
oscillator.c File Reference
#include <assert.h>
#include <libsstvenc/oscillator.h>
#include <math.h>
#include <stdint.h>
Include dependency graph for oscillator.c:

Go to the source code of this file.

Macros

#define SSTVENC_OSC_PHASE_FRAC_BITS   (29)
 
#define SSTVENC_OSC_PHASE_FRAC_SCALE    ((double)(1 << SSTVENC_OSC_PHASE_FRAC_BITS))
 

Functions

double sstvenc_osc_get_frequency (const struct sstvenc_oscillator *const osc)
 
void sstvenc_osc_set_frequency (struct sstvenc_oscillator *const osc, double frequency)
 
void sstvenc_osc_init (struct sstvenc_oscillator *const osc, double amplitude, double frequency, double offset, uint32_t sample_rate)
 
void sstvenc_osc_compute (struct sstvenc_oscillator *const osc)