28 #if !defined(_SPANDSP_T31_H_)
29 #define _SPANDSP_T31_H_
45 typedef int (t31_modem_control_handler_t)(
t31_state_t *s,
void *user_data,
int op,
const char *num);
47 #define T31_TX_BUF_LEN (4096)
48 #define T31_TX_BUF_HIGH_TIDE (4096 - 1024)
49 #define T31_TX_BUF_LOW_TIDE (1024)
50 #define T31_MAX_HDLC_LEN 284
51 #define T31_T38_MAX_HDLC_LEN 260
53 #if defined(__cplusplus)
58 SPAN_DECLARE(
void) t31_call_event(
t31_state_t *s,
int event);
60 SPAN_DECLARE(
int) t31_at_rx(
t31_state_t *s, const
char *t,
int len);
87 SPAN_DECLARE(
int) t31_t38_send_timeout(
t31_state_t *s,
int samples);
136 at_tx_handler_t *at_tx_handler,
137 void *at_tx_user_data,
138 t31_modem_control_handler_t *modem_control_handler,
139 void *modem_control_user_data,
140 t38_tx_packet_handler_t *tx_t38_packet_handler,
141 void *tx_t38_packet_user_data);
155 #if defined(__cplusplus)