summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/protocol/nokia/mbus2.h
blob: 86fcab621e40440a4c370745d3f28efe22d05ca8 (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
/* (c) 2001-2003 by Marcin Wiacek */
/* based on some work from MyGnokii */

#ifndef mbus2_h
#define mbus2_h

#include "../protocol.h"

#define MBUS2_FRAME_ID       0x1f
#define MBUS2_DEVICE_PHONE   0x00 /* Nokia mobile phone */
#define MBUS2_DEVICE_PC      0x10 /* Our PC (MBUS) */
#define MBUS2_ACK_BYTE	     0x7f /* Acknowledge of the received frame */

typedef struct {
	int			MsgSequenceNumber;
	int			MsgRXState;
	GSM_Protocol_Message	Msg;
} GSM_Protocol_MBUS2Data;

#ifndef GSM_USED_SERIALDEVICE
#  define GSM_USED_SERIALDEVICE
#endif

#endif

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