blob: 70145f9a0b4dc9ae1e3db4d6e658def4e462e40f [file] [log] [blame]
Daniel Willmann8b3390e2008-12-28 00:31:09 +00001#ifndef _GSM_04_11_H
2#define _GSM_04_11_H
3
4/* GSM TS 04.11 definitions */
5
6/* Chapter 8.1.2 (refers to GSM 04.07 Chapter 11.2.3.1.1 */
7#define GSM411_PDISC_SMS 0x09
8
9/* Chapter 8.1.3 */
10#define GSM411_MT_CP_DATA 0x01
11#define GSM411_MT_CP_ACK 0x04
12#define GSM411_MT_CP_ERROR 0x10
13
14/* Chapter 8.2.2 */
15#define GSM411_MT_RP_DATA_MO 0x00
16#define GSM411_MT_RP_DATA_MT 0x01
17#define GSM411_MT_RP_ACK_MO 0x02
18#define GSM411_MT_RP_ACK_MT 0x03
19#define GSM411_MT_RP_ERROR_MO 0x04
20#define GSM411_MT_RP_ERROR_MT 0x04
21#define GSM411_MT_RP_SMMA_MO 0x05
22
23/* Chapter 8.1.1 */
24struct gsm411_rp_data_hdr {
25 u_int8_t msg_type;
26 u_int8_t msg_ref;
27 u_int8_t data[0];
28} __attribute__ ((packed));
29
30struct msgb;
31
32int gsm0411_rcv_sms(struct msgb *msg);
33
34#endif