msourcecf
Multi-signal source generator object
Public Functions
msourcecf | msourcecf_create( |
msourcecf | msourcecf_copy( |
msourcecf | msourcecf_create_default( |
int | msourcecf_destroy( |
int | msourcecf_print( |
int | msourcecf_reset( |
typedef int (* | msourcecf_callback)( |
int | msourcecf_add_user( |
int | msourcecf_add_tone( |
int | msourcecf_add_chirp( |
int | msourcecf_add_noise( |
int | msourcecf_add_modem( |
int | msourcecf_add_fsk( |
int | msourcecf_add_gmsk( |
int | msourcecf_remove( |
int | msourcecf_enable( |
int | msourcecf_disable( |
unsigned long long int | msourcecf_get_num_samples( |
int | msourcecf_get_num_samples_source( |
int | msourcecf_set_gain( |
int | msourcecf_get_gain( |
int | msourcecf_set_frequency( |
int | msourcecf_get_frequency( |
int | msourcecf_write_samples( |
Interfaces
msourcecf msourcecf_create(
Create msource object by specifying channelizer parameters
- _M : number of channels in analysis channelizer object
- _m : prototype channelizer filter semi-length
- _as : prototype channelizer filter stop-band suppression (dB)
msourcecf msourcecf_copy(
Copy object recursively, including all internal objects and state
msourcecf msourcecf_create_default(
Create default msource object with default parameters: M = 1200, m = 4, as = 60
int msourcecf_destroy(
Destroy msource object
int msourcecf_print(
Print msource object
int msourcecf_reset(
Reset msource object
typedef int (* msourcecf_callback)(
user-defined callback for generating samples
- _userdata :
- _v :
- _n :
int msourcecf_add_user(
Add user-defined signal generator
- _q :
- _fc :
- _bw :
- _gain :
- _userdata :
- _callback :
int msourcecf_add_tone(
Add tone to signal generator, returning id of signal
- _q :
- _fc :
- _bw :
- _gain :
int msourcecf_add_chirp(
Add chirp to signal generator, returning id of signal
- _q : multi-signal source object
- _fc :
- _bw :
- _gain :
- _duration : duration of chirp [samples]
- _negate : negate frequency direction
- _repeat :
int msourcecf_add_noise(
Add noise source to signal generator, returning id of signal
- _q : multi-signal source object
- _fc : ...
- _bw : ...
- _gain :
int msourcecf_add_modem(
Add modem signal source, returning id of signal
- _q : multi-signal source object
- _fc :
- _bw :
- _gain :
- _ms : modulation scheme, e.g. LIQUID_MODEM_QPSK
- _m : filter delay (symbols), 0 < _m
- _beta : filter excess bandwidth, 0 < _beta <= 1
int msourcecf_add_fsk(
Add frequency-shift keying modem signal source, returning id of signal
- _q : multi-signal source object
- _fc :
- _bw :
- _gain :
- _m : bits per symbol, _bps > 0
- _k : samples/symbol, 2^_m <= _k
int msourcecf_add_gmsk(
Add GMSK modem signal source, returning id of signal
- _q : multi-signal source object
- _fc :
- _bw :
- _gain :
- _m : filter delay (symbols), 0 < _m
- _bt : filter bandwidth-time factor, 0 < _bt <= 1
int msourcecf_remove(
Remove signal with a particular id, returning 0 upon success
- _q : multi-signal source object
- _id : signal source id
int msourcecf_enable(
Enable signal source with a particular id
- _q :
- _id :
int msourcecf_disable(
Disable signal source with a particular id
- _q :
- _id :
unsigned long long int msourcecf_get_num_samples(
Get number of samples generated by the object so far
- _q : msource object
int msourcecf_get_num_samples_source(
Get number of samples generated by specific source so far
- _q : msource object
- _id : source id
- _num_samples : pointer to number of samples generated
int msourcecf_set_gain(
Set gain in decibels on signal
- _q : msource object
- _id : source id
- _gain : signal gain [dB]
int msourcecf_get_gain(
Get gain in decibels on signal
- _q : msource object
- _id : source id
- _gain : signal gain output [dB]
int msourcecf_set_frequency(
Set carrier offset to signal
- _q : msource object
- _id : source id
- _dphi :
int msourcecf_get_frequency(
Get carrier offset to signal
- _q : msource object
- _id : source id
- _dphi :
int msourcecf_write_samples(
Write block of samples to output buffer
- _q : synchronizer object
- _buf : output buffer, shape: (_buf_len, 1)
- _buf_len : output buffer size