summaryrefslogtreecommitdiff
path: root/include/gsmd/event.h
blob: 5c73449dcc4126588f7a71492b9f91963203c3fa (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ifndef _GSMD_EVENT_H
#define _GSMD_EVENT_H

enum gsmd_events {
	GSMD_EVT_NONE		= 0,
	GSMD_EVT_IN_CALL	= 1,	/* Incoming call */
	GSMD_EVT_IN_SMS		= 2,	/* Incoming SMS */
	GSMD_EVT_IN_GPRS	= 3,	/* Network initiated GPRS */
	GSMD_EVT_IN_CLIP	= 4,	/* Incoming CLIP */
	GSMD_EVT_NETREG		= 5,	/* Network (un)registration event */
	GSMD_EVT_SIGNAL		= 6,	/* Signal quality event */
	GSMD_EVT_PIN		= 7, 	/* Modem is waiting for some PIN/PUK */
	GSMD_EVT_OUT_STATUS	= 8,	/* Outgoing call status */
	GSMD_EVT_OUT_COLP	= 9,	/* Outgoing COLP */
	GSMD_EVT_CALL_WAIT	= 10,	/* Call Waiting */
	GSMD_EVT_TIMEZONE	= 11,	/* Timezone change */
	GSMD_EVT_SUBSCRIPTIONS	= 12,	/* To which events are we subscribed to */
	GSMD_EVT_CIPHER		= 13,	/* Ciphering Information */
	GSMD_EVT_IN_CBM		= 14,	/* Incoming Cell Broadcast message */
	GSMD_EVT_IN_DS		= 15,	/* SMS Status Report */
	GSMD_EVT_IN_ERROR	= 16,	/* CME/CMS error */
	__NUM_GSMD_EVT
};

/* Chapter 8.3 */
enum gsmd_pin_type {			/* waiting for ... */
	GSMD_PIN_NONE		= 0,	/* not for any PIN */
	GSMD_PIN_SIM_PIN	= 1,	/* SIM PIN */
	GSMD_PIN_SIM_PUK	= 2,	/* SIM PUK */
	GSMD_PIN_PH_SIM_PIN	= 3,	/* phone-to-SIM passowrd */
	GSMD_PIN_PH_FSIM_PIN	= 4,	/* phone-to-very-first SIM password */
	GSMD_PIN_PH_FSIM_PUK	= 5,	/* phone-to-very-first SIM PUK password */
	GSMD_PIN_SIM_PIN2	= 6,	/* SIM PIN2 */
	GSMD_PIN_SIM_PUK2	= 7,	/* SIM PUK2 */
	GSMD_PIN_PH_NET_PIN	= 8,	/* netwokr personalisation password */
	GSMD_PIN_PH_NET_PUK	= 9,	/* network personalisation PUK */
	GSMD_PIN_PH_NETSUB_PIN	= 10, 	/* network subset personalisation PIN */
	GSMD_PIN_PH_NETSUB_PUK	= 11,	/* network subset personalisation PUK */
	GSMD_PIN_PH_SP_PIN	= 12,	/* service provider personalisation PIN */
	GSMD_PIN_PH_SP_PUK	= 13,	/* service provider personalisation PUK */
	GSMD_PIN_PH_CORP_PIN	= 14,	/* corporate personalisation PIN */
	GSMD_PIN_PH_CORP_PUK	= 15,	/* corporate personalisation PUK */
	__NUM_GSMD_PIN
};

enum gsmd_call_type {
	GSMD_CALL_NONE		= 0,
	GSMD_CALL_UNSPEC	= 1,
	GSMD_CALL_VOICE		= 2,
	GSMD_CALL_FAX		= 4,
	GSMD_CALL_DATA_SYNC	= 5,
	GSMD_CALL_DATA_REL_ASYNC= 6,
	GSMD_CALL_DATA_REL_SYNC	= 7,
	__NUM_GSMD_CALL
};

/* Chapter 7.2 */
enum gsmd_netreg_state {
	GSMD_NETREG_UNREG	= 0,
	GSMD_NETREG_REG_HOME,
	GSMD_NETREG_UNREG_BUSY,
	GSMD_NETREG_DENIED,
	GSMD_NETREG_UNKNOWN,
	GSMD_NETREG_REG_ROAMING,
	__NUM_GSMD_NETREG
};

enum gsmd_call_progress {
	GSMD_CALLPROG_SETUP		= 0,
	GSMD_CALLPROG_DISCONNECT	= 1,
	GSMD_CALLPROG_ALERT		= 2,
	GSMD_CALLPROG_CALL_PROCEED	= 3,
	GSMD_CALLPROG_SYNC		= 4,
	GSMD_CALLPROG_PROGRESS		= 5,
	GSMD_CALLPROG_CONNECTED		= 6,
	GSMD_CALLPROG_RELEASE		= 7,
	GSMD_CALLPROG_REJECT		= 8,
	GSMD_CALLPROG_UNKNOWN		= 9,
	__NUM_GSMD_CALLPROG
};

enum gsmd_call_direction {
	GSMD_CALL_DIR_MO		= 0,	/* Mobile Originated (Outgoing) */
	GSMD_CALL_DIR_MT		= 1,	/* Mobile Terminated (Incoming) */
	GSMD_CALL_DIR_CCBS		= 2,	/* network initiated MO */
	GSMD_CALL_DIR_MO_REDIAL		= 3,	/* Mobile Originated Redial */
};

#endif
personal git repositories of Harald Welte. Your mileage may vary