28 #if !defined(_SPANDSP_PRIVATE_T30_H_)
29 #define _SPANDSP_PRIVATE_T30_H_
int far_dis_dtc_len
The length of the last DIS or DTC message received form the far end.
Definition: private/t30.h:156
int timer_t2_t4
T2, T2A and T2B are the HDLC command timeouts. T4, T4A and T4B are the HDLC response timeouts (in aud...
Definition: private/t30.h:194
uint8_t next_rx_step
The FCF for the next receive step.
Definition: private/t30.h:263
uint8_t dcs_frame[T30_MAX_DIS_DTC_DCS_LEN]
The preparation buffer for the DCS message to be transmitted.
Definition: private/t30.h:146
int remote_interrupts_allowed
TRUE if remote T.30 procedural interrupts are allowed.
Definition: private/t30.h:77
int supported_compressions
A bit mask of the currently supported image compression modes.
Definition: private/t30.h:54
t30_document_handler_t * document_handler
A pointer to a callback routine to be called when document events (e.g. end of transmitted document) ...
Definition: private/t30.h:113
const char * model
The model of the remote machine, if known, else NULL.
Definition: private/t30.h:88
char tx_file[256]
Image file name to be sent.
Definition: private/t30.h:269
int output_encoding
The image coding being used for output files.
Definition: private/t30.h:216
void * send_hdlc_user_data
An opaque pointer passed to the transmitted HDLC frame handler.
Definition: private/t30.h:129
int timer_t0_t1
T0 is the answer timeout when calling another FAX machine. Placing calls is handled outside the FAX p...
Definition: private/t30.h:191
int current_fallback
The current fallback step for the fast message transfer modem.
Definition: private/t30.h:172
char header_info[T30_MAX_PAGE_HEADER_INFO+1]
The text which will be used in FAX page header. No text results in no header line.
Definition: private/t30.h:71
int calling_party
TRUE if behaving as the calling party.
Definition: private/t30.h:47
int rx_stop_page
The last page we are prepared accept for a received image file. -1 means no restriction.
Definition: private/t30.h:267
int tx_page_number
The current page number for sending, in ECM or non-ECM mode. This is reset at the start of a call...
Definition: private/t30.h:247
Definition: private/t30.h:35
uint8_t min_scan_time_code
The current DCS message minimum scan time code.
Definition: private/t30.h:218
uint8_t ecm_data[256][260]
The ECM partial page buffer.
Definition: private/t30.h:238
void * real_time_frame_user_data
An opaque pointer supplied in real time frame callbacks.
Definition: private/t30.h:109
int ecm_frames
The number of frames in the current block number, in ECM mode.
Definition: private/t30.h:251
int next_tx_step
The transmission step queued to follow the one in progress.
Definition: private/t30.h:261
int16_t ecm_len[256]
The lengths of the frames in the ECM partial page buffer.
Definition: private/t30.h:240
t4_image_width_t image_width
The width of the current image, in pixels.
Definition: private/t30.h:224
int tx_stop_page
The last page to be sent from the image file. -1 means no restriction.
Definition: private/t30.h:273
int header_overlays_image
TRUE for FAX page headers to overlay (i.e. replace) the beginning of the page image. FALSE for FAX page headers to add to the overall length of the page.
Definition: private/t30.h:75
int supported_resolutions
A bit mask of the currently supported image resolutions.
Definition: private/t30.h:56
int rtp_events
The number of RTP events.
Definition: private/t30.h:278
uint8_t far_dis_dtc_frame[T30_MAX_DIS_DTC_DCS_LEN]
The last DIS or DTC message received form the far end.
Definition: private/t30.h:154
int timer_t7
This is only used in full duplex (e.g. ISDN) modes.
Definition: private/t30.h:204
t30_phase_e_handler_t * phase_e_handler
A pointer to a callback routine to be called when phase E events occur.
Definition: private/t30.h:102
int tcf_test_bits
A count of the number of bits in the trainability test. This counts down to zero when sending TCF...
Definition: private/t30.h:165
int ecm_block
The current block number, in ECM mode.
Definition: private/t30.h:249
int line_encoding
The image coding being used on the line.
Definition: private/t30.h:214
int short_train
TRUE if the short training sequence should be used.
Definition: private/t30.h:161
int timer_t6
This is only used in full duplex (e.g. ISDN) modes.
Definition: private/t30.h:202
int local_dis_dtc_len
The length of the DIS or DTC message to be transmitted.
Definition: private/t30.h:152
char rx_dcs_string[T30_MAX_DIS_DTC_DCS_LEN *3+1]
The received DCS, formatted as an ASCII string, for inclusion in the TIFF file.
Definition: private/t30.h:68
int rx_ecm_block_ok
TRUE if all frames of the current received ECM block are now OK.
Definition: private/t30.h:285
int local_interrupt_pending
TRUE if a local T.30 interrupt is pending.
Definition: private/t30.h:212
t30_set_handler_t * set_tx_type_handler
The handler for changes to the transmit mode.
Definition: private/t30.h:122
int y_resolution
The Y direction resolution of the current image, in pixels per metre.
Definition: private/t30.h:222
int rx_trained
TRUE if a modem has trained correctly.
Definition: private/t30.h:178
#define T30_MAX_DIS_DTC_DCS_LEN
Definition: t30.h:142
t30_real_time_frame_handler_t * real_time_frame_handler
A pointer to a callback routine to be called when frames are exchanged.
Definition: private/t30.h:107
uint8_t local_dis_dtc_frame[T30_MAX_DIS_DTC_DCS_LEN]
The preparation buffer for DIS or DTC message to be transmitted.
Definition: private/t30.h:150
int rtn_events
The number of RTN events.
Definition: private/t30.h:280
t30_exchanged_info_t rx_info
The information fields received.
Definition: private/t30.h:80
int current_status
The current completion status.
Definition: private/t30.h:275
logging_state_t logging
Error and flow logging control.
Definition: private/t30.h:291
int current_permitted_modems
The subset of supported modems allowed at the current time, allowing for negotiation.
Definition: private/t30.h:174
void( t30_send_hdlc_handler_t)(void *user_data, const uint8_t msg[], int len)
T.30 send HDLC handler.
Definition: t30.h:224
int current_rx_type
Current reception mode.
Definition: private/t30.h:183
char rx_file[256]
Image file name for image reception.
Definition: private/t30.h:265
t30_phase_d_handler_t * phase_d_handler
A pointer to a callback routine to be called when phase D events occur.
Definition: private/t30.h:97
int octets_per_ecm_frame
The number of octets to be used per ECM frame.
Definition: private/t30.h:236
void * set_rx_type_user_data
An opaque pointer passed to the handler for changes to the receive mode.
Definition: private/t30.h:120
int error_correcting_mode_retries
The number of HDLC frame retries, if error correcting mode is used.
Definition: private/t30.h:230
int operation_in_progress
The type of FAX operation currently in progress.
Definition: private/t30.h:44
int supported_modems
A bit mask of the currently supported modem types.
Definition: private/t30.h:52
int current_tx_type
Current transmission mode.
Definition: private/t30.h:185
int( t30_phase_b_handler_t)(t30_state_t *s, void *user_data, int result)
T.30 phase B callback handler.
Definition: t30.h:161
int step
The step in sending a sequence of HDLC frames.
Definition: private/t30.h:143
int ppr_count
The current count of consecutive T30_PPR messages.
Definition: private/t30.h:232
int phase
The current T.30 phase.
Definition: private/t30.h:137
void( t30_set_handler_t)(void *user_data, int type, int bit_rate, int short_train, int use_hdlc)
T.30 set a receive or transmit type handler.
Definition: t30.h:215
void * phase_e_user_data
An opaque pointer supplied in event E callbacks.
Definition: private/t30.h:104
#define T30_MAX_PAGE_HEADER_INFO
Definition: t30.h:146
int rx_signal_present
TRUE if a carrier is present. Otherwise FALSE.
Definition: private/t30.h:176
void * phase_b_user_data
An opaque pointer supplied in event B callbacks.
Definition: private/t30.h:94
int far_end_detected
TRUE once the far end FAX entity has been detected.
Definition: private/t30.h:209
t4_image_width_t
Definition: t4_rx.h:110
int retries
Current number of retries of the action in progress.
Definition: private/t30.h:226
int ecm_allowed
TRUE is ECM mode handling is enabled.
Definition: private/t30.h:62
void( t30_real_time_frame_handler_t)(t30_state_t *s, void *user_data, int direction, const uint8_t msg[], int len)
T.30 real time frame handler.
Definition: t30.h:191
void( t30_phase_e_handler_t)(t30_state_t *s, void *user_data, int completion_code)
T.30 phase E callback handler.
Definition: t30.h:180
void * phase_d_user_data
An opaque pointer supplied in event D callbacks.
Definition: private/t30.h:99
int x_resolution
The X direction resolution of the current image, in pixels per metre.
Definition: private/t30.h:220
int next_phase
The T.30 phase to change to when the current phase ends.
Definition: private/t30.h:139
void * set_tx_type_user_data
An opaque pointer passed to the handler for changes to the transmit mode.
Definition: private/t30.h:124
int ecm_at_page_end
TRUE if we are at the end of an ECM page to se sent - i.e. there are no more partial pages still to c...
Definition: private/t30.h:258
int( t30_phase_d_handler_t)(t30_state_t *s, void *user_data, int result)
T.30 phase D callback handler.
Definition: t30.h:171
int( t30_document_handler_t)(t30_state_t *s, void *user_data, int status)
T.30 document handler.
Definition: t30.h:204
Definition: private/logging.h:33
const char * country
The country of origin of the remote machine, if known, else NULL.
Definition: private/t30.h:84
int dcs_len
The length of the DCS message to be transmitted.
Definition: private/t30.h:148
int rx_page_number
The current page number for receiving, in ECM or non-ECM mode. This is reset at the start of a call...
Definition: private/t30.h:245
int timer_t5
This is only used in error correcting mode.
Definition: private/t30.h:200
uint8_t local_min_scan_time_code
The DIS code for the minimum scan row time we require. This is usually 0ms, but if we are trying to s...
Definition: private/t30.h:134
uint8_t ecm_frame_map[3+32]
A bit map of the OK ECM frames, constructed as a PPR frame.
Definition: private/t30.h:242
t30_send_hdlc_handler_t * send_hdlc_handler
The transmitted HDLC frame handler.
Definition: private/t30.h:127
int timer_t3
Procedural interrupt timeout (in audio samples).
Definition: private/t30.h:198
uint8_t last_pps_fcf2
the FCF2 field of the last PPS message we received.
Definition: private/t30.h:283
int timer_t2_t4_is
A value specifying which of the possible timers is currently running in timer_t2_t4.
Definition: private/t30.h:196
t30_phase_b_handler_t * phase_b_handler
A pointer to a callback routine to be called when phase B events occur.
Definition: private/t30.h:92
t30_set_handler_t * set_rx_type_handler
The handler for changes to the receive mode.
Definition: private/t30.h:118
int error_correcting_mode
TRUE if error correcting mode is used.
Definition: private/t30.h:228
int supported_t30_features
A bit mask of the currently supported T.30 special features.
Definition: private/t30.h:60
int ecm_current_tx_frame
The current ECM frame, during ECM transmission.
Definition: private/t30.h:255
int ecm_frames_this_tx_burst
The number of frames sent in the current burst of image transmission, in ECM mode.
Definition: private/t30.h:253
union t30_state_s::@52 t4
T.4 context for reading or writing image data.
int iaf
Internet aware FAX mode bit mask.
Definition: private/t30.h:50
const char * vendor
The vendor of the remote machine, if known, else NULL.
Definition: private/t30.h:86
int tcf_most_zeros
The maximum consecutive received zero bits seen to date, during the trainability test.
Definition: private/t30.h:169
int ecm_progress
A count of successfully received ECM frames, to assess progress as a basis for deciding whether to co...
Definition: private/t30.h:288
int rx_frame_received
TRUE if a valid HDLC frame has been received in the current reception period.
Definition: private/t30.h:180
int supported_image_sizes
A bit mask of the currently supported image sizes.
Definition: private/t30.h:58
int dis_received
TRUE if a valid DIS has been received from the far end.
Definition: private/t30.h:158
Definition: private/t4_tx.h:33
void * document_user_data
An opaque pointer supplied in document callbacks.
Definition: private/t30.h:115
int receiver_not_ready_count
The current count of consecutive T30_RNR messages.
Definition: private/t30.h:234
int retransmit_capable
TRUE if we are capable of retransmitting pages.
Definition: private/t30.h:64
t30_exchanged_info_t tx_info
The information fields to be transmitted.
Definition: private/t30.h:82
int tx_start_page
The first page to be sent from the image file. -1 means no restriction.
Definition: private/t30.h:271
int timer_t8
This is only used in full duplex (e.g. ISDN) modes.
Definition: private/t30.h:206
int state
The current state of the T.30 state machine.
Definition: private/t30.h:141
int tcf_current_zeros
The current count of consecutive received zero bits, during the trainability test.
Definition: private/t30.h:167