author | zautrix <zautrix> | 2004-08-07 17:24:40 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-07 17:24:40 (UTC) |
commit | 88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22 (patch) (unidiff) | |
tree | 6331418973714243beb674abc87692277b83869d /gammu/emb/common/protocol/nokia/fbus2.h | |
parent | ef8a09ce74ad3f0a51484d03fdf009bd5b3677bf (diff) | |
download | kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.zip kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.tar.gz kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.tar.bz2 |
Initial revision
Diffstat (limited to 'gammu/emb/common/protocol/nokia/fbus2.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | gammu/emb/common/protocol/nokia/fbus2.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gammu/emb/common/protocol/nokia/fbus2.h b/gammu/emb/common/protocol/nokia/fbus2.h new file mode 100644 index 0000000..5dd45d7 --- a/dev/null +++ b/gammu/emb/common/protocol/nokia/fbus2.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* (c) 2002-2003 by Marcin Wiacek */ | ||
2 | /* based on some work from Gnokii and MyGnokii */ | ||
3 | |||
4 | #ifndef fbus2_h | ||
5 | #define fbus2_h | ||
6 | |||
7 | #include "../protocol.h" | ||
8 | |||
9 | #define FBUS2_FRAME_ID 0x1e | ||
10 | #define FBUS2_IRDA_FRAME_ID 0x1c | ||
11 | #define FBUS2_DEVICE_PHONE 0x00 /* Nokia mobile phone */ | ||
12 | #define FBUS2_DEVICE_PC 0x0c /* Our PC */ | ||
13 | #define FBUS2_ACK_BYTE 0x7f /* Acknowledge of the received frame */ | ||
14 | |||
15 | #define FBUS2_MAX_TRANSMIT_LENGTH 120 | ||
16 | |||
17 | typedef struct { | ||
18 | int MsgSequenceNumber; | ||
19 | int MsgRXState; | ||
20 | int FramesToGo; | ||
21 | GSM_Protocol_MessageMultiMsg; | ||
22 | GSM_Protocol_MessageMsg; | ||
23 | } GSM_Protocol_FBUS2Data; | ||
24 | |||
25 | #ifndef GSM_USED_SERIALDEVICE | ||
26 | # define GSM_USED_SERIALDEVICE | ||
27 | #endif | ||
28 | #if defined(GSM_ENABLE_BLUEFBUS2) | ||
29 | # ifndef GSM_USED_BLUETOOTHDEVICE | ||
30 | # define GSM_USED_BLUETOOTHDEVICE | ||
31 | # endif | ||
32 | #endif | ||
33 | |||
34 | #endif | ||
35 | |||
36 | /* How should editor hadle tabs in this file? Add editor commands here. | ||
37 | * vim: noexpandtab sw=8 ts=8 sts=8: | ||
38 | */ | ||