28#if !defined(_SPANDSP_V17RX_H_)
29#define _SPANDSP_V17RX_H_
212#if defined(SPANDSP_USE_FIXED_POINT)
213#define V17_CONSTELLATION_SCALING_FACTOR 1024.0
215#define V17_CONSTELLATION_SCALING_FACTOR 1.0
224#if defined(__cplusplus)
303#if defined(SPANDSP_USE_FIXED_POINT)
335#if defined(__cplusplus)
void(* span_modem_status_func_t)(void *user_data, int status)
Definition async.h:131
void(* span_put_bit_func_t)(void *user_data, int bit)
Definition async.h:123
Definition private/logging.h:34
Definition private/v17rx.h:54
span_put_bit_func_t put_bit
The callback function used to put each bit received.
Definition private/v17rx.h:58
power_meter_t power
A power meter, to measure the HPF'ed signal power in the channel.
Definition private/v17rx.h:184
int bit_rate
The bit rate of the modem. Valid values are 7200 9600, 12000 and 14400.
Definition private/v17rx.h:56
bool short_train
True if the short training sequence is to be used.
Definition private/v17rx.h:160
float v17_rx_carrier_frequency(v17_rx_state_t *s)
Definition v17rx.c:177
void v17_rx_set_put_bit(v17_rx_state_t *s, span_put_bit_func_t put_bit, void *user_data)
Change the put_bit function associated with a V.17 modem receive context.
Definition v17rx.c:1440
float v17_rx_signal_power(v17_rx_state_t *s)
Definition v17rx.c:189
logging_state_t * v17_rx_get_logging_state(v17_rx_state_t *s)
Get the logging context associated with a V.17 modem receive context.
Definition v17rx.c:1454
int v17_rx(v17_rx_state_t *s, const int16_t amp[], int len)
Process a block of received V.17 modem audio samples.
Definition v17rx.c:1287
void v17_rx_set_qam_report_handler(v17_rx_state_t *s, qam_report_handler_t handler, void *user_data)
Definition v17rx.c:1638
int v17_rx_restart(v17_rx_state_t *s, int bit_rate, int short_train)
Reinitialise an existing V.17 modem receive context.
Definition v17rx.c:1460
int v17_rx_equalizer_state(v17_rx_state_t *s, complexf_t **coeffs)
Get a snapshot of the current equalizer coefficients.
Definition v17rx.c:216
int v17_rx_free(v17_rx_state_t *s)
Free a V.17 modem receive context.
Definition v17rx.c:1631
int v17_rx_fillin(v17_rx_state_t *s, int len)
Fake processing of a missing block of received V.17 modem audio samples.
Definition v17rx.c:1408
int v17_rx_release(v17_rx_state_t *s)
Release a V.17 modem receive context.
Definition v17rx.c:1625
void v17_rx_set_signal_cutoff(v17_rx_state_t *s, float cutoff)
Definition v17rx.c:195
void v17_rx_set_modem_status_handler(v17_rx_state_t *s, span_modem_status_func_t handler, void *user_data)
Change the modem status report function associated with a V.17 modem receive context.
Definition v17rx.c:1447
v17_rx_state_t * v17_rx_init(v17_rx_state_t *s, int bit_rate, span_put_bit_func_t put_bit, void *user_data)
Initialise a V.17 modem receive context.
Definition v17rx.c:1589
float v17_rx_symbol_timing_correction(v17_rx_state_t *s)
Definition v17rx.c:183