FreeCalypso > hg > ffs-editor
comparison src/cs/services/atp/Bti_at.h @ 0:92470e5d0b9e
src: partial import from FC Selenite
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 15 May 2020 01:28:16 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:92470e5d0b9e |
|---|---|
| 1 /******************************************************************************* | |
| 2 * | |
| 3 * File Name : bti_at.h | |
| 4 * | |
| 5 * Common definition used by GSM PS and BT PS | |
| 6 * | |
| 7 * (C) Texas Instruments, all rights reserved | |
| 8 * | |
| 9 * Version number : 0.1 Date : 02-Jan-2001 | |
| 10 * | |
| 11 ******************************************************************************/ | |
| 12 | |
| 13 | |
| 14 #ifndef BTI_AT_H | |
| 15 #define BTI_AT_H | |
| 16 | |
| 17 | |
| 18 | |
| 19 /* Acknowledgment */ | |
| 20 typedef enum | |
| 21 { | |
| 22 BTI_NAK = 0, /* failure */ | |
| 23 BTI_ACK = 1 /* success */ | |
| 24 }T_BTI_ACK; | |
| 25 | |
| 26 /* Port Number */ | |
| 27 typedef unsigned char T_BTI_PORT_NB; | |
| 28 | |
| 29 /* Custom information provided by GSM when opening a port */ | |
| 30 typedef struct | |
| 31 { | |
| 32 unsigned long optimal_gsm_max_packet_size; | |
| 33 // GSM indicates in this parameter the best maximum packet size that should be used by BT | |
| 34 // 0 means do not care | |
| 35 } T_BTI_GSM_PORT_INFO; // Information provided by GSM related to the port | |
| 36 | |
| 37 | |
| 38 /* Custom information provided by BT when opening a port */ | |
| 39 typedef struct | |
| 40 { | |
| 41 unsigned long optimal_bt_max_packet_size; | |
| 42 // BT indicates in this parameter the best maximum packet size that should be used by GSM | |
| 43 // 0 means do not care | |
| 44 } T_BTI_BT_PORT_INFO; // Information provided by BT related to the port | |
| 45 | |
| 46 /* Ring type */ | |
| 47 typedef enum | |
| 48 { | |
| 49 BTI_AT_RING_NotPresent, /* no bearer cap available */ | |
| 50 BTI_AT_RING_Async, /* transparent data */ | |
| 51 BTI_AT_RING_Sync, /* currently not used */ | |
| 52 BTI_AT_RING_RelAsync, /* non transparent data */ | |
| 53 BTI_AT_RING_RelSync, /* currently not used */ | |
| 54 BTI_AT_RING_Fax, | |
| 55 BTI_AT_RING_Voice, | |
| 56 BTI_AT_RING_AuxVoice, | |
| 57 BTI_AT_RING_GPRS | |
| 58 }T_BTI_AT_RING_TYPE; | |
| 59 | |
| 60 /* Line status information from DCE (ie GSM) */ | |
| 61 typedef unsigned char T_BTI_AT_DCE_SIGNAL; | |
| 62 #define BTI_AT_RING_OFF (0) | |
| 63 #define BTI_AT_RING_ON (1) | |
| 64 #define BTI_AT_RING_MASK (1) | |
| 65 #define BTI_AT_DCD_OFF (0) | |
| 66 #define BTI_AT_DCD_ON (2) | |
| 67 #define BTI_AT_DCD_MASK (2) | |
| 68 | |
| 69 #endif |
