ble_gap_struct_serialization.h 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. /**
  2. * Copyright (c) 2014 - 2020, Nordic Semiconductor ASA
  3. *
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without modification,
  7. * are permitted provided that the following conditions are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright notice, this
  10. * list of conditions and the following disclaimer.
  11. *
  12. * 2. Redistributions in binary form, except as embedded into a Nordic
  13. * Semiconductor ASA integrated circuit in a product or a software update for
  14. * such product, must reproduce the above copyright notice, this list of
  15. * conditions and the following disclaimer in the documentation and/or other
  16. * materials provided with the distribution.
  17. *
  18. * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
  19. * contributors may be used to endorse or promote products derived from this
  20. * software without specific prior written permission.
  21. *
  22. * 4. This software, with or without modification, must only be used with a
  23. * Nordic Semiconductor ASA integrated circuit.
  24. *
  25. * 5. Any software provided in binary form under this license must not be reverse
  26. * engineered, decompiled, modified and/or disassembled.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
  29. * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  30. * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
  31. * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
  32. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  33. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  34. * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  37. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. */
  40. #ifndef BLE_GAP_STRUCT_SERIALIZATION_H__
  41. #define BLE_GAP_STRUCT_SERIALIZATION_H__
  42. #include "ble_gap.h"
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46. uint32_t ble_gap_evt_adv_report_t_enc(void const * const p_void_struct,
  47. uint8_t * const p_buf,
  48. uint32_t buf_len,
  49. uint32_t * const p_index);
  50. uint32_t ble_gap_evt_adv_report_t_dec(uint8_t const * const p_buf,
  51. uint32_t buf_len,
  52. uint32_t * const p_index,
  53. void * const p_void_struct);
  54. uint32_t ble_gap_irk_t_enc(void const * const p_void_struct,
  55. uint8_t * const p_buf,
  56. uint32_t buf_len,
  57. uint32_t * const p_index);
  58. uint32_t ble_gap_irk_t_dec(uint8_t const * const p_buf,
  59. uint32_t buf_len,
  60. uint32_t * const p_index,
  61. void * const p_void_struct);
  62. uint32_t ble_gap_addr_t_enc(void const * const p_void_struct,
  63. uint8_t * const p_buf,
  64. uint32_t buf_len,
  65. uint32_t * const p_index);
  66. uint32_t ble_gap_addr_t_dec(uint8_t const * const p_buf,
  67. uint32_t buf_len,
  68. uint32_t * const p_index,
  69. void * const p_void_struct);
  70. uint32_t ble_gap_sec_levels_t_enc(void const * const p_void_struct,
  71. uint8_t * const p_buf,
  72. uint32_t buf_len,
  73. uint32_t * const p_index);
  74. uint32_t ble_gap_sec_levels_t_dec(uint8_t const * const p_buf,
  75. uint32_t buf_len,
  76. uint32_t * const p_index,
  77. void * const p_void_struct);
  78. uint32_t ble_gap_sec_keys_t_enc(void const * const p_void_struct,
  79. uint8_t * const p_buf,
  80. uint32_t buf_len,
  81. uint32_t * const p_index);
  82. uint32_t ble_gap_sec_keys_t_dec(uint8_t const * const p_buf,
  83. uint32_t buf_len,
  84. uint32_t * const p_index,
  85. void * const p_void_struct);
  86. uint32_t ble_gap_enc_info_t_enc(void const * const p_void_struct,
  87. uint8_t * const p_buf,
  88. uint32_t buf_len,
  89. uint32_t * const p_index);
  90. uint32_t ble_gap_enc_info_t_dec(uint8_t const * const p_buf,
  91. uint32_t buf_len,
  92. uint32_t * const p_index,
  93. void * const p_void_struct);
  94. uint32_t ble_gap_sign_info_t_enc(void const * const p_void_struct,
  95. uint8_t * const p_buf,
  96. uint32_t buf_len,
  97. uint32_t * const p_index);
  98. uint32_t ble_gap_sign_info_t_dec(uint8_t const * const p_buf,
  99. uint32_t buf_len,
  100. uint32_t * const p_index,
  101. void * const p_void_struct);
  102. uint32_t ble_gap_evt_auth_status_t_enc(void const * const p_void_struct,
  103. uint8_t * const p_buf,
  104. uint32_t buf_len,
  105. uint32_t * const p_index);
  106. uint32_t ble_gap_evt_auth_status_t_dec(uint8_t const * const p_buf,
  107. uint32_t buf_len,
  108. uint32_t * const p_index,
  109. void * const p_void_struct);
  110. uint32_t ble_gap_conn_sec_mode_t_enc(void const * const p_void_struct,
  111. uint8_t * const p_buf,
  112. uint32_t buf_len,
  113. uint32_t * const p_index);
  114. uint32_t ble_gap_conn_sec_mode_t_dec(uint8_t const * const p_buf,
  115. uint32_t buf_len,
  116. uint32_t * const p_index,
  117. void * const p_void_struct);
  118. uint32_t ble_gap_conn_sec_t_enc(void const * const p_void_struct,
  119. uint8_t * const p_buf,
  120. uint32_t buf_len,
  121. uint32_t * const p_index);
  122. uint32_t ble_gap_conn_sec_t_dec(uint8_t const * const p_buf,
  123. uint32_t buf_len,
  124. uint32_t * const p_index,
  125. void * const p_void_struct);
  126. uint32_t ble_gap_evt_conn_sec_update_t_enc(void const * const p_void_struct,
  127. uint8_t * const p_buf,
  128. uint32_t buf_len,
  129. uint32_t * const p_index);
  130. uint32_t ble_gap_evt_conn_sec_update_t_dec(uint8_t const * const p_buf,
  131. uint32_t buf_len,
  132. uint32_t * const p_index,
  133. void * const p_void_struct);
  134. uint32_t ble_gap_evt_sec_info_request_t_enc(void const * const p_void_struct,
  135. uint8_t * const p_buf,
  136. uint32_t buf_len,
  137. uint32_t * const p_index);
  138. uint32_t ble_gap_evt_sec_info_request_t_dec(uint8_t const * const p_buf,
  139. uint32_t buf_len,
  140. uint32_t * const p_index,
  141. void * const p_void_struct);
  142. uint32_t ble_gap_evt_connected_t_enc(void const * const p_void_struct,
  143. uint8_t * const p_buf,
  144. uint32_t buf_len,
  145. uint32_t * const p_index);
  146. uint32_t ble_gap_evt_connected_t_dec(uint8_t const * const p_buf,
  147. uint32_t buf_len,
  148. uint32_t * const p_index,
  149. void * const p_void_struct);
  150. uint32_t ble_gap_sec_params_t_enc(void const * const p_void_struct,
  151. uint8_t * const p_buf,
  152. uint32_t buf_len,
  153. uint32_t * const p_index);
  154. uint32_t ble_gap_sec_params_t_dec(uint8_t const * const p_buf,
  155. uint32_t buf_len,
  156. uint32_t * const p_index,
  157. void * const p_void_struct);
  158. uint32_t ble_gap_evt_sec_params_request_t_enc(void const * const p_void_struct,
  159. uint8_t * const p_buf,
  160. uint32_t buf_len,
  161. uint32_t * const p_index);
  162. uint32_t ble_gap_evt_sec_params_request_t_dec(uint8_t const * const p_buf,
  163. uint32_t buf_len,
  164. uint32_t * const p_index,
  165. void * const p_void_struct);
  166. uint32_t ble_gap_conn_params_t_enc(void const * const p_void_struct,
  167. uint8_t * const p_buf,
  168. uint32_t buf_len,
  169. uint32_t * const p_index);
  170. uint32_t ble_gap_conn_params_t_dec(uint8_t const * const p_buf,
  171. uint32_t buf_len,
  172. uint32_t * const p_index,
  173. void * const p_void_struct);
  174. uint32_t ble_gap_evt_conn_param_update_t_enc(void const * const p_void_struct,
  175. uint8_t * const p_buf,
  176. uint32_t buf_len,
  177. uint32_t * const p_index);
  178. uint32_t ble_gap_evt_conn_param_update_t_dec(uint8_t const * const p_buf,
  179. uint32_t buf_len,
  180. uint32_t * const p_index,
  181. void * const p_void_struct);
  182. uint32_t ble_gap_evt_conn_param_update_request_t_enc(void const * const p_void_struct,
  183. uint8_t * const p_buf,
  184. uint32_t buf_len,
  185. uint32_t * const p_index);
  186. uint32_t ble_gap_evt_conn_param_update_request_t_dec(uint8_t const * const p_buf,
  187. uint32_t buf_len,
  188. uint32_t * const p_index,
  189. void * const p_void_struct);
  190. uint32_t ble_gap_evt_disconnected_t_enc(void const * const p_void_struct,
  191. uint8_t * const p_buf,
  192. uint32_t buf_len,
  193. uint32_t * const p_index);
  194. uint32_t ble_gap_evt_disconnected_t_dec(uint8_t const * const p_buf,
  195. uint32_t buf_len,
  196. uint32_t * const p_index,
  197. void * const p_void_struct);
  198. uint32_t ble_gap_scan_params_t_enc(void const * const p_void_struct,
  199. uint8_t * const p_buf,
  200. uint32_t buf_len,
  201. uint32_t * const p_index);
  202. uint32_t ble_gap_scan_params_t_dec(uint8_t const * const p_buf,
  203. uint32_t buf_len,
  204. uint32_t * const p_index,
  205. void * const p_data);
  206. uint32_t ble_gap_master_id_t_enc(void const * const p_void_struct,
  207. uint8_t * const p_buf,
  208. uint32_t buf_len,
  209. uint32_t * const p_index);
  210. uint32_t ble_gap_master_id_t_dec(uint8_t const * const p_buf,
  211. uint32_t buf_len,
  212. uint32_t * const p_index,
  213. void * const p_void_struct);
  214. uint32_t ble_gap_enc_key_t_enc(void const * const p_void_struct,
  215. uint8_t * const p_buf,
  216. uint32_t buf_len,
  217. uint32_t * const p_index);
  218. uint32_t ble_gap_enc_key_t_dec(uint8_t const * const p_buf,
  219. uint32_t buf_len,
  220. uint32_t * const p_index,
  221. void * const p_void_struct);
  222. uint32_t ble_gap_id_key_t_enc(void const * const p_void_struct,
  223. uint8_t * const p_buf,
  224. uint32_t buf_len,
  225. uint32_t * const p_index);
  226. uint32_t ble_gap_id_key_t_dec(uint8_t const * const p_buf,
  227. uint32_t buf_len,
  228. uint32_t * const p_index,
  229. void * const p_void_struct);
  230. uint32_t ble_gap_sec_keyset_t_enc(void const * const p_void_struct,
  231. uint8_t * const p_buf,
  232. uint32_t buf_len,
  233. uint32_t * const p_index);
  234. uint32_t ble_gap_sec_keyset_t_dec(uint8_t const * const p_buf,
  235. uint32_t buf_len,
  236. uint32_t * const p_index,
  237. void * const p_void_struct);
  238. uint32_t ble_gap_evt_sec_request_t_enc(void const * const p_void_struct,
  239. uint8_t * const p_buf,
  240. uint32_t buf_len,
  241. uint32_t * const p_index);
  242. uint32_t ble_gap_evt_sec_request_t_dec(uint8_t const * const p_buf,
  243. uint32_t buf_len,
  244. uint32_t * const p_index,
  245. void * const p_void_struct);
  246. uint32_t ble_gap_sec_kdist_t_enc(void const * const p_void_struct,
  247. uint8_t * const p_buf,
  248. uint32_t buf_len,
  249. uint32_t * const p_index);
  250. uint32_t ble_gap_sec_kdist_t_dec(uint8_t const * const p_buf,
  251. uint32_t buf_len,
  252. uint32_t * const p_index,
  253. void * const p_void_struct);
  254. uint32_t ble_gap_opt_ch_map_t_enc(void const * const p_void_struct,
  255. uint8_t * const p_buf,
  256. uint32_t buf_len,
  257. uint32_t * const p_index);
  258. uint32_t ble_gap_opt_ch_map_t_dec(uint8_t const * const p_buf,
  259. uint32_t buf_len,
  260. uint32_t * const p_index,
  261. void * const p_void_struct);
  262. uint32_t ble_gap_opt_local_conn_latency_t_enc(void const * const p_void_struct,
  263. uint8_t * const p_buf,
  264. uint32_t buf_len,
  265. uint32_t * const p_index);
  266. uint32_t ble_gap_opt_local_conn_latency_t_dec(uint8_t const * const p_buf,
  267. uint32_t buf_len,
  268. uint32_t * const p_index,
  269. void * const p_void_struct);
  270. uint32_t ble_gap_opt_passkey_t_enc(void const * const p_void_struct,
  271. uint8_t * const p_buf,
  272. uint32_t buf_len,
  273. uint32_t * const p_index);
  274. uint32_t ble_gap_opt_passkey_t_dec(uint8_t const * const p_buf,
  275. uint32_t buf_len,
  276. uint32_t * const p_index,
  277. void * const p_void_struct);
  278. uint32_t ble_gap_opt_scan_req_report_t_enc(void const * const p_void_struct,
  279. uint8_t * const p_buf,
  280. uint32_t buf_len,
  281. uint32_t * const p_index);
  282. uint32_t ble_gap_opt_scan_req_report_t_dec(uint8_t const * const p_buf,
  283. uint32_t buf_len,
  284. uint32_t * const p_index,
  285. void * const p_void_struct);
  286. #if defined(NRF_SD_BLE_API_VERSION) && NRF_SD_BLE_API_VERSION < 4
  287. uint32_t ble_gap_opt_compat_mode_t_enc(void const * const p_void_struct,
  288. uint8_t * const p_buf,
  289. uint32_t buf_len,
  290. uint32_t * const p_index);
  291. uint32_t ble_gap_opt_compat_mode_t_dec(uint8_t const * const p_buf,
  292. uint32_t buf_len,
  293. uint32_t * const p_index,
  294. void * const p_void_struct);
  295. #endif
  296. uint32_t ble_gap_adv_ch_mask_t_enc(void const * const p_void_struct,
  297. uint8_t * const p_buf,
  298. uint32_t buf_len,
  299. uint32_t * const p_index);
  300. uint32_t ble_gap_adv_ch_mask_t_dec(uint8_t const * const p_buf,
  301. uint32_t buf_len,
  302. uint32_t * const p_index,
  303. void * const p_void_struct);
  304. uint32_t ble_gap_enable_params_t_enc(void const * const p_void_struct,
  305. uint8_t * const p_buf,
  306. uint32_t buf_len,
  307. uint32_t * const p_index);
  308. uint32_t ble_gap_enable_params_t_dec(uint8_t const * const p_buf,
  309. uint32_t buf_len,
  310. uint32_t * const p_index,
  311. void * const p_void_struct);
  312. uint32_t ble_gap_lesc_p256_pk_t_enc(void const * const p_void_struct,
  313. uint8_t * const p_buf,
  314. uint32_t buf_len,
  315. uint32_t * const p_index);
  316. uint32_t ble_gap_lesc_p256_pk_t_dec(uint8_t const * const p_buf,
  317. uint32_t buf_len,
  318. uint32_t * const p_index,
  319. void * const p_void_struct);
  320. uint32_t ble_gap_lesc_dhkey_t_enc(void const * const p_void_struct,
  321. uint8_t * const p_buf,
  322. uint32_t buf_len,
  323. uint32_t * const p_index);
  324. uint32_t ble_gap_lesc_dhkey_t_dec(uint8_t const * const p_buf,
  325. uint32_t buf_len,
  326. uint32_t * const p_index,
  327. void * const p_void_struct);
  328. uint32_t ble_gap_lesc_oob_data_t_enc(void const * const p_void_struct,
  329. uint8_t * const p_buf,
  330. uint32_t buf_len,
  331. uint32_t * const p_index);
  332. uint32_t ble_gap_lesc_oob_data_t_dec(uint8_t const * const p_buf,
  333. uint32_t buf_len,
  334. uint32_t * const p_index,
  335. void * const p_void_struct);
  336. uint32_t ble_gap_adv_params_t_enc(void const * const p_void_struct,
  337. uint8_t * const p_buf,
  338. uint32_t buf_len,
  339. uint32_t * const p_index);
  340. uint32_t ble_gap_adv_params_t_dec(uint8_t const * const p_buf,
  341. uint32_t buf_len,
  342. uint32_t * const p_index,
  343. void * const p_void_struct);
  344. #if defined(NRF_SD_BLE_API_VERSION) && NRF_SD_BLE_API_VERSION < 4
  345. uint32_t ble_gap_opt_ext_len_t_enc(void const * const p_void_struct,
  346. uint8_t * const p_buf,
  347. uint32_t buf_len,
  348. uint32_t * const p_index);
  349. uint32_t ble_gap_opt_ext_len_t_dec(uint8_t const * const p_buf,
  350. uint32_t buf_len,
  351. uint32_t * const p_index,
  352. void * const p_void_struct);
  353. #endif
  354. uint32_t ble_gap_opt_auth_payload_timeout_t_enc(void const * const p_void_struct,
  355. uint8_t * const p_buf,
  356. uint32_t buf_len,
  357. uint32_t * const p_index);
  358. uint32_t ble_gap_opt_auth_payload_timeout_t_dec(uint8_t const * const p_buf,
  359. uint32_t buf_len,
  360. uint32_t * const p_index,
  361. void * const p_void_struct);
  362. #if defined(NRF_SD_BLE_API_VERSION) && NRF_SD_BLE_API_VERSION < 4
  363. uint32_t ble_gap_device_name_t_enc(void const * const p_void_struct,
  364. uint8_t * const p_buf,
  365. uint32_t buf_len,
  366. uint32_t * const p_index);
  367. uint32_t ble_gap_device_name_t_dec(uint8_t const * const p_buf,
  368. uint32_t buf_len,
  369. uint32_t * const p_index,
  370. void * const p_void_struct);
  371. #else
  372. uint32_t ble_gap_cfg_device_name_t_enc(void const * const p_void_struct,
  373. uint8_t * const p_buf,
  374. uint32_t buf_len,
  375. uint32_t * const p_index);
  376. uint32_t ble_gap_cfg_device_name_t_dec(uint8_t const * const p_buf,
  377. uint32_t buf_len,
  378. uint32_t * const p_index,
  379. void * const p_void_struct);
  380. #endif
  381. uint32_t ble_gap_privacy_params_t_enc(void const * const p_void_struct,
  382. uint8_t * const p_buf,
  383. uint32_t buf_len,
  384. uint32_t * const p_index);
  385. uint32_t ble_gap_privacy_params_t_dec(uint8_t const * const p_buf,
  386. uint32_t buf_len,
  387. uint32_t * const p_index,
  388. void * const p_void_struct);
  389. #if NRF_SD_BLE_API_VERSION >= 4
  390. uint32_t ble_gap_opt_compat_mode_1_t_enc(void const * const p_void_struct,
  391. uint8_t * const p_buf,
  392. uint32_t buf_len,
  393. uint32_t * const p_index);
  394. uint32_t ble_gap_opt_compat_mode_1_t_dec(uint8_t const * const p_buf,
  395. uint32_t buf_len,
  396. uint32_t * const p_index,
  397. void * const p_void_struct);
  398. uint32_t ble_gap_opt_compat_mode_2_t_enc(void const * const p_void_struct,
  399. uint8_t * const p_buf,
  400. uint32_t buf_len,
  401. uint32_t * const p_index);
  402. uint32_t ble_gap_opt_compat_mode_2_t_dec(uint8_t const * const p_buf,
  403. uint32_t buf_len,
  404. uint32_t * const p_index,
  405. void * const p_void_struct);
  406. uint32_t ble_gap_opt_slave_latency_disable_t_enc(void const * const p_void_struct,
  407. uint8_t * const p_buf,
  408. uint32_t buf_len,
  409. uint32_t * const p_index);
  410. uint32_t ble_gap_opt_slave_latency_disable_t_dec(uint8_t const * const p_buf,
  411. uint32_t buf_len,
  412. uint32_t * const p_index,
  413. void * const p_void_struct);
  414. uint32_t ble_gap_conn_cfg_t_enc(void const * const p_void_struct,
  415. uint8_t * const p_buf,
  416. uint32_t buf_len,
  417. uint32_t * const p_index);
  418. uint32_t ble_gap_conn_cfg_t_dec(uint8_t const * const p_buf,
  419. uint32_t buf_len,
  420. uint32_t * const p_index,
  421. void * const p_void_struct);
  422. uint32_t ble_gap_cfg_role_count_t_enc(void const * const p_void_struct,
  423. uint8_t * const p_buf,
  424. uint32_t buf_len,
  425. uint32_t * const p_index);
  426. uint32_t ble_gap_cfg_role_count_t_dec(uint8_t const * const p_buf,
  427. uint32_t buf_len,
  428. uint32_t * const p_index,
  429. void * const p_void_struct);
  430. uint32_t ble_gap_data_length_params_t_enc(void const * const p_void_struct,
  431. uint8_t * const p_buf,
  432. uint32_t buf_len,
  433. uint32_t * const p_index);
  434. uint32_t ble_gap_data_length_params_t_dec(uint8_t const * const p_buf,
  435. uint32_t buf_len,
  436. uint32_t * const p_index,
  437. void * const p_void_struct);
  438. uint32_t ble_gap_data_length_limitation_t_enc(void const * const p_void_struct,
  439. uint8_t * const p_buf,
  440. uint32_t buf_len,
  441. uint32_t * const p_index);
  442. uint32_t ble_gap_data_length_limitation_t_dec(uint8_t const * const p_buf,
  443. uint32_t buf_len,
  444. uint32_t * const p_index,
  445. void * const p_void_struct);
  446. #endif
  447. #if NRF_SD_BLE_API_VERSION >= 5
  448. uint32_t ble_gap_phys_t_enc(void const * const p_void_struct,
  449. uint8_t * const p_buf,
  450. uint32_t buf_len,
  451. uint32_t * const p_index);
  452. uint32_t ble_gap_phys_t_dec(uint8_t const * const p_buf,
  453. uint32_t buf_len,
  454. uint32_t * const p_index,
  455. void * const p_void_struct);
  456. #endif
  457. #if NRF_SD_BLE_API_VERSION > 5
  458. uint32_t ble_gap_adv_properties_t_enc(void const * const p_void_struct,
  459. uint8_t * const p_buf,
  460. uint32_t buf_len,
  461. uint32_t * const p_index);
  462. uint32_t ble_gap_adv_properties_t_dec(uint8_t const * const p_buf,
  463. uint32_t buf_len,
  464. uint32_t * const p_index,
  465. void * const p_void_struct);
  466. uint32_t ble_gap_adv_report_type_t_enc(void const * const p_void_struct,
  467. uint8_t * const p_buf,
  468. uint32_t buf_len,
  469. uint32_t * const p_index);
  470. uint32_t ble_gap_adv_report_type_t_dec(uint8_t const * const p_buf,
  471. uint32_t buf_len,
  472. uint32_t * const p_index,
  473. void * const p_void_struct);
  474. uint32_t ble_gap_aux_pointer_t_enc(void const * const p_void_struct,
  475. uint8_t * const p_buf,
  476. uint32_t buf_len,
  477. uint32_t * const p_index);
  478. uint32_t ble_gap_aux_pointer_t_dec(uint8_t const * const p_buf,
  479. uint32_t buf_len,
  480. uint32_t * const p_index,
  481. void * const p_void_struct);
  482. uint32_t ble_gap_adv_data_t_enc(void const * const p_void_struct,
  483. uint8_t * const p_buf,
  484. uint32_t buf_len,
  485. uint32_t * const p_index);
  486. uint32_t ble_gap_adv_data_t_dec(uint8_t const * const p_buf,
  487. uint32_t buf_len,
  488. uint32_t * const p_index,
  489. void * const p_void_struct);
  490. uint32_t ble_gap_evt_adv_set_terminated_t_enc(void const * const p_void_struct,
  491. uint8_t * const p_buf,
  492. uint32_t buf_len,
  493. uint32_t * const p_index);
  494. uint32_t ble_gap_evt_adv_set_terminated_t_dec(uint8_t const * const p_buf,
  495. uint32_t buf_len,
  496. uint32_t * const p_index,
  497. void * const p_void_struct);
  498. #endif
  499. #ifdef __cplusplus
  500. }
  501. #endif
  502. #endif // BLE_GAP_STRUCT_SERIALIZATION_H__