summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/protocol/protocol.h
Unidiff
Diffstat (limited to 'gammu/emb/common/protocol/protocol.h') (more/less context) (show whitespace changes)
-rw-r--r--gammu/emb/common/protocol/protocol.h31
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
6typedef 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
16typedef 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 */