26 #if !defined(_SPANDSP_PRIVATE_T31_H_) 27 #define _SPANDSP_PRIVATE_T31_H_ 40 void *next_tx_user_data;
93 uint8_t buf[T31_T38_MAX_HDLC_LEN];
139 t31_modem_control_handler_t *modem_control_handler;
140 void *modem_control_user_data;
150 uint8_t buf[T31_MAX_HDLC_LEN];
159 uint8_t data[T31_TX_BUF_LEN];
185 int64_t dte_data_timeout;
Definition: private/queue.h:33
int32_t timeout_rx_samples
The current receive timeout.
Definition: private/t31.h:129
int extra_bits
The number of extra bits in a fully stuffed version of the contents of the HDLC transmit buffer...
Definition: private/t31.h:102
int ms_per_tx_chunk
Required time between T.38 transmissions, in ms.
Definition: private/t31.h:67
int in_bytes
The number of bytes stored in transmit buffer.
Definition: private/t31.h:161
int silence_awaited
Samples of silence awaited, as specified in a "wait for silence" command.
Definition: private/t31.h:176
int tx_bit_rate
Current transmission bit rate.
Definition: private/t31.h:123
t38_core_state_t t38
Core T.38 IFP support.
Definition: private/t31.h:72
int32_t next_tx_samples
The value for samples at the next transmission point.
Definition: private/t31.h:127
int out_bytes
The number of bytes sent from the transmit buffer.
Definition: private/t31.h:163
int modem
The currently queued modem type.
Definition: private/t31.h:188
Definition: private/hdlc.h:91
int octets_per_data_packet
The number of octets to send in each image packet (non-ECM or ECM) at the current rate and the curren...
Definition: private/t31.h:82
int current_byte
The current data byte in progress.
Definition: private/t31.h:45
int32_t samples
A "sample" count, used to time events.
Definition: private/t31.h:125
int current_tx_data_type
The current T.38 data type being transmitted.
Definition: private/t31.h:115
Definition: private/t31.h:33
span_tx_handler_t * next_tx_handler
Definition: private/t31.h:39
hdlc_rx_state_t hdlc_rx_term
An HDLC context used when receiving HDLC messages from the terminal port. (ECM mode support)...
Definition: private/t31.h:89
int current_rx_type
The current operating mode of the receiver.
Definition: private/t31.h:118
struct t31_state_s::@61 tx
int bit_rate
The current bit rate for the FAX fast message transfer modem.
Definition: private/t31.h:179
int64_t call_samples
Samples elapsed in the current call.
Definition: private/t31.h:184
power_meter_t rx_power
Rx power meter, used to detect silence.
Definition: private/t31.h:48
int timed_step
The current transmit step being timed.
Definition: private/t31.h:75
struct t31_state_s::@60 hdlc_tx
int holding
TRUE if holding up further data into the buffer, for flow control.
Definition: private/t31.h:167
int current_tx_type
The current operating mode of the transmitter.
Definition: private/t31.h:120
int iaf
Internet Aware FAX mode bit mask.
Definition: private/t31.h:65
int non_ecm_trailer_bytes
Counter for trailing non-ECM bytes, used to flush out the far end's modem.
Definition: private/t31.h:110
Definition: private/fax_modems.h:34
int chunking_modes
Bit fields controlling the way data is packed into chunked for transmission.
Definition: private/t31.h:69
int data_started
TRUE if the flow of real data has started.
Definition: private/t31.h:165
logging_state_t logging
Error and flow logging control.
Definition: private/t31.h:194
int16_t last_sample
Last sample, used for an elementary HPF for the power meter.
Definition: private/t31.h:50
int silence_heard
Samples of silence heard.
Definition: private/t31.h:55
Definition: private/logging.h:33
int rx_data_missing
TRUE is there has been some T.38 data missed.
Definition: private/t31.h:78
int rx_frame_received
TRUE if a valid HDLC frame has been received in the current reception period.
Definition: private/t31.h:181
int bit_no
No of data bits in current_byte.
Definition: private/t31.h:43
hdlc_tx_state_t hdlc_tx_term
An HDLC context used when sending HDLC messages to the terminal port (ECM mode support).
Definition: private/t31.h:86
Definition: private/hdlc.h:32
Definition: power_meter.h:48
Definition: private/t38_core.h:32
int32_t silence_threshold_power
The current silence threshold.
Definition: private/t31.h:52
int next_tx_indicator
The next queued tramsit indicator.
Definition: private/t31.h:113
Definition: private/t31.h:136
int ecm_mode
TRUE if we are using ECM mode. This is used to select HDLC faking, necessary with clunky class 1 mode...
Definition: private/t31.h:107
Definition: private/t31.h:62
Definition: private/at_interpreter.h:44
int short_train
TRUE when short training mode has been selected by the computer.
Definition: private/t31.h:190
int dled
Definition: private/t31.h:173
int t38_mode
Definition: private/t31.h:145