2015-05-03 11:50:42 +00:00
|
|
|
/* packet-bthci_cmd.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-12 11:23:27 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2015-05-03 11:50:42 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PACKET_BTHCI_CMD_H__
|
|
|
|
#define __PACKET_BTHCI_CMD_H__
|
|
|
|
|
2015-05-19 09:55:01 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2015-05-03 11:50:42 +00:00
|
|
|
extern value_string_ext bthci_cmd_opcode_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_ogf_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_ocf_link_control_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_ocf_link_policy_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_ocf_host_controller_and_baseband_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_ocf_informational_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_ocf_status_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_ocf_testing_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_ocf_low_energy_vals_ext;
|
|
|
|
|
|
|
|
extern value_string_ext bthci_cmd_input_coding_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_input_data_format_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_input_sample_size_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_air_coding_format_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_status_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_eir_data_type_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_auth_req_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_appearance_vals_ext;
|
2017-01-29 21:40:42 +00:00
|
|
|
extern value_string_ext bthci_cmd_le_phy_vals_ext;
|
2019-03-20 18:09:27 +00:00
|
|
|
extern value_string_ext bthci_cmd_cte_type_vals_ext;
|
2020-01-26 20:54:02 +00:00
|
|
|
extern value_string_ext bthci_cmd_clock_accuray_vals_ext;
|
2019-03-20 18:09:27 +00:00
|
|
|
extern value_string_ext bthci_cmd_slot_durations_vals_ext;
|
2020-01-26 20:54:02 +00:00
|
|
|
extern value_string_ext bthci_cmd_phy_and_coding_vals_ext;
|
|
|
|
extern value_string_ext bthci_cmd_framing_vals_ext;
|
2015-05-03 11:50:42 +00:00
|
|
|
|
|
|
|
extern const value_string bthci_cmd_io_capability_vals[];
|
|
|
|
extern const value_string bthci_cmd_oob_data_present_vals[];
|
|
|
|
extern const value_string bthci_cmd_address_types_vals[];
|
2015-05-19 09:55:01 +00:00
|
|
|
WS_DLL_PUBLIC const value_string bthci_cmd_scan_enable_values[];
|
2015-05-03 11:50:42 +00:00
|
|
|
extern const value_string bthci_cmd_page_scan_modes[];
|
|
|
|
extern const value_string bthci_cmd_page_scan_repetition_modes[];
|
|
|
|
extern const value_string bthci_cmd_page_scan_period_modes[];
|
|
|
|
extern const value_string bthci_cmd_notification_types[];
|
|
|
|
|
2015-05-19 09:55:01 +00:00
|
|
|
WS_DLL_PUBLIC const value_string bthci_cmd_encrypt_mode_vals[];
|
|
|
|
WS_DLL_PUBLIC const value_string bthci_cmd_authentication_enable_values[];
|
|
|
|
WS_DLL_PUBLIC const value_string bthci_cmd_inq_modes[];
|
|
|
|
|
|
|
|
|
2015-05-03 11:50:42 +00:00
|
|
|
typedef struct _bthci_cmd_data_t {
|
|
|
|
guint32 opcode;
|
|
|
|
|
|
|
|
guint32 command_in_frame;
|
|
|
|
nstime_t command_abs_ts;
|
|
|
|
guint32 pending_in_frame;
|
|
|
|
nstime_t pending_abs_ts;
|
|
|
|
guint32 response_in_frame;
|
|
|
|
nstime_t response_abs_ts;
|
2015-05-13 15:33:28 +00:00
|
|
|
|
|
|
|
union {
|
2015-05-19 09:55:01 +00:00
|
|
|
gchar *name;
|
|
|
|
guint8 scan;
|
|
|
|
guint16 page_timeout;
|
|
|
|
guint8 authentication;
|
|
|
|
guint8 encryption;
|
|
|
|
guint32 class_of_device;
|
|
|
|
guint16 voice_setting;
|
|
|
|
guint8 simple_pairing_mode;
|
|
|
|
guint8 inquiry_mode;
|
|
|
|
struct {
|
|
|
|
guint16 acl_mtu;
|
|
|
|
guint8 sco_mtu;
|
|
|
|
guint16 acl_packets;
|
|
|
|
guint16 sco_packets;
|
|
|
|
} mtus;
|
2015-05-13 15:33:28 +00:00
|
|
|
} data;
|
2015-05-03 11:50:42 +00:00
|
|
|
} bthci_cmd_data_t;
|
|
|
|
|
|
|
|
extern wmem_tree_t *bthci_cmds;
|
|
|
|
|
2015-05-19 09:55:01 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2015-05-03 11:50:42 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
2019-07-26 18:43:17 +00:00
|
|
|
* Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2015-05-03 11:50:42 +00:00
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|