26 #if !defined(_SPANDSP_PRIVATE_V29TX_H_)
27 #define _SPANDSP_PRIVATE_V29TX_H_
30 #define V29_TX_FILTER_STEPS 9
50 #if defined(SPANDSP_USE_FIXED_POINT)
get_bit_func_t current_get_bit
The get_bit function in use at any instant.
Definition: private/v29tx.h:94
modem_status_func_t status_handler
The callback function used to report modem status changes.
Definition: private/v29tx.h:46
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
void * get_bit_user_data
A user specified opaque pointer passed to the get_bit function.
Definition: private/v29tx.h:43
int baud_phase
The current fractional phase of the baud timing.
Definition: private/v29tx.h:90
complexf_t rrc_filter[2 *9]
The root raised cosine (RRC) pulse shaping filter buffer.
Definition: private/v29tx.h:67
void(* modem_status_func_t)(void *user_data, int status)
Definition: async.h:114
#define V29_TRAINING_SEG_4
Definition: v29tx.c:81
int bit_rate
The bit rate of the modem. Valid values are 4800, 7200 and 9600.
Definition: private/v29rx.h:46
void * status_user_data
A user specified opaque pointer passed to the status function.
Definition: private/v29tx.h:48
int v29_tx_free(v29_tx_state_t *s)
Free a V.29 modem transmit context.
Definition: v29tx.c:403
float base_gain
Gain required to achieve the specified output power, not allowing for the size of the current constel...
Definition: private/v29tx.h:62
complexf_t dds_complexf(uint32_t *phase_acc, int32_t phase_rate)
Generate a complex floating point tone sample.
Definition: dds_float.c:2165
SPAN_DECLARE_NONSTD(int) async_tx_get_bit(void *user_data)
Get the next bit of a transmitted serial bit stream.
power_meter_t power
A power meter, to measure the HPF'ed signal power in the channel.
Definition: private/v29rx.h:167
float im
Imaginary part.
Definition: complex.h:47
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
int in_training
TRUE if transmitting the training sequence, or shutting down transmission. FALSE if transmitting user...
Definition: private/v29tx.h:78
uint8_t training_scramble_reg
The register for the training scrambler.
Definition: private/v29tx.h:75
#define V29_TRAINING_END
Definition: v29tx.c:83
@ SIG_STATUS_SHUTDOWN_COMPLETE
A modem has completed its task, and shut down.
Definition: async.h:77
int(* get_bit_func_t)(void *user_data)
Definition: async.h:108
int rrc_filter_step
Current offset into the RRC pulse shaping filter buffer.
Definition: private/v29tx.h:70
float gain
Gain required to achieve the specified output power, allowing for the size of the current constellati...
Definition: private/v29tx.h:65
#define V29_TRAINING_SEG_3
Definition: v29tx.c:79
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
#define V29_TRAINING_SEG_1
Definition: v29tx.c:75
#define CARRIER_NOMINAL_FREQ
Definition: v29tx.c:69
#define V29_TRAINING_SEG_2
Definition: v29tx.c:77
int span_log(logging_state_t *s, int level, const char *format,...)
Generate a log entry.
Definition: logging.c:84
int bit_rate
The bit rate of the modem. Valid values are 4800, 7200 and 9600.
Definition: private/v29tx.h:39
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
#define V29_TRAINING_SHUTDOWN_END
Definition: v29tx.c:85
logging_state_t logging
Error and flow logging control.
Definition: private/v29tx.h:96
Definition: private/v29tx.h:36
void v29_tx_set_get_bit(v29_tx_state_t *s, get_bit_func_t get_bit, void *user_data)
Change the get_bit function associated with a V.29 modem transmit context.
Definition: v29tx.c:310
float re
Real part.
Definition: complex.h:45
int32_t carrier_phase_rate
The update rate for the phase of the carrier (i.e. the DDS increment).
Definition: private/v29tx.h:88
uint32_t scramble_reg
The register for the data scrambler.
Definition: private/v29tx.h:73
int training_offset
An offset value into the table of training parameters, used to match the training pattern to the bit ...
Definition: private/v29tx.h:83
get_bit_func_t get_bit
The callback function used to get the next bit to be transmitted.
Definition: private/v29tx.h:41
Definition: private/logging.h:33
int v29_tx_release(v29_tx_state_t *s)
Release a V.29 modem transmit context.
Definition: v29tx.c:397
int training_step
A counter used to track progress through sending the training sequence.
Definition: private/v29tx.h:80
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
@ SIG_STATUS_END_OF_DATA
The data stream has ended.
Definition: async.h:71
complexi_t dds_complexi(uint32_t *phase_acc, int32_t phase_rate)
Generate a complex integer tone sample.
Definition: dds_int.c:394
#define V29_TRAINING_SEG_TEP
Definition: v29tx.c:73
uint32_t carrier_phase
The current phase of the carrier (i.e. the DDS parameter).
Definition: private/v29tx.h:86
int constellation_state
The code number for the current position in the constellation.
Definition: private/v29tx.h:92