FreeCalypso > hg > fc-magnetite
comparison src/aci2/aci/line_split_intern.h @ 3:93999a60b835
src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Mon, 26 Sep 2016 00:29:36 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 2:c41a534f33c6 | 3:93999a60b835 |
|---|---|
| 1 /* | |
| 2 +----------------------------------------------------------------------------- | |
| 3 | Project : | |
| 4 | Modul : line edit | |
| 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 : This modul ... | |
| 18 +----------------------------------------------------------------------------- | |
| 19 */ | |
| 20 | |
| 21 #ifndef LINE_SPLIT_INTERN_H | |
| 22 #define LINE_SPLIT_INTERN_H | |
| 23 | |
| 24 #define LEDIT_MAX_CMD_NAME_LEN (17) | |
| 25 #define LEDIT_MAX_S_NAME_LEN (2) | |
| 26 | |
| 27 #define SEARCH_BAT_LEN (0) | |
| 28 #define SEARCH_DIAL_LEN (1) | |
| 29 #define SEARCH_EXT_LEN (2) | |
| 30 | |
| 31 #define BATCMD_NO_SUPP (0) | |
| 32 #define BATCMD_SUPPORT (1) | |
| 33 #define BATCMD_DIAL (2) /* D <---- SPECIAL */ | |
| 34 #define BATCMD_S_PARAM (3) /* S <---- SPECIAL */ | |
| 35 | |
| 36 #define ANDCMD_NO_SUPP (0) | |
| 37 #define ANDCMD_SUPPORT (1) | |
| 38 | |
| 39 | |
| 40 typedef enum | |
| 41 { | |
| 42 LEDIT_CHAR_TERMINATED = 0x00, | |
| 43 LEDIT_CHAR_PERCENT = 0x25, /* '%' */ | |
| 44 LEDIT_CHAR_AND = 0x26, /* '&' */ | |
| 45 LEDIT_CHAR_PLUS = 0x2B, /* '+' */ | |
| 46 LEDIT_CHAR_COMMA = 0x2C, /* ',' */ | |
| 47 LEDIT_CHAR_NUMBER = 0x30, /* '0' symbolic for 0..9 */ | |
| 48 LEDIT_CHAR_SEPARATOR = 0x3B, /* ';' */ | |
| 49 LEDIT_CHAR_SET = 0x3D, /* '=' */ | |
| 50 LEDIT_CHAR_READ = 0x3F, /* '?' */ | |
| 51 LEDIT_CHAR_CHAR = 0x41, /* 'A' symbolic for A..Z*/ | |
| 52 LEDIT_CHAR_EXT = 0x5B, /*'[' symbolic for the rest of characters*/ | |
| 53 LEDIT_CHAR_INVALID = 0xFF | |
| 54 } T_LEDIT_CHAR_TYPE; | |
| 55 | |
| 56 typedef enum | |
| 57 { | |
| 58 LEDIT_BASIC_NAME, /* consists of one char only */ | |
| 59 LEDIT_S_NAME, /* first char must be 'S' and then only digits */ | |
| 60 LEDIT_EXT_NAME /* multi char name */ | |
| 61 } T_LEDIT_NAME_TYPE; | |
| 62 | |
| 63 typedef enum | |
| 64 { | |
| 65 LEDIT_BASIC_PARAM, /* consists of digits only */ | |
| 66 LEDIT_DIAL_PARAM, /* the ending ';' is important to inform about voice or data call */ | |
| 67 LEDIT_EXT_PARAM /* digits ,, "strings" ; */ | |
| 68 } T_LEDIT_PARAM_TYPE; | |
| 69 | |
| 70 EXTERN T_LEDIT_RSLT ledit_split (T_LEDIT_INTERN *leditInt); | |
| 71 EXTERN void ledit_free_cmd (T_LEDIT_INTERN *leditInt); | |
| 72 | |
| 73 #endif |
