comparison gsm-fw/g23m-aci/aci/aci_io.h @ 775:eedbf248bac0

gsm-fw/g23m-aci subtree: initial import from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Oct 2014 01:45:14 +0000
parents
children
comparison
equal deleted inserted replaced
774:40a721fd9854 775:eedbf248bac0
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-F&D (8411)
4 | Modul : ACI_CMD
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Definitions for the AT Command Interpreter
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef ACI_IO_H
22 #define ACI_IO_H
23
24
25 typedef enum {
26 IO_DCD_OFF = 0,
27 IO_DCD_ON
28 } T_IO_DCD_STAT;
29
30 typedef enum {
31 IO_RING_OFF = 0,
32 IO_RING_ON
33 } T_IO_RING_STAT;
34
35 typedef enum{
36 ESC_DETECTION_OFF=0,
37 ESC_DETECTION_ON
38 } T_IO_ESC_STAT;
39
40 typedef struct {
41 T_IO_RING_STAT ring_stat;
42 UBYTE b_cap_1;
43 UBYTE b_cap_2;
44 } T_IO_RING_PARAMS;
45
46
47 EXTERN void io_sendBreak (
48 USHORT brk_len
49 );
50
51 EXTERN void io_sendMessage (
52 UBYTE srcId,
53 char *a,
54 T_ATI_OUTPUT_TYPE output_type
55 );
56
57 EXTERN void io_sendMessageEx (
58 UBYTE srcId,
59 char *a,
60 T_ATI_OUTPUT_TYPE output_type
61 );
62 #ifndef LOCOSTO_LITE_2_54_COMPILER_ERROR
63 EXTERN void io_sendIndication (
64 UBYTE srcId,
65 char *a,
66 T_ATI_OUTPUT_TYPE output_type
67 );
68 #endif
69
70
71 EXTERN void io_sendConfirm (
72 UBYTE srcId,
73 char *a,
74 T_ATI_OUTPUT_TYPE output_type
75 );
76
77 EXTERN BOOL check_should_buffer_ind( T_ATI_SRC_PARAMS *src_params );
78 EXTERN void send_buffered_indication( T_ATI_SRC_PARAMS *src_params );
79
80 EXTERN void io_setRngInd (T_IO_RING_STAT state, T_ACI_CRING_SERV_TYP bt1, T_ACI_CRING_SERV_TYP bt2);
81
82 EXTERN void io_setDCD (T_ACI_CMD_SRC src_id, T_IO_DCD_STAT state);
83
84 EXTERN void io_setCommandState(T_ATI_SRC_PARAMS *src_params, T_ATI_LINE_STATE_TYPE line_state_type);
85
86 #endif