simplejsble 0.0.29 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/NitroSimplejsble.podspec +1 -1
  2. package/VERSION +1 -1
  3. package/dependencies/external/kvn/kvn_bytearray.h +7 -0
  4. package/lib/index.d.ts +3 -0
  5. package/lib/index.d.ts.map +1 -0
  6. package/lib/index.js +2 -0
  7. package/lib/specs/Adapter.nitro.d.ts +10 -0
  8. package/lib/specs/Adapter.nitro.d.ts.map +1 -0
  9. package/lib/specs/Adapter.nitro.js +1 -0
  10. package/package.json +2 -2
  11. package/simpleble/CMakeLists.txt +1 -6
  12. package/simpleble/src/backends/dongl/AdapterDongl.cpp +10 -143
  13. package/simpleble/src/backends/dongl/AdapterDongl.h +0 -1
  14. package/simpleble/src/backends/dongl/PeripheralDongl.cpp +120 -118
  15. package/simpleble/src/backends/dongl/PeripheralDongl.h +9 -2
  16. package/simpleble/src/backends/dongl/protocol/d2h.pb.h +9 -26
  17. package/simpleble/src/backends/dongl/protocol/h2d.pb.h +2 -12
  18. package/simpleble/src/backends/dongl/serial/Protocol.cpp +1 -755
  19. package/simpleble/src/backends/dongl/serial/Protocol.h +0 -75
  20. package/simpleble/test/src/test_bytearray.cpp +7 -0
  21. package/simpleble/src/backends/dongl/protocol/softdevice.pb.c +0 -18
  22. package/simpleble/src/backends/dongl/protocol/softdevice.pb.h +0 -815
  23. package/simpleble/src/backends/dongl/protocol/softdevice_gap.pb.c +0 -339
  24. package/simpleble/src/backends/dongl/protocol/softdevice_gap.pb.h +0 -2086
  25. package/simpleble/src/backends/dongl/protocol/softdevice_gattc.pb.c +0 -114
  26. package/simpleble/src/backends/dongl/protocol/softdevice_gattc.pb.h +0 -772
  27. package/simpleble/src/backends/dongl/protocol/softdevice_gatts.pb.c +0 -117
  28. package/simpleble/src/backends/dongl/protocol/softdevice_gatts.pb.h +0 -766
  29. package/simpleble/src/backends/dongl/protocol/softdevice_types.pb.c +0 -207
  30. package/simpleble/src/backends/dongl/protocol/softdevice_types.pb.h +0 -1686
@@ -1,815 +0,0 @@
1
- /* Automatically generated nanopb header */
2
- /* Generated by nanopb-0.4.9.1 */
3
-
4
- #ifndef PB_SD_SOFTDEVICE_PB_H_INCLUDED
5
- #define PB_SD_SOFTDEVICE_PB_H_INCLUDED
6
- #include "nanopb/pb.h"
7
- #include "protocol/softdevice_gap.pb.h"
8
- #include "protocol/softdevice_gattc.pb.h"
9
- #include "protocol/softdevice_gatts.pb.h"
10
-
11
- #if PB_PROTO_HEADER_VERSION != 40
12
- #error Regenerate this file with the current version of nanopb generator.
13
- #endif
14
-
15
- /* Struct definitions */
16
- /* SoftDevice GAP commands */
17
- typedef struct _sd_Command {
18
- pb_size_t which_cmd;
19
- union {
20
- sd_GapAddrSetCmd gap_addr_set;
21
- sd_GapAddrGetCmd gap_addr_get;
22
- sd_GapWhitelistSetCmd gap_whitelist_set;
23
- sd_GapDeviceIdentitiesSetCmd gap_device_identities_set;
24
- sd_GapPrivacySetCmd gap_privacy_set;
25
- sd_GapPrivacyGetCmd gap_privacy_get;
26
- sd_GapAdvSetConfigureCmd gap_adv_set_configure;
27
- sd_GapAdvStartCmd gap_adv_start;
28
- sd_GapAdvStopCmd gap_adv_stop;
29
- sd_GapConnParamUpdateCmd gap_conn_param_update;
30
- sd_GapDisconnectCmd gap_disconnect;
31
- sd_GapTxPowerSetCmd gap_tx_power_set;
32
- sd_GapAppearanceSetCmd gap_appearance_set;
33
- sd_GapAppearanceGetCmd gap_appearance_get;
34
- sd_GapPpcpSetCmd gap_ppcp_set;
35
- sd_GapPpcpGetCmd gap_ppcp_get;
36
- sd_GapDeviceNameSetCmd gap_device_name_set;
37
- sd_GapDeviceNameGetCmd gap_device_name_get;
38
- sd_GapAuthenticateCmd gap_authenticate;
39
- sd_GapSecParamsReplyCmd gap_sec_params_reply;
40
- sd_GapAuthKeyReplyCmd gap_auth_key_reply;
41
- sd_GapLescDhkeyReplyCmd gap_lesc_dhkey_reply;
42
- sd_GapKeypressNotifyCmd gap_keypress_notify;
43
- sd_GapLescOobDataGetCmd gap_lesc_oob_data_get;
44
- sd_GapLescOobDataSetCmd gap_lesc_oob_data_set;
45
- sd_GapEncryptCmd gap_encrypt;
46
- sd_GapSecInfoReplyCmd gap_sec_info_reply;
47
- sd_GapConnSecGetCmd gap_conn_sec_get;
48
- sd_GapRssiStartCmd gap_rssi_start;
49
- sd_GapRssiStopCmd gap_rssi_stop;
50
- sd_GapScanStartCmd gap_scan_start;
51
- sd_GapScanStopCmd gap_scan_stop;
52
- sd_GapConnectCmd gap_connect;
53
- sd_GapConnectCancelCmd gap_connect_cancel;
54
- sd_GapRssiGetCmd gap_rssi_get;
55
- sd_GapPhyUpdateCmd gap_phy_update;
56
- sd_GapDataLengthUpdateCmd gap_data_length_update;
57
- sd_GapQosChannelSurveyStartCmd gap_qos_channel_survey_start;
58
- sd_GapQosChannelSurveyStopCmd gap_qos_channel_survey_stop;
59
- sd_GapAdvAddrGetCmd gap_adv_addr_get;
60
- sd_GapNextConnEvtCounterGetCmd gap_next_conn_evt_counter_get;
61
- sd_GapConnEvtTriggerStartCmd gap_conn_evt_trigger_start;
62
- sd_GapConnEvtTriggerStopCmd gap_conn_evt_trigger_stop;
63
- sd_GattcPrimaryServicesDiscoverCmd gattc_primary_services_discover;
64
- sd_GattcRelationshipsDiscoverCmd gattc_relationships_discover;
65
- sd_GattcCharacteristicsDiscoverCmd gattc_characteristics_discover;
66
- sd_GattcDescriptorsDiscoverCmd gattc_descriptors_discover;
67
- sd_GattcAttrInfoDiscoverCmd gattc_attr_info_discover;
68
- sd_GattcCharValueByUuidReadCmd gattc_char_value_by_uuid_read;
69
- sd_GattcReadCmd gattc_read;
70
- sd_GattcCharValuesReadCmd gattc_char_values_read;
71
- sd_GattcWriteCmd gattc_write;
72
- sd_GattcHvConfirmCmd gattc_hv_confirm;
73
- sd_GattcExchangeMtuRequestCmd gattc_exchange_mtu_request;
74
- sd_GattsServiceAddCmd gatts_service_add;
75
- sd_GattsIncludeAddCmd gatts_include_add;
76
- sd_GattsCharacteristicAddCmd gatts_characteristic_add;
77
- sd_GattsDescriptorAddCmd gatts_descriptor_add;
78
- sd_GattsValueSetCmd gatts_value_set;
79
- sd_GattsValueGetCmd gatts_value_get;
80
- sd_GattsHvxCmd gatts_hvx;
81
- sd_GattsServiceChangedCmd gatts_service_changed;
82
- sd_GattsRwAuthorizeReplyCmd gatts_rw_authorize_reply;
83
- sd_GattsSysAttrSetCmd gatts_sys_attr_set;
84
- sd_GattsSysAttrGetCmd gatts_sys_attr_get;
85
- sd_GattsInitialUserHandleGetCmd gatts_initial_user_handle_get;
86
- sd_GattsAttrGetCmd gatts_attr_get;
87
- sd_GattsExchangeMtuReplyCmd gatts_exchange_mtu_reply;
88
- } cmd;
89
- } sd_Command;
90
-
91
- typedef struct _sd_Response {
92
- pb_size_t which_rsp;
93
- union {
94
- sd_GapAddrSetRsp gap_addr_set;
95
- sd_GapAddrGetRsp gap_addr_get;
96
- sd_GapWhitelistSetRsp gap_whitelist_set;
97
- sd_GapDeviceIdentitiesSetRsp gap_device_identities_set;
98
- sd_GapPrivacySetRsp gap_privacy_set;
99
- sd_GapPrivacyGetRsp gap_privacy_get;
100
- sd_GapAdvSetConfigureRsp gap_adv_set_configure;
101
- sd_GapAdvStartRsp gap_adv_start;
102
- sd_GapAdvStopRsp gap_adv_stop;
103
- sd_GapConnParamUpdateRsp gap_conn_param_update;
104
- sd_GapDisconnectRsp gap_disconnect;
105
- sd_GapTxPowerSetRsp gap_tx_power_set;
106
- sd_GapAppearanceSetRsp gap_appearance_set;
107
- sd_GapAppearanceGetRsp gap_appearance_get;
108
- sd_GapPpcpSetRsp gap_ppcp_set;
109
- sd_GapPpcpGetRsp gap_ppcp_get;
110
- sd_GapDeviceNameSetRsp gap_device_name_set;
111
- sd_GapDeviceNameGetRsp gap_device_name_get;
112
- sd_GapAuthenticateRsp gap_authenticate;
113
- sd_GapSecParamsReplyRsp gap_sec_params_reply;
114
- sd_GapAuthKeyReplyRsp gap_auth_key_reply;
115
- sd_GapLescDhkeyReplyRsp gap_lesc_dhkey_reply;
116
- sd_GapKeypressNotifyRsp gap_keypress_notify;
117
- sd_GapLescOobDataGetRsp gap_lesc_oob_data_get;
118
- sd_GapLescOobDataSetRsp gap_lesc_oob_data_set;
119
- sd_GapEncryptRsp gap_encrypt;
120
- sd_GapSecInfoReplyRsp gap_sec_info_reply;
121
- sd_GapConnSecGetRsp gap_conn_sec_get;
122
- sd_GapRssiStartRsp gap_rssi_start;
123
- sd_GapRssiStopRsp gap_rssi_stop;
124
- sd_GapScanStartRsp gap_scan_start;
125
- sd_GapScanStopRsp gap_scan_stop;
126
- sd_GapConnectRsp gap_connect;
127
- sd_GapConnectCancelRsp gap_connect_cancel;
128
- sd_GapRssiGetRsp gap_rssi_get;
129
- sd_GapPhyUpdateRsp gap_phy_update;
130
- sd_GapDataLengthUpdateRsp gap_data_length_update;
131
- sd_GapQosChannelSurveyStartRsp gap_qos_channel_survey_start;
132
- sd_GapQosChannelSurveyStopRsp gap_qos_channel_survey_stop;
133
- sd_GapAdvAddrGetRsp gap_adv_addr_get;
134
- sd_GapNextConnEvtCounterGetRsp gap_next_conn_evt_counter_get;
135
- sd_GapConnEvtTriggerStartRsp gap_conn_evt_trigger_start;
136
- sd_GapConnEvtTriggerStopRsp gap_conn_evt_trigger_stop;
137
- sd_GattcPrimaryServicesDiscoverRsp gattc_primary_services_discover;
138
- sd_GattcRelationshipsDiscoverRsp gattc_relationships_discover;
139
- sd_GattcCharacteristicsDiscoverRsp gattc_characteristics_discover;
140
- sd_GattcDescriptorsDiscoverRsp gattc_descriptors_discover;
141
- sd_GattcAttrInfoDiscoverRsp gattc_attr_info_discover;
142
- sd_GattcCharValueByUuidReadRsp gattc_char_value_by_uuid_read;
143
- sd_GattcReadRsp gattc_read;
144
- sd_GattcCharValuesReadRsp gattc_char_values_read;
145
- sd_GattcWriteRsp gattc_write;
146
- sd_GattcHvConfirmRsp gattc_hv_confirm;
147
- sd_GattcExchangeMtuRequestRsp gattc_exchange_mtu_request;
148
- sd_GattsServiceAddRsp gatts_service_add;
149
- sd_GattsIncludeAddRsp gatts_include_add;
150
- sd_GattsCharacteristicAddRsp gatts_characteristic_add;
151
- sd_GattsDescriptorAddRsp gatts_descriptor_add;
152
- sd_GattsValueSetRsp gatts_value_set;
153
- sd_GattsValueGetRsp gatts_value_get;
154
- sd_GattsHvxRsp gatts_hvx;
155
- sd_GattsServiceChangedRsp gatts_service_changed;
156
- sd_GattsRwAuthorizeReplyRsp gatts_rw_authorize_reply;
157
- sd_GattsSysAttrSetRsp gatts_sys_attr_set;
158
- sd_GattsSysAttrGetRsp gatts_sys_attr_get;
159
- sd_GattsInitialUserHandleGetRsp gatts_initial_user_handle_get;
160
- sd_GattsAttrGetRsp gatts_attr_get;
161
- sd_GattsExchangeMtuReplyRsp gatts_exchange_mtu_reply;
162
- } rsp;
163
- } sd_Response;
164
-
165
- /* Union of all BLE events */
166
- typedef struct _sd_Event {
167
- uint16_t conn_handle;
168
- pb_size_t which_evt;
169
- union {
170
- /* GAP events */
171
- sd_GapEvtConnected gap_connected;
172
- sd_GapEvtDisconnected gap_disconnected;
173
- sd_GapEvtConnParamUpdate gap_conn_param_update;
174
- sd_GapEvtSecParamsRequest gap_sec_params_request;
175
- sd_GapEvtSecInfoRequest gap_sec_info_request;
176
- sd_GapEvtPasskeyDisplay gap_passkey_display;
177
- sd_GapEvtKeyPressed gap_key_pressed;
178
- sd_GapEvtAuthKeyRequest gap_auth_key_request;
179
- sd_GapEvtLescDhkeyRequest gap_lesc_dhkey_request;
180
- sd_GapEvtAuthStatus gap_auth_status;
181
- sd_GapEvtConnSecUpdate gap_conn_sec_update;
182
- sd_GapEvtTimeout gap_timeout;
183
- sd_GapEvtRssiChanged gap_rssi_changed;
184
- sd_GapEvtAdvReport gap_adv_report;
185
- sd_GapEvtAdvSetTerminated gap_adv_set_terminated;
186
- sd_GapEvtSecRequest gap_sec_request;
187
- sd_GapEvtConnParamUpdateRequest gap_conn_param_update_request;
188
- sd_GapEvtScanReqReport gap_scan_req_report;
189
- sd_GapEvtPhyUpdateRequest gap_phy_update_request;
190
- sd_GapEvtPhyUpdate gap_phy_update;
191
- sd_GapEvtDataLengthUpdateRequest gap_data_length_update_request;
192
- sd_GapEvtDataLengthUpdate gap_data_length_update;
193
- sd_GapEvtQosChannelSurveyReport gap_qos_channel_survey_report;
194
- /* GATTC events */
195
- sd_GattcEvtPrimSrvcDiscRsp gattc_prim_srvc_disc_rsp;
196
- sd_GattcEvtRelDiscRsp gattc_rel_disc_rsp;
197
- sd_GattcEvtCharDiscRsp gattc_char_disc_rsp;
198
- sd_GattcEvtDescDiscRsp gattc_desc_disc_rsp;
199
- sd_GattcEvtCharValByUuidReadRsp gattc_char_val_by_uuid_read_rsp;
200
- sd_GattcEvtReadRsp gattc_read_rsp;
201
- sd_GattcEvtCharValsReadRsp gattc_char_vals_read_rsp;
202
- sd_GattcEvtWriteRsp gattc_write_rsp;
203
- sd_GattcEvtHvx gattc_hvx;
204
- sd_GattcEvtExchangeMtuRsp gattc_exchange_mtu_rsp;
205
- sd_GattcEvtTimeout gattc_timeout_gattc;
206
- sd_GattcEvtAttrInfoDiscRsp gattc_attr_info_disc_rsp;
207
- sd_GattcEvtWriteCmdTxComplete gattc_write_cmd_tx_complete;
208
- /* GATTS events */
209
- sd_GattsEvtWrite gatts_write_gatts;
210
- sd_GattsEvtRwAuthorizeRequest gatts_authorize_request;
211
- sd_GattsEvtSysAttrMissing gatts_sys_attr_missing;
212
- sd_GattsEvtHvc gatts_hvc;
213
- sd_GattsEvtExchangeMtuRequest gatts_exchange_mtu_request;
214
- sd_GattsEvtTimeout gatts_timeout_gatts;
215
- sd_GattsEvtHvnTxComplete gatts_hvn_tx_complete;
216
- } evt;
217
- } sd_Event;
218
-
219
-
220
- #ifdef __cplusplus
221
- extern "C" {
222
- #endif
223
-
224
- /* Initializer values for message structs */
225
- #define sd_Command_init_default {0, {sd_GapAddrSetCmd_init_default}}
226
- #define sd_Response_init_default {0, {sd_GapAddrSetRsp_init_default}}
227
- #define sd_Event_init_default {0, 0, {sd_GapEvtConnected_init_default}}
228
- #define sd_Command_init_zero {0, {sd_GapAddrSetCmd_init_zero}}
229
- #define sd_Response_init_zero {0, {sd_GapAddrSetRsp_init_zero}}
230
- #define sd_Event_init_zero {0, 0, {sd_GapEvtConnected_init_zero}}
231
-
232
- /* Field tags (for use in manual encoding/decoding) */
233
- #define sd_Command_gap_addr_set_tag 1
234
- #define sd_Command_gap_addr_get_tag 2
235
- #define sd_Command_gap_whitelist_set_tag 3
236
- #define sd_Command_gap_device_identities_set_tag 4
237
- #define sd_Command_gap_privacy_set_tag 5
238
- #define sd_Command_gap_privacy_get_tag 6
239
- #define sd_Command_gap_adv_set_configure_tag 7
240
- #define sd_Command_gap_adv_start_tag 8
241
- #define sd_Command_gap_adv_stop_tag 9
242
- #define sd_Command_gap_conn_param_update_tag 10
243
- #define sd_Command_gap_disconnect_tag 11
244
- #define sd_Command_gap_tx_power_set_tag 12
245
- #define sd_Command_gap_appearance_set_tag 13
246
- #define sd_Command_gap_appearance_get_tag 14
247
- #define sd_Command_gap_ppcp_set_tag 15
248
- #define sd_Command_gap_ppcp_get_tag 16
249
- #define sd_Command_gap_device_name_set_tag 17
250
- #define sd_Command_gap_device_name_get_tag 18
251
- #define sd_Command_gap_authenticate_tag 19
252
- #define sd_Command_gap_sec_params_reply_tag 20
253
- #define sd_Command_gap_auth_key_reply_tag 21
254
- #define sd_Command_gap_lesc_dhkey_reply_tag 22
255
- #define sd_Command_gap_keypress_notify_tag 23
256
- #define sd_Command_gap_lesc_oob_data_get_tag 24
257
- #define sd_Command_gap_lesc_oob_data_set_tag 25
258
- #define sd_Command_gap_encrypt_tag 26
259
- #define sd_Command_gap_sec_info_reply_tag 27
260
- #define sd_Command_gap_conn_sec_get_tag 28
261
- #define sd_Command_gap_rssi_start_tag 29
262
- #define sd_Command_gap_rssi_stop_tag 30
263
- #define sd_Command_gap_scan_start_tag 31
264
- #define sd_Command_gap_scan_stop_tag 32
265
- #define sd_Command_gap_connect_tag 33
266
- #define sd_Command_gap_connect_cancel_tag 34
267
- #define sd_Command_gap_rssi_get_tag 35
268
- #define sd_Command_gap_phy_update_tag 36
269
- #define sd_Command_gap_data_length_update_tag 37
270
- #define sd_Command_gap_qos_channel_survey_start_tag 38
271
- #define sd_Command_gap_qos_channel_survey_stop_tag 39
272
- #define sd_Command_gap_adv_addr_get_tag 40
273
- #define sd_Command_gap_next_conn_evt_counter_get_tag 41
274
- #define sd_Command_gap_conn_evt_trigger_start_tag 42
275
- #define sd_Command_gap_conn_evt_trigger_stop_tag 43
276
- #define sd_Command_gattc_primary_services_discover_tag 44
277
- #define sd_Command_gattc_relationships_discover_tag 45
278
- #define sd_Command_gattc_characteristics_discover_tag 46
279
- #define sd_Command_gattc_descriptors_discover_tag 47
280
- #define sd_Command_gattc_attr_info_discover_tag 48
281
- #define sd_Command_gattc_char_value_by_uuid_read_tag 49
282
- #define sd_Command_gattc_read_tag 50
283
- #define sd_Command_gattc_char_values_read_tag 51
284
- #define sd_Command_gattc_write_tag 52
285
- #define sd_Command_gattc_hv_confirm_tag 53
286
- #define sd_Command_gattc_exchange_mtu_request_tag 54
287
- #define sd_Command_gatts_service_add_tag 55
288
- #define sd_Command_gatts_include_add_tag 56
289
- #define sd_Command_gatts_characteristic_add_tag 57
290
- #define sd_Command_gatts_descriptor_add_tag 58
291
- #define sd_Command_gatts_value_set_tag 59
292
- #define sd_Command_gatts_value_get_tag 60
293
- #define sd_Command_gatts_hvx_tag 61
294
- #define sd_Command_gatts_service_changed_tag 62
295
- #define sd_Command_gatts_rw_authorize_reply_tag 63
296
- #define sd_Command_gatts_sys_attr_set_tag 64
297
- #define sd_Command_gatts_sys_attr_get_tag 65
298
- #define sd_Command_gatts_initial_user_handle_get_tag 66
299
- #define sd_Command_gatts_attr_get_tag 67
300
- #define sd_Command_gatts_exchange_mtu_reply_tag 68
301
- #define sd_Response_gap_addr_set_tag 1
302
- #define sd_Response_gap_addr_get_tag 2
303
- #define sd_Response_gap_whitelist_set_tag 3
304
- #define sd_Response_gap_device_identities_set_tag 4
305
- #define sd_Response_gap_privacy_set_tag 5
306
- #define sd_Response_gap_privacy_get_tag 6
307
- #define sd_Response_gap_adv_set_configure_tag 7
308
- #define sd_Response_gap_adv_start_tag 8
309
- #define sd_Response_gap_adv_stop_tag 9
310
- #define sd_Response_gap_conn_param_update_tag 10
311
- #define sd_Response_gap_disconnect_tag 11
312
- #define sd_Response_gap_tx_power_set_tag 12
313
- #define sd_Response_gap_appearance_set_tag 13
314
- #define sd_Response_gap_appearance_get_tag 14
315
- #define sd_Response_gap_ppcp_set_tag 15
316
- #define sd_Response_gap_ppcp_get_tag 16
317
- #define sd_Response_gap_device_name_set_tag 17
318
- #define sd_Response_gap_device_name_get_tag 18
319
- #define sd_Response_gap_authenticate_tag 19
320
- #define sd_Response_gap_sec_params_reply_tag 20
321
- #define sd_Response_gap_auth_key_reply_tag 21
322
- #define sd_Response_gap_lesc_dhkey_reply_tag 22
323
- #define sd_Response_gap_keypress_notify_tag 23
324
- #define sd_Response_gap_lesc_oob_data_get_tag 24
325
- #define sd_Response_gap_lesc_oob_data_set_tag 25
326
- #define sd_Response_gap_encrypt_tag 26
327
- #define sd_Response_gap_sec_info_reply_tag 27
328
- #define sd_Response_gap_conn_sec_get_tag 28
329
- #define sd_Response_gap_rssi_start_tag 29
330
- #define sd_Response_gap_rssi_stop_tag 30
331
- #define sd_Response_gap_scan_start_tag 31
332
- #define sd_Response_gap_scan_stop_tag 32
333
- #define sd_Response_gap_connect_tag 33
334
- #define sd_Response_gap_connect_cancel_tag 34
335
- #define sd_Response_gap_rssi_get_tag 35
336
- #define sd_Response_gap_phy_update_tag 36
337
- #define sd_Response_gap_data_length_update_tag 37
338
- #define sd_Response_gap_qos_channel_survey_start_tag 38
339
- #define sd_Response_gap_qos_channel_survey_stop_tag 39
340
- #define sd_Response_gap_adv_addr_get_tag 40
341
- #define sd_Response_gap_next_conn_evt_counter_get_tag 41
342
- #define sd_Response_gap_conn_evt_trigger_start_tag 42
343
- #define sd_Response_gap_conn_evt_trigger_stop_tag 43
344
- #define sd_Response_gattc_primary_services_discover_tag 44
345
- #define sd_Response_gattc_relationships_discover_tag 45
346
- #define sd_Response_gattc_characteristics_discover_tag 46
347
- #define sd_Response_gattc_descriptors_discover_tag 47
348
- #define sd_Response_gattc_attr_info_discover_tag 48
349
- #define sd_Response_gattc_char_value_by_uuid_read_tag 49
350
- #define sd_Response_gattc_read_tag 50
351
- #define sd_Response_gattc_char_values_read_tag 51
352
- #define sd_Response_gattc_write_tag 52
353
- #define sd_Response_gattc_hv_confirm_tag 53
354
- #define sd_Response_gattc_exchange_mtu_request_tag 54
355
- #define sd_Response_gatts_service_add_tag 55
356
- #define sd_Response_gatts_include_add_tag 56
357
- #define sd_Response_gatts_characteristic_add_tag 57
358
- #define sd_Response_gatts_descriptor_add_tag 58
359
- #define sd_Response_gatts_value_set_tag 59
360
- #define sd_Response_gatts_value_get_tag 60
361
- #define sd_Response_gatts_hvx_tag 61
362
- #define sd_Response_gatts_service_changed_tag 62
363
- #define sd_Response_gatts_rw_authorize_reply_tag 63
364
- #define sd_Response_gatts_sys_attr_set_tag 64
365
- #define sd_Response_gatts_sys_attr_get_tag 65
366
- #define sd_Response_gatts_initial_user_handle_get_tag 66
367
- #define sd_Response_gatts_attr_get_tag 67
368
- #define sd_Response_gatts_exchange_mtu_reply_tag 68
369
- #define sd_Event_conn_handle_tag 1
370
- #define sd_Event_gap_connected_tag 2
371
- #define sd_Event_gap_disconnected_tag 3
372
- #define sd_Event_gap_conn_param_update_tag 4
373
- #define sd_Event_gap_sec_params_request_tag 5
374
- #define sd_Event_gap_sec_info_request_tag 6
375
- #define sd_Event_gap_passkey_display_tag 7
376
- #define sd_Event_gap_key_pressed_tag 8
377
- #define sd_Event_gap_auth_key_request_tag 9
378
- #define sd_Event_gap_lesc_dhkey_request_tag 10
379
- #define sd_Event_gap_auth_status_tag 11
380
- #define sd_Event_gap_conn_sec_update_tag 12
381
- #define sd_Event_gap_timeout_tag 13
382
- #define sd_Event_gap_rssi_changed_tag 14
383
- #define sd_Event_gap_adv_report_tag 15
384
- #define sd_Event_gap_adv_set_terminated_tag 16
385
- #define sd_Event_gap_sec_request_tag 17
386
- #define sd_Event_gap_conn_param_update_request_tag 18
387
- #define sd_Event_gap_scan_req_report_tag 19
388
- #define sd_Event_gap_phy_update_request_tag 20
389
- #define sd_Event_gap_phy_update_tag 21
390
- #define sd_Event_gap_data_length_update_request_tag 22
391
- #define sd_Event_gap_data_length_update_tag 23
392
- #define sd_Event_gap_qos_channel_survey_report_tag 24
393
- #define sd_Event_gattc_prim_srvc_disc_rsp_tag 25
394
- #define sd_Event_gattc_rel_disc_rsp_tag 26
395
- #define sd_Event_gattc_char_disc_rsp_tag 27
396
- #define sd_Event_gattc_desc_disc_rsp_tag 28
397
- #define sd_Event_gattc_char_val_by_uuid_read_rsp_tag 29
398
- #define sd_Event_gattc_read_rsp_tag 30
399
- #define sd_Event_gattc_char_vals_read_rsp_tag 31
400
- #define sd_Event_gattc_write_rsp_tag 32
401
- #define sd_Event_gattc_hvx_tag 33
402
- #define sd_Event_gattc_exchange_mtu_rsp_tag 34
403
- #define sd_Event_gattc_timeout_gattc_tag 35
404
- #define sd_Event_gattc_attr_info_disc_rsp_tag 36
405
- #define sd_Event_gattc_write_cmd_tx_complete_tag 37
406
- #define sd_Event_gatts_write_gatts_tag 38
407
- #define sd_Event_gatts_authorize_request_tag 39
408
- #define sd_Event_gatts_sys_attr_missing_tag 40
409
- #define sd_Event_gatts_hvc_tag 41
410
- #define sd_Event_gatts_exchange_mtu_request_tag 42
411
- #define sd_Event_gatts_timeout_gatts_tag 43
412
- #define sd_Event_gatts_hvn_tx_complete_tag 44
413
-
414
- /* Struct field encoding specification for nanopb */
415
- #define sd_Command_FIELDLIST(X, a) \
416
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_addr_set,cmd.gap_addr_set), 1) \
417
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_addr_get,cmd.gap_addr_get), 2) \
418
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_whitelist_set,cmd.gap_whitelist_set), 3) \
419
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_device_identities_set,cmd.gap_device_identities_set), 4) \
420
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_privacy_set,cmd.gap_privacy_set), 5) \
421
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_privacy_get,cmd.gap_privacy_get), 6) \
422
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_adv_set_configure,cmd.gap_adv_set_configure), 7) \
423
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_adv_start,cmd.gap_adv_start), 8) \
424
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_adv_stop,cmd.gap_adv_stop), 9) \
425
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_conn_param_update,cmd.gap_conn_param_update), 10) \
426
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_disconnect,cmd.gap_disconnect), 11) \
427
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_tx_power_set,cmd.gap_tx_power_set), 12) \
428
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_appearance_set,cmd.gap_appearance_set), 13) \
429
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_appearance_get,cmd.gap_appearance_get), 14) \
430
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_ppcp_set,cmd.gap_ppcp_set), 15) \
431
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_ppcp_get,cmd.gap_ppcp_get), 16) \
432
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_device_name_set,cmd.gap_device_name_set), 17) \
433
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_device_name_get,cmd.gap_device_name_get), 18) \
434
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_authenticate,cmd.gap_authenticate), 19) \
435
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_sec_params_reply,cmd.gap_sec_params_reply), 20) \
436
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_auth_key_reply,cmd.gap_auth_key_reply), 21) \
437
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_lesc_dhkey_reply,cmd.gap_lesc_dhkey_reply), 22) \
438
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_keypress_notify,cmd.gap_keypress_notify), 23) \
439
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_lesc_oob_data_get,cmd.gap_lesc_oob_data_get), 24) \
440
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_lesc_oob_data_set,cmd.gap_lesc_oob_data_set), 25) \
441
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_encrypt,cmd.gap_encrypt), 26) \
442
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_sec_info_reply,cmd.gap_sec_info_reply), 27) \
443
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_conn_sec_get,cmd.gap_conn_sec_get), 28) \
444
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_rssi_start,cmd.gap_rssi_start), 29) \
445
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_rssi_stop,cmd.gap_rssi_stop), 30) \
446
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_scan_start,cmd.gap_scan_start), 31) \
447
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_scan_stop,cmd.gap_scan_stop), 32) \
448
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_connect,cmd.gap_connect), 33) \
449
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_connect_cancel,cmd.gap_connect_cancel), 34) \
450
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_rssi_get,cmd.gap_rssi_get), 35) \
451
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_phy_update,cmd.gap_phy_update), 36) \
452
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_data_length_update,cmd.gap_data_length_update), 37) \
453
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_qos_channel_survey_start,cmd.gap_qos_channel_survey_start), 38) \
454
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_qos_channel_survey_stop,cmd.gap_qos_channel_survey_stop), 39) \
455
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_adv_addr_get,cmd.gap_adv_addr_get), 40) \
456
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_next_conn_evt_counter_get,cmd.gap_next_conn_evt_counter_get), 41) \
457
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_conn_evt_trigger_start,cmd.gap_conn_evt_trigger_start), 42) \
458
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gap_conn_evt_trigger_stop,cmd.gap_conn_evt_trigger_stop), 43) \
459
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_primary_services_discover,cmd.gattc_primary_services_discover), 44) \
460
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_relationships_discover,cmd.gattc_relationships_discover), 45) \
461
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_characteristics_discover,cmd.gattc_characteristics_discover), 46) \
462
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_descriptors_discover,cmd.gattc_descriptors_discover), 47) \
463
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_attr_info_discover,cmd.gattc_attr_info_discover), 48) \
464
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_char_value_by_uuid_read,cmd.gattc_char_value_by_uuid_read), 49) \
465
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_read,cmd.gattc_read), 50) \
466
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_char_values_read,cmd.gattc_char_values_read), 51) \
467
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_write,cmd.gattc_write), 52) \
468
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_hv_confirm,cmd.gattc_hv_confirm), 53) \
469
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gattc_exchange_mtu_request,cmd.gattc_exchange_mtu_request), 54) \
470
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_service_add,cmd.gatts_service_add), 55) \
471
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_include_add,cmd.gatts_include_add), 56) \
472
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_characteristic_add,cmd.gatts_characteristic_add), 57) \
473
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_descriptor_add,cmd.gatts_descriptor_add), 58) \
474
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_value_set,cmd.gatts_value_set), 59) \
475
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_value_get,cmd.gatts_value_get), 60) \
476
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_hvx,cmd.gatts_hvx), 61) \
477
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_service_changed,cmd.gatts_service_changed), 62) \
478
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_rw_authorize_reply,cmd.gatts_rw_authorize_reply), 63) \
479
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_sys_attr_set,cmd.gatts_sys_attr_set), 64) \
480
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_sys_attr_get,cmd.gatts_sys_attr_get), 65) \
481
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_initial_user_handle_get,cmd.gatts_initial_user_handle_get), 66) \
482
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_attr_get,cmd.gatts_attr_get), 67) \
483
- X(a, STATIC, ONEOF, MESSAGE, (cmd,gatts_exchange_mtu_reply,cmd.gatts_exchange_mtu_reply), 68)
484
- #define sd_Command_CALLBACK NULL
485
- #define sd_Command_DEFAULT NULL
486
- #define sd_Command_cmd_gap_addr_set_MSGTYPE sd_GapAddrSetCmd
487
- #define sd_Command_cmd_gap_addr_get_MSGTYPE sd_GapAddrGetCmd
488
- #define sd_Command_cmd_gap_whitelist_set_MSGTYPE sd_GapWhitelistSetCmd
489
- #define sd_Command_cmd_gap_device_identities_set_MSGTYPE sd_GapDeviceIdentitiesSetCmd
490
- #define sd_Command_cmd_gap_privacy_set_MSGTYPE sd_GapPrivacySetCmd
491
- #define sd_Command_cmd_gap_privacy_get_MSGTYPE sd_GapPrivacyGetCmd
492
- #define sd_Command_cmd_gap_adv_set_configure_MSGTYPE sd_GapAdvSetConfigureCmd
493
- #define sd_Command_cmd_gap_adv_start_MSGTYPE sd_GapAdvStartCmd
494
- #define sd_Command_cmd_gap_adv_stop_MSGTYPE sd_GapAdvStopCmd
495
- #define sd_Command_cmd_gap_conn_param_update_MSGTYPE sd_GapConnParamUpdateCmd
496
- #define sd_Command_cmd_gap_disconnect_MSGTYPE sd_GapDisconnectCmd
497
- #define sd_Command_cmd_gap_tx_power_set_MSGTYPE sd_GapTxPowerSetCmd
498
- #define sd_Command_cmd_gap_appearance_set_MSGTYPE sd_GapAppearanceSetCmd
499
- #define sd_Command_cmd_gap_appearance_get_MSGTYPE sd_GapAppearanceGetCmd
500
- #define sd_Command_cmd_gap_ppcp_set_MSGTYPE sd_GapPpcpSetCmd
501
- #define sd_Command_cmd_gap_ppcp_get_MSGTYPE sd_GapPpcpGetCmd
502
- #define sd_Command_cmd_gap_device_name_set_MSGTYPE sd_GapDeviceNameSetCmd
503
- #define sd_Command_cmd_gap_device_name_get_MSGTYPE sd_GapDeviceNameGetCmd
504
- #define sd_Command_cmd_gap_authenticate_MSGTYPE sd_GapAuthenticateCmd
505
- #define sd_Command_cmd_gap_sec_params_reply_MSGTYPE sd_GapSecParamsReplyCmd
506
- #define sd_Command_cmd_gap_auth_key_reply_MSGTYPE sd_GapAuthKeyReplyCmd
507
- #define sd_Command_cmd_gap_lesc_dhkey_reply_MSGTYPE sd_GapLescDhkeyReplyCmd
508
- #define sd_Command_cmd_gap_keypress_notify_MSGTYPE sd_GapKeypressNotifyCmd
509
- #define sd_Command_cmd_gap_lesc_oob_data_get_MSGTYPE sd_GapLescOobDataGetCmd
510
- #define sd_Command_cmd_gap_lesc_oob_data_set_MSGTYPE sd_GapLescOobDataSetCmd
511
- #define sd_Command_cmd_gap_encrypt_MSGTYPE sd_GapEncryptCmd
512
- #define sd_Command_cmd_gap_sec_info_reply_MSGTYPE sd_GapSecInfoReplyCmd
513
- #define sd_Command_cmd_gap_conn_sec_get_MSGTYPE sd_GapConnSecGetCmd
514
- #define sd_Command_cmd_gap_rssi_start_MSGTYPE sd_GapRssiStartCmd
515
- #define sd_Command_cmd_gap_rssi_stop_MSGTYPE sd_GapRssiStopCmd
516
- #define sd_Command_cmd_gap_scan_start_MSGTYPE sd_GapScanStartCmd
517
- #define sd_Command_cmd_gap_scan_stop_MSGTYPE sd_GapScanStopCmd
518
- #define sd_Command_cmd_gap_connect_MSGTYPE sd_GapConnectCmd
519
- #define sd_Command_cmd_gap_connect_cancel_MSGTYPE sd_GapConnectCancelCmd
520
- #define sd_Command_cmd_gap_rssi_get_MSGTYPE sd_GapRssiGetCmd
521
- #define sd_Command_cmd_gap_phy_update_MSGTYPE sd_GapPhyUpdateCmd
522
- #define sd_Command_cmd_gap_data_length_update_MSGTYPE sd_GapDataLengthUpdateCmd
523
- #define sd_Command_cmd_gap_qos_channel_survey_start_MSGTYPE sd_GapQosChannelSurveyStartCmd
524
- #define sd_Command_cmd_gap_qos_channel_survey_stop_MSGTYPE sd_GapQosChannelSurveyStopCmd
525
- #define sd_Command_cmd_gap_adv_addr_get_MSGTYPE sd_GapAdvAddrGetCmd
526
- #define sd_Command_cmd_gap_next_conn_evt_counter_get_MSGTYPE sd_GapNextConnEvtCounterGetCmd
527
- #define sd_Command_cmd_gap_conn_evt_trigger_start_MSGTYPE sd_GapConnEvtTriggerStartCmd
528
- #define sd_Command_cmd_gap_conn_evt_trigger_stop_MSGTYPE sd_GapConnEvtTriggerStopCmd
529
- #define sd_Command_cmd_gattc_primary_services_discover_MSGTYPE sd_GattcPrimaryServicesDiscoverCmd
530
- #define sd_Command_cmd_gattc_relationships_discover_MSGTYPE sd_GattcRelationshipsDiscoverCmd
531
- #define sd_Command_cmd_gattc_characteristics_discover_MSGTYPE sd_GattcCharacteristicsDiscoverCmd
532
- #define sd_Command_cmd_gattc_descriptors_discover_MSGTYPE sd_GattcDescriptorsDiscoverCmd
533
- #define sd_Command_cmd_gattc_attr_info_discover_MSGTYPE sd_GattcAttrInfoDiscoverCmd
534
- #define sd_Command_cmd_gattc_char_value_by_uuid_read_MSGTYPE sd_GattcCharValueByUuidReadCmd
535
- #define sd_Command_cmd_gattc_read_MSGTYPE sd_GattcReadCmd
536
- #define sd_Command_cmd_gattc_char_values_read_MSGTYPE sd_GattcCharValuesReadCmd
537
- #define sd_Command_cmd_gattc_write_MSGTYPE sd_GattcWriteCmd
538
- #define sd_Command_cmd_gattc_hv_confirm_MSGTYPE sd_GattcHvConfirmCmd
539
- #define sd_Command_cmd_gattc_exchange_mtu_request_MSGTYPE sd_GattcExchangeMtuRequestCmd
540
- #define sd_Command_cmd_gatts_service_add_MSGTYPE sd_GattsServiceAddCmd
541
- #define sd_Command_cmd_gatts_include_add_MSGTYPE sd_GattsIncludeAddCmd
542
- #define sd_Command_cmd_gatts_characteristic_add_MSGTYPE sd_GattsCharacteristicAddCmd
543
- #define sd_Command_cmd_gatts_descriptor_add_MSGTYPE sd_GattsDescriptorAddCmd
544
- #define sd_Command_cmd_gatts_value_set_MSGTYPE sd_GattsValueSetCmd
545
- #define sd_Command_cmd_gatts_value_get_MSGTYPE sd_GattsValueGetCmd
546
- #define sd_Command_cmd_gatts_hvx_MSGTYPE sd_GattsHvxCmd
547
- #define sd_Command_cmd_gatts_service_changed_MSGTYPE sd_GattsServiceChangedCmd
548
- #define sd_Command_cmd_gatts_rw_authorize_reply_MSGTYPE sd_GattsRwAuthorizeReplyCmd
549
- #define sd_Command_cmd_gatts_sys_attr_set_MSGTYPE sd_GattsSysAttrSetCmd
550
- #define sd_Command_cmd_gatts_sys_attr_get_MSGTYPE sd_GattsSysAttrGetCmd
551
- #define sd_Command_cmd_gatts_initial_user_handle_get_MSGTYPE sd_GattsInitialUserHandleGetCmd
552
- #define sd_Command_cmd_gatts_attr_get_MSGTYPE sd_GattsAttrGetCmd
553
- #define sd_Command_cmd_gatts_exchange_mtu_reply_MSGTYPE sd_GattsExchangeMtuReplyCmd
554
-
555
- #define sd_Response_FIELDLIST(X, a) \
556
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_addr_set,rsp.gap_addr_set), 1) \
557
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_addr_get,rsp.gap_addr_get), 2) \
558
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_whitelist_set,rsp.gap_whitelist_set), 3) \
559
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_device_identities_set,rsp.gap_device_identities_set), 4) \
560
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_privacy_set,rsp.gap_privacy_set), 5) \
561
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_privacy_get,rsp.gap_privacy_get), 6) \
562
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_adv_set_configure,rsp.gap_adv_set_configure), 7) \
563
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_adv_start,rsp.gap_adv_start), 8) \
564
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_adv_stop,rsp.gap_adv_stop), 9) \
565
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_conn_param_update,rsp.gap_conn_param_update), 10) \
566
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_disconnect,rsp.gap_disconnect), 11) \
567
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_tx_power_set,rsp.gap_tx_power_set), 12) \
568
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_appearance_set,rsp.gap_appearance_set), 13) \
569
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_appearance_get,rsp.gap_appearance_get), 14) \
570
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_ppcp_set,rsp.gap_ppcp_set), 15) \
571
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_ppcp_get,rsp.gap_ppcp_get), 16) \
572
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_device_name_set,rsp.gap_device_name_set), 17) \
573
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_device_name_get,rsp.gap_device_name_get), 18) \
574
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_authenticate,rsp.gap_authenticate), 19) \
575
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_sec_params_reply,rsp.gap_sec_params_reply), 20) \
576
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_auth_key_reply,rsp.gap_auth_key_reply), 21) \
577
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_lesc_dhkey_reply,rsp.gap_lesc_dhkey_reply), 22) \
578
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_keypress_notify,rsp.gap_keypress_notify), 23) \
579
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_lesc_oob_data_get,rsp.gap_lesc_oob_data_get), 24) \
580
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_lesc_oob_data_set,rsp.gap_lesc_oob_data_set), 25) \
581
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_encrypt,rsp.gap_encrypt), 26) \
582
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_sec_info_reply,rsp.gap_sec_info_reply), 27) \
583
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_conn_sec_get,rsp.gap_conn_sec_get), 28) \
584
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_rssi_start,rsp.gap_rssi_start), 29) \
585
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_rssi_stop,rsp.gap_rssi_stop), 30) \
586
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_scan_start,rsp.gap_scan_start), 31) \
587
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_scan_stop,rsp.gap_scan_stop), 32) \
588
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_connect,rsp.gap_connect), 33) \
589
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_connect_cancel,rsp.gap_connect_cancel), 34) \
590
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_rssi_get,rsp.gap_rssi_get), 35) \
591
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_phy_update,rsp.gap_phy_update), 36) \
592
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_data_length_update,rsp.gap_data_length_update), 37) \
593
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_qos_channel_survey_start,rsp.gap_qos_channel_survey_start), 38) \
594
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_qos_channel_survey_stop,rsp.gap_qos_channel_survey_stop), 39) \
595
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_adv_addr_get,rsp.gap_adv_addr_get), 40) \
596
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_next_conn_evt_counter_get,rsp.gap_next_conn_evt_counter_get), 41) \
597
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_conn_evt_trigger_start,rsp.gap_conn_evt_trigger_start), 42) \
598
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gap_conn_evt_trigger_stop,rsp.gap_conn_evt_trigger_stop), 43) \
599
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_primary_services_discover,rsp.gattc_primary_services_discover), 44) \
600
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_relationships_discover,rsp.gattc_relationships_discover), 45) \
601
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_characteristics_discover,rsp.gattc_characteristics_discover), 46) \
602
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_descriptors_discover,rsp.gattc_descriptors_discover), 47) \
603
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_attr_info_discover,rsp.gattc_attr_info_discover), 48) \
604
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_char_value_by_uuid_read,rsp.gattc_char_value_by_uuid_read), 49) \
605
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_read,rsp.gattc_read), 50) \
606
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_char_values_read,rsp.gattc_char_values_read), 51) \
607
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_write,rsp.gattc_write), 52) \
608
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_hv_confirm,rsp.gattc_hv_confirm), 53) \
609
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gattc_exchange_mtu_request,rsp.gattc_exchange_mtu_request), 54) \
610
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_service_add,rsp.gatts_service_add), 55) \
611
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_include_add,rsp.gatts_include_add), 56) \
612
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_characteristic_add,rsp.gatts_characteristic_add), 57) \
613
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_descriptor_add,rsp.gatts_descriptor_add), 58) \
614
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_value_set,rsp.gatts_value_set), 59) \
615
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_value_get,rsp.gatts_value_get), 60) \
616
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_hvx,rsp.gatts_hvx), 61) \
617
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_service_changed,rsp.gatts_service_changed), 62) \
618
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_rw_authorize_reply,rsp.gatts_rw_authorize_reply), 63) \
619
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_sys_attr_set,rsp.gatts_sys_attr_set), 64) \
620
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_sys_attr_get,rsp.gatts_sys_attr_get), 65) \
621
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_initial_user_handle_get,rsp.gatts_initial_user_handle_get), 66) \
622
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_attr_get,rsp.gatts_attr_get), 67) \
623
- X(a, STATIC, ONEOF, MESSAGE, (rsp,gatts_exchange_mtu_reply,rsp.gatts_exchange_mtu_reply), 68)
624
- #define sd_Response_CALLBACK NULL
625
- #define sd_Response_DEFAULT NULL
626
- #define sd_Response_rsp_gap_addr_set_MSGTYPE sd_GapAddrSetRsp
627
- #define sd_Response_rsp_gap_addr_get_MSGTYPE sd_GapAddrGetRsp
628
- #define sd_Response_rsp_gap_whitelist_set_MSGTYPE sd_GapWhitelistSetRsp
629
- #define sd_Response_rsp_gap_device_identities_set_MSGTYPE sd_GapDeviceIdentitiesSetRsp
630
- #define sd_Response_rsp_gap_privacy_set_MSGTYPE sd_GapPrivacySetRsp
631
- #define sd_Response_rsp_gap_privacy_get_MSGTYPE sd_GapPrivacyGetRsp
632
- #define sd_Response_rsp_gap_adv_set_configure_MSGTYPE sd_GapAdvSetConfigureRsp
633
- #define sd_Response_rsp_gap_adv_start_MSGTYPE sd_GapAdvStartRsp
634
- #define sd_Response_rsp_gap_adv_stop_MSGTYPE sd_GapAdvStopRsp
635
- #define sd_Response_rsp_gap_conn_param_update_MSGTYPE sd_GapConnParamUpdateRsp
636
- #define sd_Response_rsp_gap_disconnect_MSGTYPE sd_GapDisconnectRsp
637
- #define sd_Response_rsp_gap_tx_power_set_MSGTYPE sd_GapTxPowerSetRsp
638
- #define sd_Response_rsp_gap_appearance_set_MSGTYPE sd_GapAppearanceSetRsp
639
- #define sd_Response_rsp_gap_appearance_get_MSGTYPE sd_GapAppearanceGetRsp
640
- #define sd_Response_rsp_gap_ppcp_set_MSGTYPE sd_GapPpcpSetRsp
641
- #define sd_Response_rsp_gap_ppcp_get_MSGTYPE sd_GapPpcpGetRsp
642
- #define sd_Response_rsp_gap_device_name_set_MSGTYPE sd_GapDeviceNameSetRsp
643
- #define sd_Response_rsp_gap_device_name_get_MSGTYPE sd_GapDeviceNameGetRsp
644
- #define sd_Response_rsp_gap_authenticate_MSGTYPE sd_GapAuthenticateRsp
645
- #define sd_Response_rsp_gap_sec_params_reply_MSGTYPE sd_GapSecParamsReplyRsp
646
- #define sd_Response_rsp_gap_auth_key_reply_MSGTYPE sd_GapAuthKeyReplyRsp
647
- #define sd_Response_rsp_gap_lesc_dhkey_reply_MSGTYPE sd_GapLescDhkeyReplyRsp
648
- #define sd_Response_rsp_gap_keypress_notify_MSGTYPE sd_GapKeypressNotifyRsp
649
- #define sd_Response_rsp_gap_lesc_oob_data_get_MSGTYPE sd_GapLescOobDataGetRsp
650
- #define sd_Response_rsp_gap_lesc_oob_data_set_MSGTYPE sd_GapLescOobDataSetRsp
651
- #define sd_Response_rsp_gap_encrypt_MSGTYPE sd_GapEncryptRsp
652
- #define sd_Response_rsp_gap_sec_info_reply_MSGTYPE sd_GapSecInfoReplyRsp
653
- #define sd_Response_rsp_gap_conn_sec_get_MSGTYPE sd_GapConnSecGetRsp
654
- #define sd_Response_rsp_gap_rssi_start_MSGTYPE sd_GapRssiStartRsp
655
- #define sd_Response_rsp_gap_rssi_stop_MSGTYPE sd_GapRssiStopRsp
656
- #define sd_Response_rsp_gap_scan_start_MSGTYPE sd_GapScanStartRsp
657
- #define sd_Response_rsp_gap_scan_stop_MSGTYPE sd_GapScanStopRsp
658
- #define sd_Response_rsp_gap_connect_MSGTYPE sd_GapConnectRsp
659
- #define sd_Response_rsp_gap_connect_cancel_MSGTYPE sd_GapConnectCancelRsp
660
- #define sd_Response_rsp_gap_rssi_get_MSGTYPE sd_GapRssiGetRsp
661
- #define sd_Response_rsp_gap_phy_update_MSGTYPE sd_GapPhyUpdateRsp
662
- #define sd_Response_rsp_gap_data_length_update_MSGTYPE sd_GapDataLengthUpdateRsp
663
- #define sd_Response_rsp_gap_qos_channel_survey_start_MSGTYPE sd_GapQosChannelSurveyStartRsp
664
- #define sd_Response_rsp_gap_qos_channel_survey_stop_MSGTYPE sd_GapQosChannelSurveyStopRsp
665
- #define sd_Response_rsp_gap_adv_addr_get_MSGTYPE sd_GapAdvAddrGetRsp
666
- #define sd_Response_rsp_gap_next_conn_evt_counter_get_MSGTYPE sd_GapNextConnEvtCounterGetRsp
667
- #define sd_Response_rsp_gap_conn_evt_trigger_start_MSGTYPE sd_GapConnEvtTriggerStartRsp
668
- #define sd_Response_rsp_gap_conn_evt_trigger_stop_MSGTYPE sd_GapConnEvtTriggerStopRsp
669
- #define sd_Response_rsp_gattc_primary_services_discover_MSGTYPE sd_GattcPrimaryServicesDiscoverRsp
670
- #define sd_Response_rsp_gattc_relationships_discover_MSGTYPE sd_GattcRelationshipsDiscoverRsp
671
- #define sd_Response_rsp_gattc_characteristics_discover_MSGTYPE sd_GattcCharacteristicsDiscoverRsp
672
- #define sd_Response_rsp_gattc_descriptors_discover_MSGTYPE sd_GattcDescriptorsDiscoverRsp
673
- #define sd_Response_rsp_gattc_attr_info_discover_MSGTYPE sd_GattcAttrInfoDiscoverRsp
674
- #define sd_Response_rsp_gattc_char_value_by_uuid_read_MSGTYPE sd_GattcCharValueByUuidReadRsp
675
- #define sd_Response_rsp_gattc_read_MSGTYPE sd_GattcReadRsp
676
- #define sd_Response_rsp_gattc_char_values_read_MSGTYPE sd_GattcCharValuesReadRsp
677
- #define sd_Response_rsp_gattc_write_MSGTYPE sd_GattcWriteRsp
678
- #define sd_Response_rsp_gattc_hv_confirm_MSGTYPE sd_GattcHvConfirmRsp
679
- #define sd_Response_rsp_gattc_exchange_mtu_request_MSGTYPE sd_GattcExchangeMtuRequestRsp
680
- #define sd_Response_rsp_gatts_service_add_MSGTYPE sd_GattsServiceAddRsp
681
- #define sd_Response_rsp_gatts_include_add_MSGTYPE sd_GattsIncludeAddRsp
682
- #define sd_Response_rsp_gatts_characteristic_add_MSGTYPE sd_GattsCharacteristicAddRsp
683
- #define sd_Response_rsp_gatts_descriptor_add_MSGTYPE sd_GattsDescriptorAddRsp
684
- #define sd_Response_rsp_gatts_value_set_MSGTYPE sd_GattsValueSetRsp
685
- #define sd_Response_rsp_gatts_value_get_MSGTYPE sd_GattsValueGetRsp
686
- #define sd_Response_rsp_gatts_hvx_MSGTYPE sd_GattsHvxRsp
687
- #define sd_Response_rsp_gatts_service_changed_MSGTYPE sd_GattsServiceChangedRsp
688
- #define sd_Response_rsp_gatts_rw_authorize_reply_MSGTYPE sd_GattsRwAuthorizeReplyRsp
689
- #define sd_Response_rsp_gatts_sys_attr_set_MSGTYPE sd_GattsSysAttrSetRsp
690
- #define sd_Response_rsp_gatts_sys_attr_get_MSGTYPE sd_GattsSysAttrGetRsp
691
- #define sd_Response_rsp_gatts_initial_user_handle_get_MSGTYPE sd_GattsInitialUserHandleGetRsp
692
- #define sd_Response_rsp_gatts_attr_get_MSGTYPE sd_GattsAttrGetRsp
693
- #define sd_Response_rsp_gatts_exchange_mtu_reply_MSGTYPE sd_GattsExchangeMtuReplyRsp
694
-
695
- #define sd_Event_FIELDLIST(X, a) \
696
- X(a, STATIC, SINGULAR, UINT32, conn_handle, 1) \
697
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_connected,evt.gap_connected), 2) \
698
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_disconnected,evt.gap_disconnected), 3) \
699
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_conn_param_update,evt.gap_conn_param_update), 4) \
700
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_sec_params_request,evt.gap_sec_params_request), 5) \
701
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_sec_info_request,evt.gap_sec_info_request), 6) \
702
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_passkey_display,evt.gap_passkey_display), 7) \
703
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_key_pressed,evt.gap_key_pressed), 8) \
704
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_auth_key_request,evt.gap_auth_key_request), 9) \
705
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_lesc_dhkey_request,evt.gap_lesc_dhkey_request), 10) \
706
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_auth_status,evt.gap_auth_status), 11) \
707
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_conn_sec_update,evt.gap_conn_sec_update), 12) \
708
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_timeout,evt.gap_timeout), 13) \
709
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_rssi_changed,evt.gap_rssi_changed), 14) \
710
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_adv_report,evt.gap_adv_report), 15) \
711
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_adv_set_terminated,evt.gap_adv_set_terminated), 16) \
712
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_sec_request,evt.gap_sec_request), 17) \
713
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_conn_param_update_request,evt.gap_conn_param_update_request), 18) \
714
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_scan_req_report,evt.gap_scan_req_report), 19) \
715
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_phy_update_request,evt.gap_phy_update_request), 20) \
716
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_phy_update,evt.gap_phy_update), 21) \
717
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_data_length_update_request,evt.gap_data_length_update_request), 22) \
718
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_data_length_update,evt.gap_data_length_update), 23) \
719
- X(a, STATIC, ONEOF, MESSAGE, (evt,gap_qos_channel_survey_report,evt.gap_qos_channel_survey_report), 24) \
720
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_prim_srvc_disc_rsp,evt.gattc_prim_srvc_disc_rsp), 25) \
721
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_rel_disc_rsp,evt.gattc_rel_disc_rsp), 26) \
722
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_char_disc_rsp,evt.gattc_char_disc_rsp), 27) \
723
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_desc_disc_rsp,evt.gattc_desc_disc_rsp), 28) \
724
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_char_val_by_uuid_read_rsp,evt.gattc_char_val_by_uuid_read_rsp), 29) \
725
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_read_rsp,evt.gattc_read_rsp), 30) \
726
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_char_vals_read_rsp,evt.gattc_char_vals_read_rsp), 31) \
727
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_write_rsp,evt.gattc_write_rsp), 32) \
728
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_hvx,evt.gattc_hvx), 33) \
729
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_exchange_mtu_rsp,evt.gattc_exchange_mtu_rsp), 34) \
730
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_timeout_gattc,evt.gattc_timeout_gattc), 35) \
731
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_attr_info_disc_rsp,evt.gattc_attr_info_disc_rsp), 36) \
732
- X(a, STATIC, ONEOF, MESSAGE, (evt,gattc_write_cmd_tx_complete,evt.gattc_write_cmd_tx_complete), 37) \
733
- X(a, STATIC, ONEOF, MESSAGE, (evt,gatts_write_gatts,evt.gatts_write_gatts), 38) \
734
- X(a, STATIC, ONEOF, MESSAGE, (evt,gatts_authorize_request,evt.gatts_authorize_request), 39) \
735
- X(a, STATIC, ONEOF, MESSAGE, (evt,gatts_sys_attr_missing,evt.gatts_sys_attr_missing), 40) \
736
- X(a, STATIC, ONEOF, MESSAGE, (evt,gatts_hvc,evt.gatts_hvc), 41) \
737
- X(a, STATIC, ONEOF, MESSAGE, (evt,gatts_exchange_mtu_request,evt.gatts_exchange_mtu_request), 42) \
738
- X(a, STATIC, ONEOF, MESSAGE, (evt,gatts_timeout_gatts,evt.gatts_timeout_gatts), 43) \
739
- X(a, STATIC, ONEOF, MESSAGE, (evt,gatts_hvn_tx_complete,evt.gatts_hvn_tx_complete), 44)
740
- #define sd_Event_CALLBACK NULL
741
- #define sd_Event_DEFAULT NULL
742
- #define sd_Event_evt_gap_connected_MSGTYPE sd_GapEvtConnected
743
- #define sd_Event_evt_gap_disconnected_MSGTYPE sd_GapEvtDisconnected
744
- #define sd_Event_evt_gap_conn_param_update_MSGTYPE sd_GapEvtConnParamUpdate
745
- #define sd_Event_evt_gap_sec_params_request_MSGTYPE sd_GapEvtSecParamsRequest
746
- #define sd_Event_evt_gap_sec_info_request_MSGTYPE sd_GapEvtSecInfoRequest
747
- #define sd_Event_evt_gap_passkey_display_MSGTYPE sd_GapEvtPasskeyDisplay
748
- #define sd_Event_evt_gap_key_pressed_MSGTYPE sd_GapEvtKeyPressed
749
- #define sd_Event_evt_gap_auth_key_request_MSGTYPE sd_GapEvtAuthKeyRequest
750
- #define sd_Event_evt_gap_lesc_dhkey_request_MSGTYPE sd_GapEvtLescDhkeyRequest
751
- #define sd_Event_evt_gap_auth_status_MSGTYPE sd_GapEvtAuthStatus
752
- #define sd_Event_evt_gap_conn_sec_update_MSGTYPE sd_GapEvtConnSecUpdate
753
- #define sd_Event_evt_gap_timeout_MSGTYPE sd_GapEvtTimeout
754
- #define sd_Event_evt_gap_rssi_changed_MSGTYPE sd_GapEvtRssiChanged
755
- #define sd_Event_evt_gap_adv_report_MSGTYPE sd_GapEvtAdvReport
756
- #define sd_Event_evt_gap_adv_set_terminated_MSGTYPE sd_GapEvtAdvSetTerminated
757
- #define sd_Event_evt_gap_sec_request_MSGTYPE sd_GapEvtSecRequest
758
- #define sd_Event_evt_gap_conn_param_update_request_MSGTYPE sd_GapEvtConnParamUpdateRequest
759
- #define sd_Event_evt_gap_scan_req_report_MSGTYPE sd_GapEvtScanReqReport
760
- #define sd_Event_evt_gap_phy_update_request_MSGTYPE sd_GapEvtPhyUpdateRequest
761
- #define sd_Event_evt_gap_phy_update_MSGTYPE sd_GapEvtPhyUpdate
762
- #define sd_Event_evt_gap_data_length_update_request_MSGTYPE sd_GapEvtDataLengthUpdateRequest
763
- #define sd_Event_evt_gap_data_length_update_MSGTYPE sd_GapEvtDataLengthUpdate
764
- #define sd_Event_evt_gap_qos_channel_survey_report_MSGTYPE sd_GapEvtQosChannelSurveyReport
765
- #define sd_Event_evt_gattc_prim_srvc_disc_rsp_MSGTYPE sd_GattcEvtPrimSrvcDiscRsp
766
- #define sd_Event_evt_gattc_rel_disc_rsp_MSGTYPE sd_GattcEvtRelDiscRsp
767
- #define sd_Event_evt_gattc_char_disc_rsp_MSGTYPE sd_GattcEvtCharDiscRsp
768
- #define sd_Event_evt_gattc_desc_disc_rsp_MSGTYPE sd_GattcEvtDescDiscRsp
769
- #define sd_Event_evt_gattc_char_val_by_uuid_read_rsp_MSGTYPE sd_GattcEvtCharValByUuidReadRsp
770
- #define sd_Event_evt_gattc_read_rsp_MSGTYPE sd_GattcEvtReadRsp
771
- #define sd_Event_evt_gattc_char_vals_read_rsp_MSGTYPE sd_GattcEvtCharValsReadRsp
772
- #define sd_Event_evt_gattc_write_rsp_MSGTYPE sd_GattcEvtWriteRsp
773
- #define sd_Event_evt_gattc_hvx_MSGTYPE sd_GattcEvtHvx
774
- #define sd_Event_evt_gattc_exchange_mtu_rsp_MSGTYPE sd_GattcEvtExchangeMtuRsp
775
- #define sd_Event_evt_gattc_timeout_gattc_MSGTYPE sd_GattcEvtTimeout
776
- #define sd_Event_evt_gattc_attr_info_disc_rsp_MSGTYPE sd_GattcEvtAttrInfoDiscRsp
777
- #define sd_Event_evt_gattc_write_cmd_tx_complete_MSGTYPE sd_GattcEvtWriteCmdTxComplete
778
- #define sd_Event_evt_gatts_write_gatts_MSGTYPE sd_GattsEvtWrite
779
- #define sd_Event_evt_gatts_authorize_request_MSGTYPE sd_GattsEvtRwAuthorizeRequest
780
- #define sd_Event_evt_gatts_sys_attr_missing_MSGTYPE sd_GattsEvtSysAttrMissing
781
- #define sd_Event_evt_gatts_hvc_MSGTYPE sd_GattsEvtHvc
782
- #define sd_Event_evt_gatts_exchange_mtu_request_MSGTYPE sd_GattsEvtExchangeMtuRequest
783
- #define sd_Event_evt_gatts_timeout_gatts_MSGTYPE sd_GattsEvtTimeout
784
- #define sd_Event_evt_gatts_hvn_tx_complete_MSGTYPE sd_GattsEvtHvnTxComplete
785
-
786
- extern const pb_msgdesc_t sd_Command_msg;
787
- extern const pb_msgdesc_t sd_Response_msg;
788
- extern const pb_msgdesc_t sd_Event_msg;
789
-
790
- /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
791
- #define sd_Command_fields &sd_Command_msg
792
- #define sd_Response_fields &sd_Response_msg
793
- #define sd_Event_fields &sd_Event_msg
794
-
795
- /* Maximum encoded size of messages (where known) */
796
- #if defined(sd_GattcCharValuesReadCmd_size)
797
- union sd_Command_cmd_size_union {char f51[(7 + sd_GattcCharValuesReadCmd_size)]; char f0[1236];};
798
- #endif
799
- #if defined(sd_GattcEvtPrimSrvcDiscRsp_size) && defined(sd_GattcEvtRelDiscRsp_size) && defined(sd_GattcEvtCharDiscRsp_size) && defined(sd_GattcEvtDescDiscRsp_size) && defined(sd_GattcEvtAttrInfoDiscRsp_size)
800
- union sd_Event_evt_size_union {char f25[(7 + sd_GattcEvtPrimSrvcDiscRsp_size)]; char f26[(7 + sd_GattcEvtRelDiscRsp_size)]; char f27[(7 + sd_GattcEvtCharDiscRsp_size)]; char f28[(7 + sd_GattcEvtDescDiscRsp_size)]; char f36[(7 + sd_GattcEvtAttrInfoDiscRsp_size)]; char f0[574];};
801
- #endif
802
- #if defined(sd_GattcCharValuesReadCmd_size)
803
- #define sd_Command_size (0 + sizeof(union sd_Command_cmd_size_union))
804
- #endif
805
- #define SD_SOFTDEVICE_PB_H_MAX_SIZE sd_Response_size
806
- #define sd_Response_size 543
807
- #if defined(sd_GattcEvtPrimSrvcDiscRsp_size) && defined(sd_GattcEvtRelDiscRsp_size) && defined(sd_GattcEvtCharDiscRsp_size) && defined(sd_GattcEvtDescDiscRsp_size) && defined(sd_GattcEvtAttrInfoDiscRsp_size)
808
- #define sd_Event_size (4 + sizeof(union sd_Event_evt_size_union))
809
- #endif
810
-
811
- #ifdef __cplusplus
812
- } /* extern "C" */
813
- #endif
814
-
815
- #endif