spandsp 3.0.0
private/at_interpreter.h
Go to the documentation of this file.
1/*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * private/at_interpreter.h - AT command interpreter to V.251, V.252, V.253, T.31 and the 3GPP specs.
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2004, 2005, 2006 Steve Underwood
9 *
10 * All rights reserved.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 2.1,
14 * as published by the Free Software Foundation.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 */
25
26/*! \file */
27
28#if !defined(_SPANDSP_PRIVATE_AT_INTERPRETER_H_)
29#define _SPANDSP_PRIVATE_AT_INTERPRETER_H_
30
31typedef struct at_call_id_s at_call_id_t;
32
34{
35 char *id;
36 char *value;
37 at_call_id_t *next;
38};
39
40/*!
41 AT descriptor. This defines the working state for a single instance of
42 the AT interpreter.
43*/
45{
47 /*! Value set by +GCI */
49 /*! Value set by +FIT */
51 /*! Value set by +FIT */
53 /*! Value set by L */
55 /*! Value set by M */
57 /*! This is no real DTE rate. This variable is for compatibility this serially
58 connected modems. */
59 /*! Value set by +IPR/+FPR */
61 /*! Value set by +ICF */
63 /*! Value set by +ICF */
65 /*! Value set by &C */
67 /*! Value set by &D */
69 /*! Value set by +FCL */
71 /*! Value set by X */
73 /*! Value set by +IDSR */
75 /*! Value set by +ILSD */
77 /*! Value set by +ICLOK */
79 /*! Value set by +EWIND */
81 /*! Value set by +EWIND */
83
84 int v8bis_signal;
85 int v8bis_1st_message;
86 int v8bis_2nd_message;
87 int v8bis_sig_en;
88 int v8bis_msg_en;
89 int v8bis_supp_delay;
90
91 uint8_t rx_data[256];
92 int rx_data_bytes;
93
94 int dte_dce_flow_control;
95 int dce_dte_flow_control;
96 int display_call_info;
97 int call_info_displayed;
98 at_call_id_t *call_id;
99 char *local_id;
100 /*! The currently select FAX modem class. 0 = data modem mode. */
102 int at_rx_mode;
103 int rings_indicated;
104 int do_hangup;
105 int silent_dial;
106 int command_dial;
107 int ok_is_pending;
108 int dte_is_waiting;
109 /*! \brief True if a carrier is present. */
111 /*! \brief True if a modem has trained. */
113 int transmit;
114
115 char line[256];
116 int line_ptr;
117
118 at_modem_control_handler_t modem_control_handler;
119 void *modem_control_user_data;
120 at_tx_handler_t at_tx_handler;
121 void *at_tx_user_data;
122 at_class1_handler_t class1_handler;
123 void *class1_user_data;
124
125 /*! \brief Error and flow logging control */
127};
128
129#endif
130/*- End of file ------------------------------------------------------------*/
struct logging_state_s logging_state_t
Definition logging.h:72
Definition private/at_interpreter.h:34
Definition at_interpreter.h:117
Definition private/at_interpreter.h:45
int dte_char_format
Definition private/at_interpreter.h:62
int country_of_installation
Definition private/at_interpreter.h:48
int carrier_loss_timeout
Definition private/at_interpreter.h:70
logging_state_t logging
Error and flow logging control.
Definition private/at_interpreter.h:126
int speaker_volume
Definition private/at_interpreter.h:54
int dte_inactivity_action
Definition private/at_interpreter.h:52
int fclass_mode
Definition private/at_interpreter.h:101
int rlsd_behaviour
Definition private/at_interpreter.h:66
bool rx_signal_present
True if a carrier is present.
Definition private/at_interpreter.h:110
int dtr_behaviour
Definition private/at_interpreter.h:68
int rx_window
Definition private/at_interpreter.h:80
int dte_rate
Definition private/at_interpreter.h:60
int speaker_mode
Definition private/at_interpreter.h:56
int sync_tx_clock_source
Definition private/at_interpreter.h:78
int tx_window
Definition private/at_interpreter.h:82
int result_code_mode
Definition private/at_interpreter.h:72
int dte_inactivity_timeout
Definition private/at_interpreter.h:50
int long_space_disconnect_option
Definition private/at_interpreter.h:76
int dte_parity
Definition private/at_interpreter.h:64
bool rx_trained
True if a modem has trained.
Definition private/at_interpreter.h:112
int dsr_option
Definition private/at_interpreter.h:74