1use super::param;
2
3param! {
4 bitfield EventMask[8] {
6 (0, is_inquiry_complete_enabled, enable_inquiry_complete);
7 (1, is_inquiry_result_enabled, enable_inquiry_result);
8 (2, is_conn_complete_enabled, enable_conn_complete);
9 (3, is_conn_request_enabled, enable_conn_request);
10 (4, is_disconnection_complete_enabled, enable_disconnection_complete);
11 (5, is_authentication_complete_enabled, enable_authentication_complete);
12 (6, is_remote_name_request_complete_enabled, enable_remote_name_request_complete);
13 (7, is_encryption_change_v1_enabled, enable_encryption_change_v1);
14 (8, is_change_conn_link_key_complete_enabled, enable_change_conn_link_key_complete);
15 (9, is_link_key_kind_changed_enabled, enable_link_key_kind_changed);
16 (10, supports_read_remote_features_complete_enabled, enable_read_remote_supported_features_complete);
17 (11, is_read_remote_version_information_complete_enabled, enable_read_remote_version_information_complete);
18 (12, is_qos_setup_complete_enabled, enable_qos_setup_complete);
19 (15, is_hardware_error_enabled, enable_hardware_error);
20 (16, is_flush_occurred_enabled, enable_flush_occurred);
21 (17, is_role_change_enabled, enable_role_change);
22 (19, is_mode_change_enabled, enable_mode_change);
23 (20, is_return_link_keys_enabled, enable_return_link_keys);
24 (21, is_pin_code_request_enabled, enable_pin_code_request);
25 (22, is_link_key_request_enabled, enable_link_key_request);
26 (23, is_link_key_notification_enabled, enable_link_key_notification);
27 (24, is_loopback_cmd_enabled, enable_loopback_cmd);
28 (25, is_data_buffer_overflow_enabled, enable_data_buffer_overflow);
29 (26, is_max_slots_change_enabled, enable_max_slots_change);
30 (27, is_read_clock_offset_complete_enabled, enable_read_clock_offset_complete);
31 (28, is_conn_packet_kind_changed_enabled, enable_conn_packet_kind_changed);
32 (29, is_qos_violation_enabled, enable_qos_violation);
33 (31, is_page_scan_repetition_mode_change_enabled, enable_page_scan_repetition_mode_change);
34 (32, is_flow_specification_complete_enabled, enable_flow_specification_complete);
35 (33, is_inquiry_result_with_rssi_enabled, enable_inquiry_result_with_rssi);
36 (34, is_read_remote_ext_features_complete_enabled, enable_read_remote_ext_features_complete);
37 (43, is_synchronous_conn_complete_enabled, enable_synchronous_conn_complete);
38 (44, is_synchronous_conn_changed_enabled, enable_synchronous_conn_changed);
39 (45, is_sniff_subrating_enabled, enable_sniff_subrating);
40 (46, is_ext_inquiry_result_enabled, enable_ext_inquiry_result);
41 (47, is_encryption_key_refresh_complete_enabled, enable_encryption_key_refresh_complete);
42 (48, is_io_capability_request_enabled, enable_io_capability_request);
43 (49, is_io_capability_response_enabled, enable_io_capability_response);
44 (50, is_user_confirmation_request_enabled, enable_user_confirmation_request);
45 (51, is_user_passkey_request_enabled, enable_user_passkey_request);
46 (52, is_remote_oob_data_request_enabled, enable_remote_oob_data_request);
47 (53, is_simple_pairing_complete_enabled, enable_simple_pairing_complete);
48 (55, is_link_supervision_timeout_changed_enabled, enable_link_supervision_timeout_changed);
49 (56, is_enhanced_flush_complete_enabled, enable_enhanced_flush_complete);
50 (58, is_user_passkey_notification_enabled, enable_user_passkey_notification);
51 (59, is_keypress_notification_enabled, enable_keypress_notification);
52 (60, supports_remote_host_features_notification_enabled, enable_remote_host_supported_features_notification);
53 (61, is_le_meta_enabled, enable_le_meta);
54 }
55}
56
57param! {
58 bitfield EventMaskPage2[8] {
60 (8, is_number_of_completed_data_blocks_enabled, enable_number_of_completed_data_blocks);
61 (14, is_triggered_clock_capture_enabled, enable_triggered_clock_capture);
62 (15, is_synchronization_train_complete_enabled, enable_synchronization_train_complete);
63 (16, is_synchronization_train_received_enabled, enable_synchronization_train_received);
64 (17, is_connectionless_peripheral_broadcast_receive_enabled, enable_connectionless_peripheral_broadcast_receive);
65 (18, is_connectionless_peripheral_broadcast_timeout_enabled, enable_connectionless_peripheral_broadcast_timeout);
66 (19, is_truncated_page_complete_enabled, enable_truncated_page_complete);
67 (20, is_peripheral_page_response_timeout_enabled, enable_peripheral_page_response_timeout);
68 (21, is_connectionless_peripheral_broadcast_channel_map_change_enabled, enable_connectionless_peripheral_broadcast_channel_map_change);
69 (22, is_inquiry_response_notification_enabled, enable_inquiry_response_notification);
70 (23, is_authenticated_payload_timeout_expired_enabled, enable_authenticated_payload_timeout_expired);
71 (24, is_sam_status_change_enabled, enable_sam_status_change);
72 (25, is_encryption_change_v2_enabled, enable_encryption_change_v2);
73 }
74}
75
76param! {
77 bitfield LeEventMask[8] {
79 (0, is_le_conn_complete_enabled, enable_le_conn_complete);
80 (1, is_le_adv_report_enabled, enable_le_adv_report);
81 (2, is_le_conn_update_complete_enabled, enable_le_conn_update_complete);
82 (3, is_le_read_remote_features_page_0_complete_enabled, enable_le_read_remote_features_page_0_complete);
83 (4, is_le_long_term_key_request_enabled, enable_le_long_term_key_request);
84 (5, is_le_remote_conn_parameter_request_enabled, enable_le_remote_conn_parameter_request);
85 (6, is_le_data_length_change_enabled, enable_le_data_length_change);
86 (7, is_le_read_local_p256_public_key_complete_enabled, enable_le_read_local_p256_public_key_complete);
87 (8, is_le_generate_dhkey_complete_enabled, enable_le_generate_dhkey_complete);
88 (9, is_le_enhanced_conn_complete_v1_enabled, enable_le_enhanced_conn_complete_v1);
89 (10, is_le_directed_adv_report_enabled, enable_le_directed_adv_report);
90 (11, is_le_phy_update_complete_enabled, enable_le_phy_update_complete);
91 (12, is_le_ext_adv_report_enabled, enable_le_ext_adv_report);
92 (13, is_le_periodic_adv_sync_established_v1_enabled, enable_le_periodic_adv_sync_established_v1);
93 (14, is_le_periodic_adv_report_v1_enabled, enable_le_periodic_adv_report_v1);
94 (15, is_le_periodic_adv_sync_lost_enabled, enable_le_periodic_adv_sync_lost);
95 (16, is_le_scan_timeout_enabled, enable_le_scan_timeout);
96 (17, is_le_adv_set_terminated_enabled, enable_le_adv_set_terminated);
97 (18, is_le_scan_request_received_enabled, enable_le_scan_request_received);
98 (19, is_le_channel_selection_algorithm_enabled, enable_le_channel_selection_algorithm);
99 (20, is_le_connectionless_iq_report_enabled, enable_le_connectionless_iq_report);
100 (21, is_le_conn_iq_report_enabled, enable_le_conn_iq_report);
101 (22, is_le_cte_request_failed_enabled, enable_le_cte_request_failed);
102 (23, is_le_periodic_adv_sync_transfer_received_v1_enabled, enable_le_periodic_adv_sync_transfer_received_v1);
103 (24, is_le_cis_established_v1_enabled, enable_le_cis_established_v1);
104 (25, is_le_cis_request_enabled, enable_le_cis_request);
105 (26, is_le_create_big_complete_enabled, enable_le_create_big_complete);
106 (27, is_le_terminate_big_complete_enabled, enable_le_terminate_big_complete);
107 (28, is_le_big_sync_established_enabled, enable_le_big_sync_established);
108 (29, is_le_big_sync_lost_enabled, enable_le_big_sync_lost);
109 (30, is_le_request_peer_sca_complete_enabled, enable_le_request_peer_sca_complete);
110 (31, is_le_path_loss_threshold_enabled, enable_le_path_loss_threshold);
111 (32, is_le_transmit_power_reporting_enabled, enable_le_transmit_power_reporting);
112 (33, is_le_biginfo_adv_report_enabled, enable_le_biginfo_adv_report);
113 (34, is_le_subrate_change_enabled, enable_le_subrate_change);
114 (35, is_le_periodic_adv_sync_established_v2_enabled, enable_le_periodic_adv_sync_established_v2);
115 (36, is_le_periodic_adv_report_v2_enabled, enable_le_periodic_adv_report_v2);
116 (37, is_le_periodic_adv_sync_transfer_received_v2_enabled, enable_le_periodic_adv_sync_transfer_received_v2);
117 (38, is_le_periodic_adv_subevent_data_request_enabled, enable_le_periodic_adv_subevent_data_request);
118 (39, is_le_periodic_adv_response_report_enabled, enable_le_periodic_adv_response_report);
119 (40, is_le_enhanced_conn_complete_v2_enabled, enable_le_enhanced_conn_complete_v2);
120 (41, is_le_cis_established_v2_enabled, enable_le_cis_established_v2);
121 (42, is_le_read_all_remote_features_complete_enabled, enable_le_read_all_remote_features_complete);
122 (43, is_le_cs_read_remote_supported_capabilities_complete_v1_enabled, enable_le_cs_read_remote_supported_capabilities_complete_v1);
123 (44, is_le_cs_read_remote_fae_table_complete_enabled, enable_le_cs_read_remote_fae_table_complete);
124 (45, is_le_cs_security_enable_complete_enabled, enable_le_cs_security_enable_complete);
125 (46, is_le_cs_config_complete_enabled, enable_le_cs_config_complete);
126 (47, is_le_cs_procedure_enable_complete_enabled, enable_le_cs_procedure_enable_complete);
127 (48, is_le_cs_subevent_result_enabled, enable_le_cs_subevent_result);
128 (49, is_le_cs_subevent_result_continue_enabled, enable_le_cs_subevent_result_continue);
129 (50, is_le_cs_test_end_complete_enabled, enable_le_cs_test_end_complete);
130 (51, is_le_monitored_advertisers_report_enabled, enable_le_monitored_advertisers_report);
131 (52, is_le_frame_space_update_complete_enabled, enable_le_frame_space_update_complete);
132 (53, is_le_utp_receive_enabled, enable_le_utp_receive);
133 (54, is_le_connection_rate_change_enabled, enable_le_connection_rate_change);
134 (55, is_le_cs_read_remote_supported_capabilities_complete_v2_enabled, enable_le_cs_read_remote_supported_capabilities_complete_v2);
135 }
136}