spandsp  0.0.6
private/v29rx.h
1 /*
2  * SpanDSP - a series of DSP components for telephony
3  *
4  * private/v29rx.h - ITU V.29 modem receive part
5  *
6  * Written by Steve Underwood <steveu@coppice.org>
7  *
8  * Copyright (C) 2003 Steve Underwood
9  *
10  * All rights reserved.
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License version 2.1,
14  * as published by the Free Software Foundation.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with this program; if not, write to the Free Software
23  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  */
25 
26 #if !defined(_SPANDSP_PRIVATE_V29RX_H_)
27 #define _SPANDSP_PRIVATE_V29RX_H_
28 
29 /* Target length for the equalizer is about 63 taps, to deal with the worst stuff
30  in V.56bis. */
31 /*! The length of the equalizer buffer */
32 #define V29_EQUALIZER_LEN 33
33 /*! Samples before the target position in the equalizer buffer */
34 #define V29_EQUALIZER_PRE_LEN 16
35 
36 /*! The number of taps in the pulse shaping/bandpass filter */
37 #define V29_RX_FILTER_STEPS 27
38 
39 /*!
40  V.29 modem receive side descriptor. This defines the working state for a
41  single instance of a V.29 modem receiver.
42 */
44 {
45  /*! \brief The bit rate of the modem. Valid values are 4800, 7200 and 9600. */
46  int bit_rate;
47  /*! \brief The callback function used to put each bit received. */
49  /*! \brief A user specified opaque pointer passed to the put_bit routine. */
51 
52  /*! \brief The callback function used to report modem status changes. */
54  /*! \brief A user specified opaque pointer passed to the status function. */
56 
57  /*! \brief A callback function which may be enabled to report every symbol's
58  constellation position. */
59  qam_report_handler_t qam_report;
60  /*! \brief A user specified opaque pointer passed to the qam_report callback
61  routine. */
63 
64 #if defined(SPANDSP_USE_FIXED_POINT)
65  /*! \brief The scaling factor accessed by the AGC algorithm. */
66  int16_t agc_scaling;
67  /*! \brief The previous value of agc_scaling, needed to reuse old training. */
68  int16_t agc_scaling_save;
69 
70  /*! \brief The current delta factor for updating the equalizer coefficients. */
71  int16_t eq_delta;
72  /*! \brief The adaptive equalizer coefficients. */
73  complexi16_t eq_coeff[V29_EQUALIZER_LEN];
74  /*! \brief A saved set of adaptive equalizer coefficients for use after restarts. */
75  complexi16_t eq_coeff_save[V29_EQUALIZER_LEN];
76  /*! \brief The equalizer signal buffer. */
77  complexi16_t eq_buf[V29_EQUALIZER_LEN];
78 
79  /*! Low band edge filter for symbol sync. */
80  int32_t symbol_sync_low[2];
81  /*! High band edge filter for symbol sync. */
82  int32_t symbol_sync_high[2];
83  /*! DC filter for symbol sync. */
84  int32_t symbol_sync_dc_filter[2];
85  /*! Baud phase for symbol sync. */
86  int32_t baud_phase;
87 
88  /*! \brief A measure of how much mismatch there is between the real constellation,
89  and the decoded symbol positions. */
90  float training_error;
91 
92  /*! \brief The proportional part of the carrier tracking filter. */
93  int32_t carrier_track_p;
94  /*! \brief The integral part of the carrier tracking filter. */
95  int32_t carrier_track_i;
96  /*! \brief The root raised cosine (RRC) pulse shaping filter buffer. */
97  int16_t rrc_filter[V29_RX_FILTER_STEPS];
98 #else
99  /*! \brief The scaling factor accessed by the AGC algorithm. */
100  float agc_scaling;
101  /*! \brief The previous value of agc_scaling, needed to reuse old training. */
103 
104  /*! \brief The current delta factor for updating the equalizer coefficients. */
105  float eq_delta;
106  /*! \brief The adaptive equalizer coefficients. */
107  complexf_t eq_coeff[V29_EQUALIZER_LEN];
108  /*! \brief A saved set of adaptive equalizer coefficients for use after restarts. */
109  complexf_t eq_coeff_save[V29_EQUALIZER_LEN];
110  /*! \brief The equalizer signal buffer. */
111  complexf_t eq_buf[V29_EQUALIZER_LEN];
112 
113  /*! Low band edge filter for symbol sync. */
114  float symbol_sync_low[2];
115  /*! High band edge filter for symbol sync. */
117  /*! DC filter for symbol sync. */
119  /*! Baud phase for symbol sync. */
120  float baud_phase;
121 
122  /*! \brief A measure of how much mismatch there is between the real constellation,
123  and the decoded symbol positions. */
125 
126  /*! \brief The proportional part of the carrier tracking filter. */
128  /*! \brief The integral part of the carrier tracking filter. */
130  /*! \brief The root raised cosine (RRC) pulse shaping filter buffer. */
131  float rrc_filter[V29_RX_FILTER_STEPS];
132 #endif
133  /*! \brief Current offset into the RRC pulse shaping filter buffer. */
135 
136  /*! \brief The register for the data scrambler. */
137  uint32_t scramble_reg;
138  /*! \brief The register for the training scrambler. */
140  /*! \brief The current step in the table of CD constellation positions. */
142  /*! \brief TRUE if the previous trained values are to be reused. */
144  /*! \brief The section of the training data we are currently in. */
146  /*! \brief A count of how far through the current training step we are. */
148  /*! \brief The value of the last signal sample, using the a simple HPF for signal power estimation. */
149  int16_t last_sample;
150  /*! \brief >0 if a signal above the minimum is present. It may or may not be a V.29 signal. */
152  /*! \brief Whether or not a carrier drop was detected and the signal delivery is pending. */
154  /*! \brief A count of the current consecutive samples below the carrier off threshold. */
156  /*! \brief A highest magnitude sample seen. */
157  int16_t high_sample;
158 
159  /*! \brief The current phase of the carrier (i.e. the DDS parameter). */
160  uint32_t carrier_phase;
161  /*! \brief The update rate for the phase of the carrier (i.e. the DDS increment). */
163  /*! \brief The carrier update rate saved for reuse when using short training. */
165 
166  /*! \brief A power meter, to measure the HPF'ed signal power in the channel. */
168  /*! \brief The power meter level at which carrier on is declared. */
170  /*! \brief The power meter level at which carrier off is declared. */
172 
173  /*! \brief Current read offset into the equalizer buffer. */
174  int eq_step;
175  /*! \brief Current write offset into the equalizer buffer. */
177  /*! \brief Symbol counter to the next equalizer update. */
178  int eq_skip;
179 
180  /*! \brief The current half of the baud. */
182 
183  /*! \brief The total symbol timing correction since the carrier came up.
184  This is only for performance analysis purposes. */
186 
187  /*! \brief Starting phase angles for the coarse carrier aquisition step. */
188  int32_t start_angles[2];
189  /*! \brief History list of phase angles for the coarse carrier aquisition step. */
190  int32_t angles[16];
191 
192  /*! \brief The position of the current symbol in the constellation, used for
193  differential decoding. */
195 
196  /*! \brief Error and flow logging control */
198 };
199 
200 #endif
201 /*- End of file ------------------------------------------------------------*/
v29_rx_state_s::angles
int32_t angles[16]
History list of phase angles for the coarse carrier aquisition step.
Definition: private/v29rx.h:190
v29_rx_set_modem_status_handler
void v29_rx_set_modem_status_handler(v29_rx_state_t *s, modem_status_func_t handler, void *user_data)
Change the modem status report function associated with a V.29 modem receive context.
Definition: v29rx.c:1059
v29_rx_state_s::scramble_reg
uint32_t scramble_reg
The register for the data scrambler.
Definition: private/v29rx.h:137
v29_rx_signal_power
float v29_rx_signal_power(v29_rx_state_t *s)
Definition: v29rx.c:165
dds_advance
void dds_advance(uint32_t *phase_acc, int32_t phase_rate)
Advance the phase, without returning any new signal sample.
Definition: dds_int.c:362
v29_rx_state_s::eq_skip
int eq_skip
Symbol counter to the next equalizer update.
Definition: private/v29rx.h:178
v29_rx_equalizer_state
int v29_rx_equalizer_state(v29_rx_state_t *s, complexf_t **coeffs)
Get a snapshot of the current equalizer coefficients.
Definition: v29rx.c:191
v29_rx_init
v29_rx_state_t * v29_rx_init(v29_rx_state_t *s, int bit_rate, put_bit_func_t put_bit, void *user_data)
Initialise a V.29 modem receive context.
Definition: v29rx.c:1171
one_way_line_model_state_t
Definition: line_model.h:66
v29_rx_state_s::signal_present
int signal_present
>0 if a signal above the minimum is present. It may or may not be a V.29 signal.
Definition: private/v29rx.h:151
v29_rx_set_qam_report_handler
void v29_rx_set_qam_report_handler(v29_rx_state_t *s, qam_report_handler_t handler, void *user_data)
Definition: v29rx.c:1217
v29_rx_state_s::logging
logging_state_t logging
Error and flow logging control.
Definition: private/v29rx.h:197
v29_rx_state_s::agc_scaling
float agc_scaling
The scaling factor accessed by the AGC algorithm.
Definition: private/v29rx.h:100
v29_rx_state_s::constellation_state
int constellation_state
The position of the current symbol in the constellation, used for differential decoding.
Definition: private/v29rx.h:194
cvec_circular_dot_prodi16
complexi32_t cvec_circular_dot_prodi16(const complexi16_t x[], const complexi16_t y[], int n, int pos)
Find the dot product of two complex int16_t vectors, where the first is a circular buffer with an off...
Definition: complex_vector_int.c:83
modem_status_func_t
void(* modem_status_func_t)(void *user_data, int status)
Definition: async.h:114
v29_rx_state_s::bit_rate
int bit_rate
The bit rate of the modem. Valid values are 4800, 7200 and 9600.
Definition: private/v29rx.h:46
complexf_t
Definition: complex.h:42
v29_rx_state_s::eq_coeff
complexf_t eq_coeff[33]
The adaptive equalizer coefficients.
Definition: private/v29rx.h:107
SIG_STATUS_CARRIER_UP
@ SIG_STATUS_CARRIER_UP
The carrier signal is up. This merely indicates that carrier energy has been seen....
Definition: async.h:58
dds_advancef
void dds_advancef(uint32_t *phase_acc, int32_t phase_rate)
Advance the phase, without returning any new signal sample.
Definition: dds_float.c:2133
async.h
power_meter_current_dbm0
float power_meter_current_dbm0(power_meter_t *s)
Get the current power meter reading, in dBm0.
Definition: power_meter.c:120
v29_rx_symbol_timing_correction
float v29_rx_symbol_timing_correction(v29_rx_state_t *s)
Definition: v29rx.c:159
SIG_STATUS_TRAINING_IN_PROGRESS
@ SIG_STATUS_TRAINING_IN_PROGRESS
The modem is training. This is an early indication that the signal seems to be of the right type....
Definition: async.h:63
V29_TRAINING_SEG_2_LEN
#define V29_TRAINING_SEG_2_LEN
Definition: v29rx.c:84
v29_rx_signal_cutoff
void v29_rx_signal_cutoff(v29_rx_state_t *s, float cutoff)
Definition: v29rx.c:171
v29_rx_state_s::eq_delta
float eq_delta
The current delta factor for updating the equalizer coefficients.
Definition: private/v29rx.h:105
dds_phase_ratef
int32_t dds_phase_ratef(float frequency)
Find the phase rate equivalent to a frequency, in Hz.
Definition: dds_float.c:2109
v29_rx_state_s::high_sample
int16_t high_sample
A highest magnitude sample seen.
Definition: private/v29rx.h:157
put_bit_func_t
void(* put_bit_func_t)(void *user_data, int bit)
Definition: async.h:105
v29_rx_state_s::last_sample
int16_t last_sample
The value of the last signal sample, using the a simple HPF for signal power estimation.
Definition: private/v29rx.h:149
power_meter_update
int32_t power_meter_update(power_meter_t *s, int16_t amp)
Update a power meter.
Definition: power_meter.c:84
v29_rx_state_s::put_bit_user_data
void * put_bit_user_data
A user specified opaque pointer passed to the put_bit routine.
Definition: private/v29rx.h:50
vec_circular_dot_prodf
float vec_circular_dot_prodf(const float x[], const float y[], int n, int pos)
Find the dot product of two float vectors, where the first is a circular buffer with an offset for th...
Definition: vector_float.c:852
v29_rx_restart
int v29_rx_restart(v29_rx_state_t *s, int bit_rate, int old_train)
Reinitialise an existing V.29 modem receive context.
Definition: v29rx.c:1072
v29_rx_state_s::put_bit
put_bit_func_t put_bit
The callback function used to put each bit received.
Definition: private/v29rx.h:48
EQUALIZER_DELTA
#define EQUALIZER_DELTA
Definition: v29rx.c:75
v29_rx_state_s::symbol_sync_dc_filter
float symbol_sync_dc_filter[2]
Definition: private/v29rx.h:118
signal_status_to_str
const char * signal_status_to_str(int status)
Convert a signal status to a short text description.
Definition: async.c:42
v29_rx_set_qam_report_handler
void v29_rx_set_qam_report_handler(v29_rx_state_t *s, qam_report_handler_t handler, void *user_data)
Definition: v29rx.c:1217
SPAN_DECLARE_NONSTD
SPAN_DECLARE_NONSTD(int) async_tx_get_bit(void *user_data)
Get the next bit of a transmitted serial bit stream.
bert_state_s
Definition: private/bert.h:60
v29_tx_set_modem_status_handler
void v29_tx_set_modem_status_handler(v29_tx_state_t *s, modem_status_func_t handler, void *user_data)
Change the modem status report function associated with a V.29 modem transmit context.
Definition: v29tx.c:319
v29_rx_state_s::training_error
float training_error
A measure of how much mismatch there is between the real constellation, and the decoded symbol positi...
Definition: private/v29rx.h:124
v29_rx_state_s::status_user_data
void * status_user_data
A user specified opaque pointer passed to the status function.
Definition: private/v29rx.h:55
power_meter_t
Definition: power_meter.h:48
v29_rx_state_s::power
power_meter_t power
A power meter, to measure the HPF'ed signal power in the channel.
Definition: private/v29rx.h:167
complex.h
complexf_t::im
float im
Imaginary part.
Definition: complex.h:47
v29_rx_get_logging_state
logging_state_t * v29_rx_get_logging_state(v29_rx_state_t *s)
Get the logging context associated with a V.29 modem receive context.
Definition: v29rx.c:1066
v29_rx_state_s::old_train
int old_train
TRUE if the previous trained values are to be reused.
Definition: private/v29rx.h:143
v29_rx_state_s::carrier_phase_rate
int32_t carrier_phase_rate
The update rate for the phase of the carrier (i.e. the DDS increment).
Definition: private/v29rx.h:162
v29_rx_set_modem_status_handler
void v29_rx_set_modem_status_handler(v29_rx_state_t *s, modem_status_func_t handler, void *user_data)
Change the modem status report function associated with a V.29 modem receive context.
Definition: v29rx.c:1059
v29_rx_state_s::carrier_phase
uint32_t carrier_phase
The current phase of the carrier (i.e. the DDS parameter).
Definition: private/v29rx.h:160
dds_lookup_complexi16
complexi16_t dds_lookup_complexi16(uint32_t phase)
Generate a complex 16 bit integer tone sample.
Definition: dds_int.c:415
v29_rx_signal_cutoff
void v29_rx_signal_cutoff(v29_rx_state_t *s, float cutoff)
Definition: v29rx.c:171
SIG_STATUS_TRAINING_FAILED
@ SIG_STATUS_TRAINING_FAILED
The modem has failed to train.
Definition: async.h:67
complexi32_t
Definition: complex.h:99
v29_rx_state_s::carrier_track_i
float carrier_track_i
The integral part of the carrier tracking filter.
Definition: private/v29rx.h:129
SIG_STATUS_CARRIER_DOWN
@ SIG_STATUS_CARRIER_DOWN
The carrier signal has dropped.
Definition: async.h:54
v29_rx_release
int v29_rx_release(v29_rx_state_t *s)
Release a V.29 modem receive context.
Definition: v29rx.c:1204
dds_lookup_complexf
complexf_t dds_lookup_complexf(uint32_t phase)
Lookup the complex value of a specified phase.
Definition: dds_float.c:2176
v29_rx_state_s::rrc_filter_step
int rrc_filter_step
Current offset into the RRC pulse shaping filter buffer.
Definition: private/v29rx.h:134
complexi32_t::im
int32_t im
Imaginary part.
Definition: complex.h:104
complexi32_t::re
int32_t re
Real part.
Definition: complex.h:102
vec_circular_dot_prodi16
int32_t vec_circular_dot_prodi16(const int16_t x[], const int16_t y[], int n, int pos)
Find the dot product of two int16_t vectors, where the first is a circular buffer with an offset for ...
Definition: vector_int.c:261
cvec_circular_dot_prodf
complexf_t cvec_circular_dot_prodf(const complexf_t x[], const complexf_t y[], int n, int pos)
Find the dot product of two complex float vectors, where the first is a circular buffer with an offse...
Definition: complex_vector_float.c:173
v29_rx_state_s::start_angles
int32_t start_angles[2]
Starting phase angles for the coarse carrier aquisition step.
Definition: private/v29rx.h:188
v29_rx_state_s::status_handler
modem_status_func_t status_handler
The callback function used to report modem status changes.
Definition: private/v29rx.h:53
v29_rx_state_s::carrier_track_p
float carrier_track_p
The proportional part of the carrier tracking filter.
Definition: private/v29rx.h:127
v29_rx_set_put_bit
void v29_rx_set_put_bit(v29_rx_state_t *s, put_bit_func_t put_bit, void *user_data)
Change the put_bit function associated with a V.29 modem receive context.
Definition: v29rx.c:1052
CARRIER_NOMINAL_FREQ
#define CARRIER_NOMINAL_FREQ
Definition: v29rx.c:71
v29_rx_state_s::training_scramble_reg
uint8_t training_scramble_reg
The register for the training scrambler.
Definition: private/v29rx.h:139
v29_rx_state_s::carrier_phase_rate_save
int32_t carrier_phase_rate_save
The carrier update rate saved for reuse when using short training.
Definition: private/v29rx.h:164
v29_rx_state_s::baud_half
int baud_half
The current half of the baud.
Definition: private/v29rx.h:181
complexi16_t
Definition: complex.h:88
span_log
int span_log(logging_state_t *s, int level, const char *format,...)
Generate a log entry.
Definition: logging.c:84
v29_rx_state_s::eq_buf
complexf_t eq_buf[33]
The equalizer signal buffer.
Definition: private/v29rx.h:111
v29_rx_signal_power
float v29_rx_signal_power(v29_rx_state_t *s)
Definition: v29rx.c:165
v29rx.h
v29_rx_state_s::carrier_on_power
int32_t carrier_on_power
The power meter level at which carrier on is declared.
Definition: private/v29rx.h:169
dds_frequencyf
float dds_frequencyf(int32_t phase_rate)
Find the frequency, in Hz, equivalent to a phase rate.
Definition: dds_float.c:2115
v29_rx_state_s::agc_scaling_save
float agc_scaling_save
The previous value of agc_scaling, needed to reuse old training.
Definition: private/v29rx.h:102
complexi16_t::im
int16_t im
Imaginary part.
Definition: complex.h:93
v29_rx_state_s::eq_coeff_save
complexf_t eq_coeff_save[33]
A saved set of adaptive equalizer coefficients for use after restarts.
Definition: private/v29rx.h:109
v29_tx_init
v29_tx_state_t * v29_tx_init(v29_tx_state_t *s, int bit_rate, int tep, get_bit_func_t get_bit, void *user_data)
Initialise a V.29 modem transmit context.
Definition: v29tx.c:369
spandsp-sim.h
v29_rx_state_s::qam_user_data
void * qam_user_data
A user specified opaque pointer passed to the qam_report callback routine.
Definition: private/v29rx.h:62
v29_rx_restart
int v29_rx_restart(v29_rx_state_t *s, int bit_rate, int old_train)
Reinitialise an existing V.29 modem receive context.
Definition: v29rx.c:1072
v29_rx_state_s::rrc_filter
float rrc_filter[27]
The root raised cosine (RRC) pulse shaping filter buffer.
Definition: private/v29rx.h:131
v29_tx_state_s
Definition: private/v29tx.h:36
v29_rx_carrier_frequency
float v29_rx_carrier_frequency(v29_rx_state_t *s)
Definition: v29rx.c:153
power_meter_level_dbm0
int32_t power_meter_level_dbm0(float level)
Get the current power meter reading, in dBm0.
Definition: power_meter.c:91
v29_rx_state_s::symbol_sync_high
float symbol_sync_high[2]
Definition: private/v29rx.h:116
logging.h
v29_tx_power
void v29_tx_power(v29_tx_state_t *s, float power)
Adjust a V.29 modem transmit context's output power.
Definition: v29tx.c:300
v29_rx_symbol_timing_correction
float v29_rx_symbol_timing_correction(v29_rx_state_t *s)
Definition: v29rx.c:159
v29_rx_get_logging_state
logging_state_t * v29_rx_get_logging_state(v29_rx_state_t *s)
Get the logging context associated with a V.29 modem receive context.
Definition: v29rx.c:1066
v29_rx_state_s::training_cd
int training_cd
The current step in the table of CD constellation positions.
Definition: private/v29rx.h:141
complexf_t::re
float re
Real part.
Definition: complex.h:45
V29_TRAINING_SEG_3_LEN
#define V29_TRAINING_SEG_3_LEN
Definition: v29rx.c:86
v29_rx_state_s
Definition: private/v29rx.h:43
v29_rx_state_s::low_samples
int low_samples
A count of the current consecutive samples below the carrier off threshold.
Definition: private/v29rx.h:155
v29_rx_state_s::eq_put_step
int eq_put_step
Current write offset into the equalizer buffer.
Definition: private/v29rx.h:176
v29_rx_state_s::total_baud_timing_correction
int total_baud_timing_correction
The total symbol timing correction since the carrier came up. This is only for performance analysis p...
Definition: private/v29rx.h:185
v29_rx_state_s::eq_step
int eq_step
Current read offset into the equalizer buffer.
Definition: private/v29rx.h:174
v29_rx_equalizer_state
int v29_rx_equalizer_state(v29_rx_state_t *s, complexf_t **coeffs)
Get a snapshot of the current equalizer coefficients.
Definition: v29rx.c:191
v29_rx_init
v29_rx_state_t * v29_rx_init(v29_rx_state_t *s, int bit_rate, put_bit_func_t put_bit, void *user_data)
Initialise a V.29 modem receive context.
Definition: v29rx.c:1171
complexi16_t::re
int16_t re
Real part.
Definition: complex.h:91
v29_tx_get_logging_state
logging_state_t * v29_tx_get_logging_state(v29_tx_state_t *s)
Get the logging context associated with a V.29 modem transmit context.
Definition: v29tx.c:326
v29_rx_free
int v29_rx_free(v29_rx_state_t *s)
Free a V.29 modem receive context.
Definition: v29rx.c:1210
v29_rx_state_s::qam_report
qam_report_handler_t qam_report
A callback function which may be enabled to report every symbol's constellation position.
Definition: private/v29rx.h:59
arctan2.h
v29_rx_state_s::symbol_sync_low
float symbol_sync_low[2]
Definition: private/v29rx.h:114
power_meter_init
power_meter_t * power_meter_init(power_meter_t *s, int shift)
Initialise a power meter context.
Definition: power_meter.c:50
SIG_STATUS_TRAINING_SUCCEEDED
@ SIG_STATUS_TRAINING_SUCCEEDED
The modem has trained, and is ready for data exchange.
Definition: async.h:65
logging_state_s
Definition: private/logging.h:33
V29_TRAINING_SEG_4_LEN
#define V29_TRAINING_SEG_4_LEN
Definition: v29rx.c:88
v29_rx_state_s::training_count
int training_count
A count of how far through the current training step we are.
Definition: private/v29rx.h:147
v29_rx_state_s::training_stage
int training_stage
The section of the training data we are currently in.
Definition: private/v29rx.h:145
v29_rx_carrier_frequency
float v29_rx_carrier_frequency(v29_rx_state_t *s)
Definition: v29rx.c:153
v29_tx_restart
int v29_tx_restart(v29_tx_state_t *s, int bit_rate, int tep)
Reinitialise an existing V.29 modem transmit context.
Definition: v29tx.c:332
bert_results_t
Definition: bert.h:94
dds.h
v29_rx_state_s::carrier_off_power
int32_t carrier_off_power
The power meter level at which carrier off is declared.
Definition: private/v29rx.h:171
v29_rx_state_s::carrier_drop_pending
int carrier_drop_pending
Whether or not a carrier drop was detected and the signal delivery is pending.
Definition: private/v29rx.h:153
v29_rx_state_s::baud_phase
float baud_phase
Definition: private/v29rx.h:120