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/protocol.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/protocol.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | gammu/emb/common/protocol/protocol.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gammu/emb/common/protocol/protocol.h b/gammu/emb/common/protocol/protocol.h new file mode 100644 index 0000000..f8e1fe5 --- a/dev/null +++ b/gammu/emb/common/protocol/protocol.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* (c) 2002-2003 by Marcin Wiacek */ | ||
2 | |||
3 | #ifndef protocol_common_h | ||
4 | #define protocol_common_h | ||
5 | |||
6 | typedef enum { | ||
7 | RX_Sync, | ||
8 | RX_GetDestination, | ||
9 | RX_GetSource, | ||
10 | RX_GetType, | ||
11 | RX_GetLength1, | ||
12 | RX_GetLength2, | ||
13 | RX_GetMessage | ||
14 | } GSM_Protocol_RXState; | ||
15 | |||
16 | typedef struct { | ||
17 | int Length; | ||
18 | int Count; | ||
19 | unsigned char Type; | ||
20 | unsigned char Source; | ||
21 | unsigned char Destination; | ||
22 | unsigned char*Buffer; | ||
23 | int BufferUsed; | ||
24 | unsigned char CheckSum[2]; | ||
25 | } GSM_Protocol_Message; | ||
26 | |||
27 | #endif | ||
28 | |||
29 | /* How should editor hadle tabs in this file? Add editor commands here. | ||
30 | * vim: noexpandtab sw=8 ts=8 sts=8: | ||
31 | */ | ||