12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef BLE_GATT_STRUCT_SERIALIZATION_H
- #define BLE_GATT_STRUCT_SERIALIZATION_H
- #include "ble_gatt.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- uint32_t ble_gatt_char_props_t_enc(void const * const p_void_struct,
- uint8_t * const p_buf,
- uint32_t buf_len,
- uint32_t * const p_index);
- uint32_t ble_gatt_char_props_t_dec(uint8_t const * const p_buf,
- uint32_t buf_len,
- uint32_t * const p_index,
- void * const p_void_struct);
- uint32_t ble_gatt_char_ext_props_t_enc(void const * const p_void_struct,
- uint8_t * const p_buf,
- uint32_t buf_len,
- uint32_t * const p_index);
- uint32_t ble_gatt_char_ext_props_t_dec(uint8_t const * const p_buf,
- uint32_t buf_len,
- uint32_t * const p_index,
- void * const p_void_struct);
- #if defined(NRF_SD_BLE_API_VERSION) && NRF_SD_BLE_API_VERSION < 4
- uint32_t ble_gatt_enable_params_t_enc(void const * const p_void_struct,
- uint8_t * const p_buf,
- uint32_t buf_len,
- uint32_t * const p_index);
- uint32_t ble_gatt_enable_params_t_dec(uint8_t const * const p_buf,
- uint32_t buf_len,
- uint32_t * const p_index,
- void * const p_void_struct);
- #else
- uint32_t ble_gatt_conn_cfg_t_enc(void const * const p_void_struct,
- uint8_t * const p_buf,
- uint32_t buf_len,
- uint32_t * const p_index);
- uint32_t ble_gatt_conn_cfg_t_dec(uint8_t const * const p_buf,
- uint32_t buf_len,
- uint32_t * const p_index,
- void * const p_void_struct);
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|