summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/protocol/protocol.h
blob: f8e1fe5de41ad86671584bddeacf3aac3f133c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* (c) 2002-2003 by Marcin Wiacek */

#ifndef protocol_common_h
#define protocol_common_h

typedef enum {
	RX_Sync,
	RX_GetDestination,
	RX_GetSource,
	RX_GetType,
	RX_GetLength1,
	RX_GetLength2,
	RX_GetMessage
} GSM_Protocol_RXState;

typedef struct {
	int 		Length;
	int 		Count;
	unsigned char 	Type;
	unsigned char 	Source;
	unsigned char 	Destination;
	unsigned char	*Buffer;
	int		BufferUsed;
	unsigned char 	CheckSum[2];
} GSM_Protocol_Message;

#endif

/* How should editor hadle tabs in this file? Add editor commands here.
 * vim: noexpandtab sw=8 ts=8 sts=8:
 */