comparison g23m/condat/ms/src/aci/aci_io.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
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
63 EXTERN void io_sendIndication (
64 UBYTE srcId,
65 char *a,
66 T_ATI_OUTPUT_TYPE output_type
67 );
68
69
70 EXTERN void io_sendConfirm (
71 UBYTE srcId,
72 char *a,
73 T_ATI_OUTPUT_TYPE output_type
74 );
75
76 EXTERN BOOL check_should_buffer_ind( T_ATI_SRC_PARAMS *src_params );
77 EXTERN void send_buffered_indication( T_ATI_SRC_PARAMS *src_params );
78
79 EXTERN void io_setRngInd (T_IO_RING_STAT state, T_ACI_CRING_TYP bt1, T_ACI_CRING_TYP bt2);
80
81 EXTERN void io_setDCD (T_ACI_CMD_SRC src_id, T_IO_DCD_STAT state);
82
83 EXTERN void io_setCommandState(T_ATI_SRC_PARAMS *src_params, T_ATI_LINE_STATE_TYPE line_state_type);
84
85 #endif