28#if !defined(_SPANDSP_T31_H_)
29#define _SPANDSP_T31_H_
45typedef 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)
58SPAN_DECLARE(
void) t31_call_event(
t31_state_t *s,
int event);
60SPAN_DECLARE(
int) t31_at_rx(
t31_state_t *s,
const char *t,
int len);
87SPAN_DECLARE(
int) t31_t38_send_timeout(
t31_state_t *s,
int samples);
113SPAN_DECLARE(
void) t31_set_mode(
t31_state_t *s,
int t38_mode);
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)
SPAN_DECLARE_NONSTD(void) async_rx_put_bit(void *user_data
Accept a bit from a received serial bit stream.
struct logging_state_s logging_state_t
Definition logging.h:75
Definition private/t31.h:137
void t31_set_tep_mode(t31_state_t *s, int use_tep)
Select whether TEP mode will be used.
Definition t31.c:2520
int t31_release(t31_state_t *s)
Release a T.31 context.
Definition t31.c:2693
t31_state_t * t31_init(t31_state_t *s, at_tx_handler_t *at_tx_handler, void *at_tx_user_data, t31_modem_control_handler_t *modem_control_handler, void *modem_control_user_data, t38_tx_packet_handler_t *tx_t38_packet_handler, void *tx_t38_packet_user_data)
Initialise a T.31 context.
Definition t31.c:2605
struct t31_state_s t31_state_t
Definition t31.h:43
void t31_set_t38_config(t31_state_t *s, int without_pacing)
Select whether T.38 data will be paced.
Definition t31.c:2526
void t31_set_transmit_on_idle(t31_state_t *s, int transmit_on_idle)
Select whether silent audio will be sent when transmit is idle.
Definition t31.c:2514
int t31_free(t31_state_t *s)
Release a T.31 context.
Definition t31.c:2700
logging_state_t * t31_get_logging_state(t31_state_t *s)
Get a pointer to the logging context associated with a T.31 context.
Definition t31.c:2560
struct t38_core_state_s t38_core_state_t
Definition t38_core.h:202