Gammu internals
1.38.0
gammu-keys.h
Go to the documentation of this file.
1
7
#ifndef __gammu_keys_h
8
#define __gammu_keys_h
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
19
#include <
gammu-error.h
>
20
#include <
gammu-statemachine.h
>
21
#include <
gammu-types.h
>
22
23
#include <stdlib.h>
/* Needed for size_t declaration */
24
30
typedef
enum
{
31
GSM_KEY_NONE
= 0x00,
32
GSM_KEY_1
= 0x01,
33
GSM_KEY_2
,
34
GSM_KEY_3
,
35
GSM_KEY_4
,
36
GSM_KEY_5
,
37
GSM_KEY_6
,
38
GSM_KEY_7
,
39
GSM_KEY_8
,
40
GSM_KEY_9
,
41
GSM_KEY_0
,
45
GSM_KEY_HASH
,
49
GSM_KEY_ASTERISK
,
53
GSM_KEY_POWER
,
57
GSM_KEY_GREEN
,
61
GSM_KEY_RED
,
65
GSM_KEY_INCREASEVOLUME
,
69
GSM_KEY_DECREASEVOLUME
,
70
GSM_KEY_UP
= 0x17,
71
GSM_KEY_DOWN
,
72
GSM_KEY_MENU
,
76
GSM_KEY_NAMES
,
80
GSM_KEY_LEFT
,
84
GSM_KEY_RIGHT
,
88
GSM_KEY_SOFT1
,
92
GSM_KEY_SOFT2
,
96
GSM_KEY_HEADSET
,
100
GSM_KEY_JOYSTICK
,
104
GSM_KEY_CAMERA
,
108
GSM_KEY_MEDIA
,
112
GSM_KEY_DESKTOP
,
116
GSM_KEY_OPERATOR
,
120
GSM_KEY_RETURN
,
124
GSM_KEY_CLEAR
,
125
}
GSM_KeyCode
;
126
138
GSM_Error
MakeKeySequence
(
char
*text, GSM_KeyCode * KeyCode,
size_t
* Length);
139
145
GSM_Error
GSM_PressKey
(
GSM_StateMachine
* s, GSM_KeyCode Key,
gboolean
Press);
146
#ifdef __cplusplus
147
}
148
#endif
149
#endif
150
151
/* Editor configuration
152
* vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
153
*/
gammu-error.h
GSM_KEY_SOFT1
Definition:
gammu-keys.h:88
GSM_PressKey
GSM_Error GSM_PressKey(GSM_StateMachine *s, GSM_KeyCode Key, gboolean Press)
Definition:
api.c:320
GSM_KEY_MEDIA
Definition:
gammu-keys.h:108
GSM_KEY_JOYSTICK
Definition:
gammu-keys.h:100
GSM_KEY_NAMES
Definition:
gammu-keys.h:76
GSM_KEY_0
Definition:
gammu-keys.h:41
GSM_KEY_LEFT
Definition:
gammu-keys.h:80
GSM_KEY_DESKTOP
Definition:
gammu-keys.h:112
_GSM_StateMachine
Definition:
gsmstate.h:1401
GSM_KEY_SOFT2
Definition:
gammu-keys.h:92
GSM_Error
GSM_Error
Definition:
gammu-error.h:23
GSM_KEY_9
Definition:
gammu-keys.h:40
GSM_KEY_RETURN
Definition:
gammu-keys.h:120
GSM_KEY_DOWN
Definition:
gammu-keys.h:71
GSM_KEY_RIGHT
Definition:
gammu-keys.h:84
gammu-statemachine.h
gboolean
int gboolean
Definition:
gammu-types.h:23
GSM_KEY_UP
Definition:
gammu-keys.h:70
GSM_KEY_3
Definition:
gammu-keys.h:34
GSM_KEY_RED
Definition:
gammu-keys.h:61
GSM_KEY_MENU
Definition:
gammu-keys.h:72
GSM_KEY_ASTERISK
Definition:
gammu-keys.h:49
GSM_KEY_CLEAR
Definition:
gammu-keys.h:124
GSM_KEY_HEADSET
Definition:
gammu-keys.h:96
gammu-types.h
GSM_KEY_OPERATOR
Definition:
gammu-keys.h:116
GSM_KeyCode
GSM_KeyCode
Definition:
gammu-keys.h:30
GSM_KEY_1
Definition:
gammu-keys.h:32
GSM_KEY_GREEN
Definition:
gammu-keys.h:57
GSM_KEY_7
Definition:
gammu-keys.h:38
GSM_KEY_5
Definition:
gammu-keys.h:36
GSM_KEY_DECREASEVOLUME
Definition:
gammu-keys.h:69
GSM_KEY_6
Definition:
gammu-keys.h:37
GSM_KEY_POWER
Definition:
gammu-keys.h:53
GSM_KEY_8
Definition:
gammu-keys.h:39
GSM_KEY_NONE
Definition:
gammu-keys.h:31
GSM_KEY_CAMERA
Definition:
gammu-keys.h:104
GSM_KEY_INCREASEVOLUME
Definition:
gammu-keys.h:65
GSM_KEY_HASH
Definition:
gammu-keys.h:45
GSM_KEY_2
Definition:
gammu-keys.h:33
GSM_KEY_4
Definition:
gammu-keys.h:35
MakeKeySequence
GSM_Error MakeKeySequence(char *text, GSM_KeyCode *KeyCode, size_t *Length)
Definition:
gsmmisc.c:49
include
gammu-keys.h
Generated on Wed Nov 16 2016 13:39:19 for Gammu internals by
1.8.12