| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
key.h
1/* key.h
2 * header field declarations, value_string def and true_false_string
3 * definitions for key manager messages
4 * Copyright 2007 Don Newton <dnewton@cypresscom.net>
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13#ifndef UNISTIM_KEY_H
14#define UNISTIM_KEY_H
15
16
17static int hf_key_icon_id;
18static int hf_key_led_cadence;
19static int hf_key_led_id;
20static int hf_key_programmable_keys;
21static int hf_keys_soft_keys;
22static int hf_keys_hd_key;
23static int hf_keys_mute_key;
24static int hf_keys_quit_key;
25static int hf_keys_copy_key;
26static int hf_keys_mwi_key;
27static int hf_keys_num_nav_keys;
28static int hf_keys_num_conspic_keys;
29static int hf_keys_send_key_rel;
30static int hf_keys_enable_vol;
31static int hf_keys_conspic_prog_key;
32static int hf_keys_acd_super_control;
33static int hf_keys_local_dial_feedback;
34static int hf_keys_admin_command;
35static int hf_keys_logical_icon_id;
36static int hf_keys_repeat_timer_one;
37static int hf_keys_repeat_timer_two;
38static int hf_keys_led_id;
39static int hf_keys_phone_icon_id;
40static int hf_keys_cadence_on_time;
41static int hf_keys_cadence_off_time;
42static int hf_keys_user_activity_timeout;
43
44static const value_string keys_led_ids[]={
45 {0x00,"Message Waiting LED"},
46 {0x01,"Handsfree or Supervisor Access* LED"},
47 {0x02,"Headset LED"},
48 {0x03,"Mute LED"},
49 {0x07,"Query all LEDs"},
50 {0,NULL}
51};
52
53
54static const value_string admin_commands[]={
55 {0x00,"Global NIL mapping"},
56 {0x01,"One-to-one mapping"},
57 {0x02,"Single mapping"},
58 {0x03,"RESERVED"},
59 {0,NULL}
60};
61
62static const value_string key_switch_msgs[]={
63 {0x00,"LED Update"},
64 {0x01,"Query Hookswitch"},
65 {0x02,"User Activity Timer Stop"},
66 {0x03,"User Activity Timer Start"},
67 {0x04,"Downloadable Free Form Icon Access (Hardcoded)"},
68 {0x05,"Downloadable Free Form Icon Access (Downloadable)"},
69 {0x06,"Query Key/Indicator Manager"},
70 {0x07,"Key/Indicator Manager Options"},
71 {0x08,"Logical Icon Mapping"},
72 {0x09,"Key Repeat Timer Download"},
73 {0x0a,"Query LED State"},
74 {0x0b,"Query Phone Icon State"},
75 {0x0c,"Indicator Cadence Download"},
76 {0x0d,"User Activity Timer Download"},
77 {0x0e,"Free Form Icon Download"},
78 {0x0f,"Phone Icon Update"},
79 {0xff,"Reserved"},
80 {0,NULL}
81};
82static const value_string key_phone_msgs[]={
83 {0x00,"Key Event"},
84 {0x01,"LED Status Report"},
85 {0x03,"On Hook"},
86 {0x04,"Off Hook"},
87 {0x05,"User Activity Timer Expired"},
88 {0x06,"Hookswitch State (on hook)"},
89 {0x07,"Hookswitch State (off hook)"},
90 {0x08,"Key/Indicator Manager Attributes Info"},
91 {0x09,"Key/Indicator Manager Options Report"},
92 {0x0a,"Phone Icon Status Report"},
93 {0xff,"Reserved"},
94 {0,NULL}
95};
96
97
98static const true_false_string key_release={
99 "The Key code will be sent when a valid key release occurs",
100 "No command will be sent when a key is released"
101};
102static const true_false_string enable_vol={
103 "Volume key depression will be sent",
104 "Volume Key depression will not be sent"
105};
106static const true_false_string conspic_prog={
107 "Forces the keycode associated with conspicuous key0 to be the same as progkey0",
108 "Conspicuous value key 0 and programmable key 0 have different keycodes"
109};
110static const true_false_string acd_supervisor={
111 "ACD supervisor path and indicator controlled by the Switch",
112 "ACD supervisor path and indicator controlled by the Phone"
113};
114
115static const value_string local_dialpad_feedback[]={
116 {0x00,"No tone feedback provided when a dial pad key is depressed"},
117 {0x01,"Short 'click' provided when a dial pad key is depressed"},
118 {0x02,"Corresponding DTMF tone provided when a dial pad key is depressed"},
119 {0x03,"Reserved"},
120 {0,NULL}
121};
122
123static const value_string number_nav_keys[]={
124 {0x00,"no navigation keys"},
125 {0x01,"two navigation keys"},
126 {0x02,"four navigation keys"},
127 {0x03,"not available"},
128 {0,NULL}
129};
130
131static const value_string led_ids[]={
132 {0x00,"Message Waiting LED"},
133 {0x01,"Handsfree or Supervisor Access* LED"},
134 {0x02,"Headset LED"},
135 {0x03,"Mute LED"},
136 {0,NULL}
137};
138
139static const value_string led_cadences[]={
140 {0x00,"Off"},
141 {0x01,"On"},
142 {0x02,"Flash"},
143 {0x03,"Flicker"},
144 {0x04,""},
145 {0x05,""},
146 {0x06,"Blink"},
147 {0x07,"Downloadable cadence"},
148 {0,NULL}
149};
150
151
152#endif
_value_string
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
true_false_string
Definition tfs.h:27