freqmod

Analog frequency modulation object

Variants: freqmod

Public Functions

freqmod freqmod_create(float _kf)
int freqmod_destroy(freqmod _q)
int freqmod_print(freqmod _q)
int freqmod_reset(freqmod _q)
int freqmod_modulate(freqmod _q, float _m, float complex * _s)
int freqmod_modulate_block(freqmod _q, float * _m, unsigned int _n, float complex * _s)

Interfaces

freqmod freqmod_create(float _kf)

Create freqmod object with a particular modulation factor

  • _kf : modulation factor

int freqmod_destroy(freqmod _q)

Destroy freqmod object, freeing all internal memory

int freqmod_print(freqmod _q)

Print freqmod object internals to stdout

int freqmod_reset(freqmod _q)

Reset state

int freqmod_modulate(freqmod _q, float _m, float complex * _s)

Modulate single sample, producing single output sample at complex baseband.

  • _q : frequency modulator object
  • _m : message signal \( m(t) \)
  • _s : complex baseband signal \( s(t) \)

int freqmod_modulate_block(freqmod _q, float * _m, unsigned int _n, float complex * _s)

Modulate block of samples

  • _q : frequency modulator object
  • _m : message signal \( m(t) \), shape: (_n, 1)
  • _n : number of input, output samples
  • _s : complex baseband signal \( s(t) \), shape: (_n, 1)