libsstvenc
Asynchronous Analogue SSTV encoder
Loading...
Searching...
No Matches
pulseshape.h File Reference
#include <libsstvenc/timescale.h>
#include <math.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for pulseshape.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sstvenc_pulseshape
 

Macros

#define SSTVENC_PS_PHASE_INIT   (0)
 
#define SSTVENC_PS_PHASE_RISE   (1)
 
#define SSTVENC_PS_PHASE_HOLD   (2)
 
#define SSTVENC_PS_PHASE_FALL   (3)
 
#define SSTVENC_PS_PHASE_DONE   (4)
 
#define SSTVENC_PS_HOLD_TIME_INF   SSTVENC_TS_INFINITE
 

Functions

void sstvenc_ps_reset_samples (struct sstvenc_pulseshape *const ps, uint32_t hold_time)
 
void sstvenc_ps_reset (struct sstvenc_pulseshape *const ps, double hold_time, uint8_t time_unit)
 
void sstvenc_ps_init (struct sstvenc_pulseshape *const ps, double amplitude, double rise_time, double hold_time, double fall_time, uint32_t sample_rate, uint8_t time_unit)
 
void sstvenc_ps_advance (struct sstvenc_pulseshape *const ps)
 
void sstvenc_ps_compute (struct sstvenc_pulseshape *const ps)
 
size_t sstvenc_psosc_fill_buffer (struct sstvenc_pulseshape *const ps, struct sstvenc_oscillator *const osc, double *buffer, size_t buffer_sz)