simplejsble 0.0.4 → 0.0.6
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.
- package/VERSION +1 -0
- package/android/CMakeLists.txt +62 -20
- package/cmake/epilogue.cmake +81 -0
- package/cmake/find/FindDBus1.cmake +20 -0
- package/cmake/find/Findfmt.cmake +41 -0
- package/cmake/find/Findgoogletest.cmake +18 -0
- package/cmake/parse_version.cmake +45 -0
- package/cmake/prelude.cmake +8 -0
- package/dependencies/README +4 -0
- package/dependencies/external/kvn/kvn_bytearray.h +297 -0
- package/dependencies/external/kvn/kvn_safe_callback.hpp +66 -0
- package/dependencies/external/kvn/logfwd.hpp +35 -0
- package/dependencies/internal/include/fmt/LICENSE +27 -0
- package/dependencies/internal/include/fmt/args.h +220 -0
- package/dependencies/internal/include/fmt/base.h +2962 -0
- package/dependencies/internal/include/fmt/chrono.h +2338 -0
- package/dependencies/internal/include/fmt/color.h +610 -0
- package/dependencies/internal/include/fmt/compile.h +539 -0
- package/dependencies/internal/include/fmt/core.h +5 -0
- package/dependencies/internal/include/fmt/format-inl.h +1949 -0
- package/dependencies/internal/include/fmt/format.h +4244 -0
- package/dependencies/internal/include/fmt/os.h +427 -0
- package/dependencies/internal/include/fmt/ostream.h +166 -0
- package/dependencies/internal/include/fmt/printf.h +633 -0
- package/dependencies/internal/include/fmt/ranges.h +850 -0
- package/dependencies/internal/include/fmt/std.h +726 -0
- package/dependencies/internal/include/fmt/xchar.h +373 -0
- package/dependencies/internal/include/nanopb/pb.h +948 -0
- package/dependencies/internal/include/nanopb/pb_common.h +49 -0
- package/dependencies/internal/include/nanopb/pb_decode.h +204 -0
- package/dependencies/internal/include/nanopb/pb_encode.h +195 -0
- package/dependencies/internal/include/simplejni/Common.hpp +598 -0
- package/dependencies/internal/include/simplejni/References.hpp +151 -0
- package/dependencies/internal/include/simplejni/Registry.hpp +249 -0
- package/dependencies/internal/include/simplejni/VM.hpp +93 -0
- package/dependencies/internal/src/nanopb/pb_common.c +388 -0
- package/dependencies/internal/src/nanopb/pb_decode.c +1763 -0
- package/dependencies/internal/src/nanopb/pb_encode.c +1009 -0
- package/dependencies/internal/src/simplejni/Common.cpp +4 -0
- package/package.json +5 -1
- package/simpleble/CMakeLists.txt +519 -0
- package/simpleble/cmake/simpleble.pc.in +11 -0
- package/simpleble/include/simpleble/Adapter.h +102 -0
- package/simpleble/include/simpleble/AdapterSafe.h +58 -0
- package/simpleble/include/simpleble/Advanced.h +50 -0
- package/simpleble/include/simpleble/Characteristic.h +39 -0
- package/simpleble/include/simpleble/Config.h +64 -0
- package/simpleble/include/simpleble/Descriptor.h +30 -0
- package/simpleble/include/simpleble/Exceptions.h +72 -0
- package/simpleble/include/simpleble/Logging.h +73 -0
- package/simpleble/include/simpleble/Peripheral.h +82 -0
- package/simpleble/include/simpleble/PeripheralSafe.h +64 -0
- package/simpleble/include/simpleble/Service.h +34 -0
- package/simpleble/include/simpleble/SimpleBLE.h +8 -0
- package/simpleble/include/simpleble/Types.h +49 -0
- package/simpleble/include/simpleble/Utils.h +13 -0
- package/simpleble/include/simpleble_c/DEPRECATED +2 -0
- package/simpleble/include/simpleble_c/adapter.h +188 -0
- package/simpleble/include/simpleble_c/logging.h +37 -0
- package/simpleble/include/simpleble_c/peripheral.h +304 -0
- package/simpleble/include/simpleble_c/simpleble.h +21 -0
- package/simpleble/include/simpleble_c/types.h +73 -0
- package/simpleble/include/simpleble_c/utils.h +27 -0
- package/simpleble/src/CommonUtils.h +63 -0
- package/simpleble/src/Config.cpp +25 -0
- package/simpleble/src/Exceptions.cpp +31 -0
- package/simpleble/src/Logging.cpp +136 -0
- package/simpleble/src/LoggingInternal.h +85 -0
- package/simpleble/src/Utils.cpp +24 -0
- package/simpleble/src/backends/android/AdapterAndroid.cpp +101 -0
- package/simpleble/src/backends/android/AdapterAndroid.h +67 -0
- package/simpleble/src/backends/android/BackendAndroid.cpp +41 -0
- package/simpleble/src/backends/android/BackendAndroid.h +26 -0
- package/simpleble/src/backends/android/PeripheralAndroid.cpp +365 -0
- package/simpleble/src/backends/android/PeripheralAndroid.h +90 -0
- package/simpleble/src/backends/android/bridge/BluetoothGattCallback.cpp +432 -0
- package/simpleble/src/backends/android/bridge/BluetoothGattCallback.h +102 -0
- package/simpleble/src/backends/android/bridge/ScanCallback.cpp +142 -0
- package/simpleble/src/backends/android/bridge/ScanCallback.h +55 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothAdapter.cpp +107 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothAdapter.h +55 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothDevice.cpp +68 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothDevice.h +54 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothGatt.cpp +115 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothGatt.h +75 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattCharacteristic.cpp +142 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattCharacteristic.h +66 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattDescriptor.cpp +67 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattDescriptor.h +46 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattService.cpp +106 -0
- package/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattService.h +47 -0
- package/simpleble/src/backends/android/types/android/bluetooth/le/BluetoothScanner.cpp +47 -0
- package/simpleble/src/backends/android/types/android/bluetooth/le/BluetoothScanner.h +37 -0
- package/simpleble/src/backends/android/types/android/bluetooth/le/ScanRecord.cpp +69 -0
- package/simpleble/src/backends/android/types/android/bluetooth/le/ScanRecord.h +41 -0
- package/simpleble/src/backends/android/types/android/bluetooth/le/ScanResult.cpp +63 -0
- package/simpleble/src/backends/android/types/android/bluetooth/le/ScanResult.h +42 -0
- package/simpleble/src/backends/android/types/android/os/ParcelUUID.cpp +32 -0
- package/simpleble/src/backends/android/types/android/os/ParcelUUID.h +30 -0
- package/simpleble/src/backends/android/types/android/util/SparseArray.cpp +54 -0
- package/simpleble/src/backends/android/types/android/util/SparseArray.h +37 -0
- package/simpleble/src/backends/android/types/java/util/Iterator.cpp +36 -0
- package/simpleble/src/backends/android/types/java/util/Iterator.h +28 -0
- package/simpleble/src/backends/android/types/java/util/List.cpp +29 -0
- package/simpleble/src/backends/android/types/java/util/List.h +27 -0
- package/simpleble/src/backends/android/types/java/util/Set.cpp +33 -0
- package/simpleble/src/backends/android/types/java/util/Set.h +28 -0
- package/simpleble/src/backends/android/types/java/util/UUID.cpp +26 -0
- package/simpleble/src/backends/android/types/java/util/UUID.h +29 -0
- package/simpleble/src/backends/common/AdapterBase.cpp +53 -0
- package/simpleble/src/backends/common/AdapterBase.h +81 -0
- package/simpleble/src/backends/common/AdapterBaseTypes.h +22 -0
- package/simpleble/src/backends/common/BackendBase.h +20 -0
- package/simpleble/src/backends/common/BackendUtils.h +33 -0
- package/simpleble/src/backends/common/CharacteristicBase.cpp +28 -0
- package/simpleble/src/backends/common/CharacteristicBase.h +38 -0
- package/simpleble/src/backends/common/DescriptorBase.cpp +7 -0
- package/simpleble/src/backends/common/DescriptorBase.h +19 -0
- package/simpleble/src/backends/common/PeripheralBase.h +82 -0
- package/simpleble/src/backends/common/ServiceBase.cpp +18 -0
- package/simpleble/src/backends/common/ServiceBase.h +28 -0
- package/simpleble/src/backends/dongl/AdapterBaseTypes.h +22 -0
- package/simpleble/src/backends/dongl/AdapterDongl.cpp +369 -0
- package/simpleble/src/backends/dongl/AdapterDongl.h +60 -0
- package/simpleble/src/backends/dongl/BackendDongl.cpp +35 -0
- package/simpleble/src/backends/dongl/PeripheralDongl.cpp +562 -0
- package/simpleble/src/backends/dongl/PeripheralDongl.h +136 -0
- package/simpleble/src/backends/dongl/protocol/basic.pb.c +33 -0
- package/simpleble/src/backends/dongl/protocol/basic.pb.h +172 -0
- package/simpleble/src/backends/dongl/protocol/d2h.pb.c +18 -0
- package/simpleble/src/backends/dongl/protocol/d2h.pb.h +118 -0
- package/simpleble/src/backends/dongl/protocol/h2d.pb.c +12 -0
- package/simpleble/src/backends/dongl/protocol/h2d.pb.h +69 -0
- package/simpleble/src/backends/dongl/protocol/simpleble.pb.c +123 -0
- package/simpleble/src/backends/dongl/protocol/simpleble.pb.h +908 -0
- package/simpleble/src/backends/dongl/protocol/softdevice.pb.c +18 -0
- package/simpleble/src/backends/dongl/protocol/softdevice.pb.h +815 -0
- package/simpleble/src/backends/dongl/protocol/softdevice_gap.pb.c +339 -0
- package/simpleble/src/backends/dongl/protocol/softdevice_gap.pb.h +2086 -0
- package/simpleble/src/backends/dongl/protocol/softdevice_gattc.pb.c +114 -0
- package/simpleble/src/backends/dongl/protocol/softdevice_gattc.pb.h +772 -0
- package/simpleble/src/backends/dongl/protocol/softdevice_gatts.pb.c +117 -0
- package/simpleble/src/backends/dongl/protocol/softdevice_gatts.pb.h +766 -0
- package/simpleble/src/backends/dongl/protocol/softdevice_types.pb.c +207 -0
- package/simpleble/src/backends/dongl/protocol/softdevice_types.pb.h +1686 -0
- package/simpleble/src/backends/dongl/serial/Protocol.cpp +887 -0
- package/simpleble/src/backends/dongl/serial/Protocol.h +117 -0
- package/simpleble/src/backends/dongl/serial/ProtocolBase.cpp +95 -0
- package/simpleble/src/backends/dongl/serial/ProtocolBase.h +54 -0
- package/simpleble/src/backends/dongl/serial/Wire.cpp +133 -0
- package/simpleble/src/backends/dongl/serial/Wire.h +116 -0
- package/simpleble/src/backends/dongl/usb/UsbHelper.cpp +53 -0
- package/simpleble/src/backends/dongl/usb/UsbHelper.h +32 -0
- package/simpleble/src/backends/dongl/usb/UsbHelperApple.cpp +266 -0
- package/simpleble/src/backends/dongl/usb/UsbHelperApple.h +34 -0
- package/simpleble/src/backends/dongl/usb/UsbHelperImpl.h +29 -0
- package/simpleble/src/backends/dongl/usb/UsbHelperLinux.cpp +21 -0
- package/simpleble/src/backends/dongl/usb/UsbHelperLinux.h +22 -0
- package/simpleble/src/backends/dongl/usb/UsbHelperNull.cpp +21 -0
- package/simpleble/src/backends/dongl/usb/UsbHelperNull.h +22 -0
- package/simpleble/src/backends/dongl/usb/UsbHelperWindows.cpp +21 -0
- package/simpleble/src/backends/dongl/usb/UsbHelperWindows.h +22 -0
- package/simpleble/src/backends/linux/AdapterLinux.cpp +102 -0
- package/simpleble/src/backends/linux/AdapterLinux.h +55 -0
- package/simpleble/src/backends/linux/BackendBluez.cpp +90 -0
- package/simpleble/src/backends/linux/PeripheralLinux.cpp +394 -0
- package/simpleble/src/backends/linux/PeripheralLinux.h +90 -0
- package/simpleble/src/backends/linux_legacy/AdapterLinuxLegacy.cpp +102 -0
- package/simpleble/src/backends/linux_legacy/AdapterLinuxLegacy.h +55 -0
- package/simpleble/src/backends/linux_legacy/BackendBluezLegacy.cpp +87 -0
- package/simpleble/src/backends/linux_legacy/PeripheralLinuxLegacy.cpp +376 -0
- package/simpleble/src/backends/linux_legacy/PeripheralLinuxLegacy.h +90 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/Adapter.h +46 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/Agent.h +52 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/Bluez.h +37 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/BluezOrg.h +22 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/BluezOrgBluez.h +26 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/BluezRoot.h +32 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/Characteristic.h +47 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/Descriptor.h +33 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/Device.h +64 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/Exceptions.h +43 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/Service.h +27 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/Types.h +9 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/interfaces/Adapter1.h +49 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/interfaces/Agent1.h +100 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/interfaces/AgentManager1.h +24 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/interfaces/Battery1.h +32 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/interfaces/Device1.h +62 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/interfaces/GattCharacteristic1.h +48 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/interfaces/GattDescriptor1.h +41 -0
- package/simpleble/src/backends/linux_legacy/include/simplebluezlegacy/interfaces/GattService1.h +28 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/advanced/Interface.h +67 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/advanced/InterfaceRegistry.h +62 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/advanced/Proxy.h +117 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/base/Connection.h +50 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/base/Exceptions.h +56 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/base/Holder.h +147 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/base/Logging.h +57 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/base/Message.h +89 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/base/Path.h +24 -0
- package/simpleble/src/backends/linux_legacy/include/simpledbuslegacy/interfaces/ObjectManager.h +26 -0
- package/simpleble/src/backends/linux_legacy/src/Adapter.cpp +78 -0
- package/simpleble/src/backends/linux_legacy/src/Agent.cpp +72 -0
- package/simpleble/src/backends/linux_legacy/src/Bluez.cpp +45 -0
- package/simpleble/src/backends/linux_legacy/src/BluezOrg.cpp +20 -0
- package/simpleble/src/backends/linux_legacy/src/BluezOrgBluez.cpp +23 -0
- package/simpleble/src/backends/linux_legacy/src/BluezRoot.cpp +44 -0
- package/simpleble/src/backends/linux_legacy/src/Characteristic.cpp +64 -0
- package/simpleble/src/backends/linux_legacy/src/Descriptor.cpp +27 -0
- package/simpleble/src/backends/linux_legacy/src/Device.cpp +104 -0
- package/simpleble/src/backends/linux_legacy/src/Exceptions.cpp +29 -0
- package/simpleble/src/backends/linux_legacy/src/Service.cpp +33 -0
- package/simpleble/src/backends/linux_legacy/src/advanced/Interface.cpp +155 -0
- package/simpleble/src/backends/linux_legacy/src/advanced/Proxy.cpp +374 -0
- package/simpleble/src/backends/linux_legacy/src/base/Connection.cpp +219 -0
- package/simpleble/src/backends/linux_legacy/src/base/Exceptions.cpp +39 -0
- package/simpleble/src/backends/linux_legacy/src/base/Holder.cpp +739 -0
- package/simpleble/src/backends/linux_legacy/src/base/Message.cpp +622 -0
- package/simpleble/src/backends/linux_legacy/src/base/Path.cpp +129 -0
- package/simpleble/src/backends/linux_legacy/src/interfaces/Adapter1.cpp +123 -0
- package/simpleble/src/backends/linux_legacy/src/interfaces/Agent1.cpp +143 -0
- package/simpleble/src/backends/linux_legacy/src/interfaces/AgentManager1.cpp +34 -0
- package/simpleble/src/backends/linux_legacy/src/interfaces/Battery1.cpp +30 -0
- package/simpleble/src/backends/linux_legacy/src/interfaces/Device1.cpp +170 -0
- package/simpleble/src/backends/linux_legacy/src/interfaces/GattCharacteristic1.cpp +118 -0
- package/simpleble/src/backends/linux_legacy/src/interfaces/GattDescriptor1.cpp +78 -0
- package/simpleble/src/backends/linux_legacy/src/interfaces/GattService1.cpp +28 -0
- package/simpleble/src/backends/linux_legacy/src/interfaces/ObjectManager.cpp +58 -0
- package/simpleble/src/backends/macos/AdapterBaseMacOS.h +29 -0
- package/simpleble/src/backends/macos/AdapterBaseMacOS.mm +235 -0
- package/simpleble/src/backends/macos/AdapterMac.h +78 -0
- package/simpleble/src/backends/macos/AdapterMac.mm +156 -0
- package/simpleble/src/backends/macos/BackendCoreBluetooth.mm +45 -0
- package/simpleble/src/backends/macos/PeripheralBaseMacOS.h +49 -0
- package/simpleble/src/backends/macos/PeripheralBaseMacOS.mm +714 -0
- package/simpleble/src/backends/macos/PeripheralMac.h +81 -0
- package/simpleble/src/backends/macos/PeripheralMac.mm +229 -0
- package/simpleble/src/backends/macos/Utils.h +9 -0
- package/simpleble/src/backends/macos/Utils.mm +23 -0
- package/simpleble/src/backends/plain/AdapterPlain.cpp +65 -0
- package/simpleble/src/backends/plain/AdapterPlain.h +49 -0
- package/simpleble/src/backends/plain/BackendPlain.cpp +30 -0
- package/simpleble/src/backends/plain/PeripheralPlain.cpp +159 -0
- package/simpleble/src/backends/plain/PeripheralPlain.h +72 -0
- package/simpleble/src/backends/windows/AdapterWindows.cpp +338 -0
- package/simpleble/src/backends/windows/AdapterWindows.h +89 -0
- package/simpleble/src/backends/windows/BackendWinRT.cpp +67 -0
- package/simpleble/src/backends/windows/BackendWinRT.h +18 -0
- package/simpleble/src/backends/windows/MtaManager.cpp +49 -0
- package/simpleble/src/backends/windows/MtaManager.h +90 -0
- package/simpleble/src/backends/windows/PeripheralWindows.cpp +487 -0
- package/simpleble/src/backends/windows/PeripheralWindows.h +129 -0
- package/simpleble/src/backends/windows/Utils.cpp +146 -0
- package/simpleble/src/backends/windows/Utils.h +47 -0
- package/simpleble/src/builders/BuildVec.h +32 -0
- package/simpleble/src/builders/BuilderBase.h +87 -0
- package/simpleble/src/external/TaskRunner.hpp +99 -0
- package/simpleble/src/external/ThreadRunner.h +52 -0
- package/simpleble/src/external/kvn_safe_callback.hpp +66 -0
- package/simpleble/src/external/kvn_safe_map.hpp +94 -0
- package/simpleble/src/external/kvn_threadrunner.hpp +70 -0
- package/simpleble/src/external/logfwd.hpp +35 -0
- package/simpleble/src/frontends/base/Adapter.cpp +111 -0
- package/simpleble/src/frontends/base/Advanced.cpp +34 -0
- package/simpleble/src/frontends/base/Backend.cpp +95 -0
- package/simpleble/src/frontends/base/Backend.h +76 -0
- package/simpleble/src/frontends/base/Characteristic.cpp +56 -0
- package/simpleble/src/frontends/base/Descriptor.cpp +21 -0
- package/simpleble/src/frontends/base/Peripheral.cpp +113 -0
- package/simpleble/src/frontends/base/Service.cpp +26 -0
- package/simpleble/src/frontends/safe/AdapterSafe.cpp +158 -0
- package/simpleble/src/frontends/safe/PeripheralSafe.cpp +219 -0
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
/* Automatically generated nanopb header */
|
|
2
|
+
/* Generated by nanopb-0.4.9.1 */
|
|
3
|
+
|
|
4
|
+
#ifndef PB_SD_SOFTDEVICE_GATTS_PB_H_INCLUDED
|
|
5
|
+
#define PB_SD_SOFTDEVICE_GATTS_PB_H_INCLUDED
|
|
6
|
+
#include "nanopb/pb.h"
|
|
7
|
+
#include "protocol/softdevice_types.pb.h"
|
|
8
|
+
|
|
9
|
+
#if PB_PROTO_HEADER_VERSION != 40
|
|
10
|
+
#error Regenerate this file with the current version of nanopb generator.
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
/* Struct definitions */
|
|
14
|
+
/* SoftDevice GATTS command messages */
|
|
15
|
+
typedef struct _sd_GattsServiceAddCmd {
|
|
16
|
+
uint8_t type;
|
|
17
|
+
bool has_uuid;
|
|
18
|
+
sd_types_BleUuid uuid; /* Optional */
|
|
19
|
+
uint16_t handle; /* Output */
|
|
20
|
+
} sd_GattsServiceAddCmd;
|
|
21
|
+
|
|
22
|
+
typedef struct _sd_GattsIncludeAddCmd {
|
|
23
|
+
uint16_t service_handle;
|
|
24
|
+
uint16_t inc_srvc_handle;
|
|
25
|
+
uint16_t include_handle; /* Output */
|
|
26
|
+
} sd_GattsIncludeAddCmd;
|
|
27
|
+
|
|
28
|
+
typedef struct _sd_GattsCharacteristicAddCmd {
|
|
29
|
+
uint16_t service_handle;
|
|
30
|
+
bool has_char_md;
|
|
31
|
+
sd_types_BleGattsCharMd char_md;
|
|
32
|
+
bool has_attr_char_value;
|
|
33
|
+
sd_types_BleGattsAttr attr_char_value; /* Optional */
|
|
34
|
+
bool has_handles;
|
|
35
|
+
sd_types_BleGattsCharHandles handles; /* Output */
|
|
36
|
+
} sd_GattsCharacteristicAddCmd;
|
|
37
|
+
|
|
38
|
+
typedef struct _sd_GattsDescriptorAddCmd {
|
|
39
|
+
uint16_t char_handle;
|
|
40
|
+
bool has_attr;
|
|
41
|
+
sd_types_BleGattsAttr attr;
|
|
42
|
+
uint16_t handle; /* Output */
|
|
43
|
+
} sd_GattsDescriptorAddCmd;
|
|
44
|
+
|
|
45
|
+
typedef struct _sd_GattsValueSetCmd {
|
|
46
|
+
uint16_t conn_handle;
|
|
47
|
+
uint16_t handle;
|
|
48
|
+
bool has_value;
|
|
49
|
+
sd_types_BleGattsValue value;
|
|
50
|
+
} sd_GattsValueSetCmd;
|
|
51
|
+
|
|
52
|
+
typedef struct _sd_GattsValueGetCmd {
|
|
53
|
+
uint16_t conn_handle;
|
|
54
|
+
uint16_t handle;
|
|
55
|
+
bool has_value;
|
|
56
|
+
sd_types_BleGattsValue value; /* Output */
|
|
57
|
+
} sd_GattsValueGetCmd;
|
|
58
|
+
|
|
59
|
+
typedef struct _sd_GattsHvxCmd {
|
|
60
|
+
uint16_t conn_handle;
|
|
61
|
+
bool has_hvx_params;
|
|
62
|
+
sd_types_BleGattsHvxParams hvx_params;
|
|
63
|
+
} sd_GattsHvxCmd;
|
|
64
|
+
|
|
65
|
+
typedef struct _sd_GattsServiceChangedCmd {
|
|
66
|
+
uint16_t conn_handle;
|
|
67
|
+
uint16_t start_handle;
|
|
68
|
+
uint16_t end_handle;
|
|
69
|
+
} sd_GattsServiceChangedCmd;
|
|
70
|
+
|
|
71
|
+
typedef struct _sd_GattsRwAuthorizeReplyCmd {
|
|
72
|
+
uint16_t conn_handle;
|
|
73
|
+
bool has_rw_authorize_reply_params;
|
|
74
|
+
sd_types_BleGattsRwAuthorizeReplyParams rw_authorize_reply_params;
|
|
75
|
+
} sd_GattsRwAuthorizeReplyCmd;
|
|
76
|
+
|
|
77
|
+
typedef PB_BYTES_ARRAY_T(248) sd_GattsSysAttrSetCmd_sys_attr_data_t;
|
|
78
|
+
typedef struct _sd_GattsSysAttrSetCmd {
|
|
79
|
+
uint16_t conn_handle;
|
|
80
|
+
sd_GattsSysAttrSetCmd_sys_attr_data_t sys_attr_data; /* BLE_GATTS_VAR_ATTR_LEN_MAX = 248 */
|
|
81
|
+
uint16_t len;
|
|
82
|
+
uint32_t flags;
|
|
83
|
+
} sd_GattsSysAttrSetCmd;
|
|
84
|
+
|
|
85
|
+
typedef PB_BYTES_ARRAY_T(248) sd_GattsSysAttrGetCmd_sys_attr_data_t;
|
|
86
|
+
typedef struct _sd_GattsSysAttrGetCmd {
|
|
87
|
+
uint16_t conn_handle;
|
|
88
|
+
sd_GattsSysAttrGetCmd_sys_attr_data_t sys_attr_data; /* Output */
|
|
89
|
+
uint16_t len; /* Output */
|
|
90
|
+
uint32_t flags;
|
|
91
|
+
} sd_GattsSysAttrGetCmd;
|
|
92
|
+
|
|
93
|
+
typedef struct _sd_GattsInitialUserHandleGetCmd {
|
|
94
|
+
uint16_t handle; /* Output */
|
|
95
|
+
} sd_GattsInitialUserHandleGetCmd;
|
|
96
|
+
|
|
97
|
+
typedef struct _sd_GattsAttrGetCmd {
|
|
98
|
+
uint16_t handle;
|
|
99
|
+
bool has_uuid;
|
|
100
|
+
sd_types_BleUuid uuid; /* Output, optional */
|
|
101
|
+
bool has_attr_md;
|
|
102
|
+
sd_types_BleGattsAttrMd attr_md; /* Output, optional */
|
|
103
|
+
} sd_GattsAttrGetCmd;
|
|
104
|
+
|
|
105
|
+
typedef struct _sd_GattsExchangeMtuReplyCmd {
|
|
106
|
+
uint16_t conn_handle;
|
|
107
|
+
uint16_t server_rx_mtu;
|
|
108
|
+
} sd_GattsExchangeMtuReplyCmd;
|
|
109
|
+
|
|
110
|
+
/* SoftDevice GATTS response messages */
|
|
111
|
+
typedef struct _sd_GattsServiceAddRsp {
|
|
112
|
+
uint32_t ret_code;
|
|
113
|
+
uint16_t handle;
|
|
114
|
+
} sd_GattsServiceAddRsp;
|
|
115
|
+
|
|
116
|
+
typedef struct _sd_GattsIncludeAddRsp {
|
|
117
|
+
uint32_t ret_code;
|
|
118
|
+
uint16_t include_handle;
|
|
119
|
+
} sd_GattsIncludeAddRsp;
|
|
120
|
+
|
|
121
|
+
typedef struct _sd_GattsCharacteristicAddRsp {
|
|
122
|
+
uint32_t ret_code;
|
|
123
|
+
bool has_handles;
|
|
124
|
+
sd_types_BleGattsCharHandles handles;
|
|
125
|
+
} sd_GattsCharacteristicAddRsp;
|
|
126
|
+
|
|
127
|
+
typedef struct _sd_GattsDescriptorAddRsp {
|
|
128
|
+
uint32_t ret_code;
|
|
129
|
+
uint16_t handle;
|
|
130
|
+
} sd_GattsDescriptorAddRsp;
|
|
131
|
+
|
|
132
|
+
typedef struct _sd_GattsValueSetRsp {
|
|
133
|
+
uint32_t ret_code;
|
|
134
|
+
} sd_GattsValueSetRsp;
|
|
135
|
+
|
|
136
|
+
typedef struct _sd_GattsValueGetRsp {
|
|
137
|
+
uint32_t ret_code;
|
|
138
|
+
bool has_value;
|
|
139
|
+
sd_types_BleGattsValue value;
|
|
140
|
+
} sd_GattsValueGetRsp;
|
|
141
|
+
|
|
142
|
+
typedef struct _sd_GattsHvxRsp {
|
|
143
|
+
uint32_t ret_code;
|
|
144
|
+
bool has_hvx_params;
|
|
145
|
+
sd_types_BleGattsHvxParams hvx_params; /* Optional */
|
|
146
|
+
} sd_GattsHvxRsp;
|
|
147
|
+
|
|
148
|
+
typedef struct _sd_GattsServiceChangedRsp {
|
|
149
|
+
uint32_t ret_code;
|
|
150
|
+
} sd_GattsServiceChangedRsp;
|
|
151
|
+
|
|
152
|
+
typedef struct _sd_GattsRwAuthorizeReplyRsp {
|
|
153
|
+
uint32_t ret_code;
|
|
154
|
+
} sd_GattsRwAuthorizeReplyRsp;
|
|
155
|
+
|
|
156
|
+
typedef struct _sd_GattsSysAttrSetRsp {
|
|
157
|
+
uint32_t ret_code;
|
|
158
|
+
} sd_GattsSysAttrSetRsp;
|
|
159
|
+
|
|
160
|
+
typedef PB_BYTES_ARRAY_T(248) sd_GattsSysAttrGetRsp_sys_attr_data_t;
|
|
161
|
+
typedef struct _sd_GattsSysAttrGetRsp {
|
|
162
|
+
uint32_t ret_code;
|
|
163
|
+
sd_GattsSysAttrGetRsp_sys_attr_data_t sys_attr_data;
|
|
164
|
+
uint16_t len;
|
|
165
|
+
uint32_t flags;
|
|
166
|
+
} sd_GattsSysAttrGetRsp;
|
|
167
|
+
|
|
168
|
+
typedef struct _sd_GattsInitialUserHandleGetRsp {
|
|
169
|
+
uint32_t ret_code;
|
|
170
|
+
uint16_t handle;
|
|
171
|
+
} sd_GattsInitialUserHandleGetRsp;
|
|
172
|
+
|
|
173
|
+
typedef struct _sd_GattsAttrGetRsp {
|
|
174
|
+
uint32_t ret_code;
|
|
175
|
+
bool has_uuid;
|
|
176
|
+
sd_types_BleUuid uuid; /* Optional */
|
|
177
|
+
bool has_attr_md;
|
|
178
|
+
sd_types_BleGattsAttrMd attr_md; /* Optional */
|
|
179
|
+
} sd_GattsAttrGetRsp;
|
|
180
|
+
|
|
181
|
+
typedef struct _sd_GattsExchangeMtuReplyRsp {
|
|
182
|
+
uint32_t ret_code;
|
|
183
|
+
} sd_GattsExchangeMtuReplyRsp;
|
|
184
|
+
|
|
185
|
+
typedef PB_BYTES_ARRAY_T(512) sd_GattsEvtWrite_data_t;
|
|
186
|
+
/* SoftDevice GATTS event messages */
|
|
187
|
+
typedef struct _sd_GattsEvtWrite {
|
|
188
|
+
uint16_t handle;
|
|
189
|
+
bool has_uuid;
|
|
190
|
+
sd_types_BleUuid uuid;
|
|
191
|
+
sd_types_BleGattsOp op;
|
|
192
|
+
bool auth_required;
|
|
193
|
+
uint16_t offset;
|
|
194
|
+
uint16_t len;
|
|
195
|
+
sd_GattsEvtWrite_data_t data; /* Variable length */
|
|
196
|
+
} sd_GattsEvtWrite;
|
|
197
|
+
|
|
198
|
+
typedef struct _sd_GattsEvtRead {
|
|
199
|
+
uint16_t handle;
|
|
200
|
+
bool has_uuid;
|
|
201
|
+
sd_types_BleUuid uuid;
|
|
202
|
+
uint16_t offset;
|
|
203
|
+
} sd_GattsEvtRead;
|
|
204
|
+
|
|
205
|
+
typedef struct _sd_GattsEvtRwAuthorizeRequest {
|
|
206
|
+
sd_types_BleGattsAuthorizeType type;
|
|
207
|
+
pb_size_t which_request;
|
|
208
|
+
union {
|
|
209
|
+
sd_GattsEvtRead read;
|
|
210
|
+
sd_GattsEvtWrite write;
|
|
211
|
+
} request;
|
|
212
|
+
} sd_GattsEvtRwAuthorizeRequest;
|
|
213
|
+
|
|
214
|
+
typedef struct _sd_GattsEvtSysAttrMissing {
|
|
215
|
+
uint8_t hint;
|
|
216
|
+
} sd_GattsEvtSysAttrMissing;
|
|
217
|
+
|
|
218
|
+
typedef struct _sd_GattsEvtHvc {
|
|
219
|
+
uint16_t handle;
|
|
220
|
+
} sd_GattsEvtHvc;
|
|
221
|
+
|
|
222
|
+
typedef struct _sd_GattsEvtExchangeMtuRequest {
|
|
223
|
+
uint16_t client_rx_mtu;
|
|
224
|
+
} sd_GattsEvtExchangeMtuRequest;
|
|
225
|
+
|
|
226
|
+
typedef struct _sd_GattsEvtTimeout {
|
|
227
|
+
sd_types_BleGattTimeoutSrc src;
|
|
228
|
+
} sd_GattsEvtTimeout;
|
|
229
|
+
|
|
230
|
+
typedef struct _sd_GattsEvtHvnTxComplete {
|
|
231
|
+
uint8_t count;
|
|
232
|
+
} sd_GattsEvtHvnTxComplete;
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
#ifdef __cplusplus
|
|
236
|
+
extern "C" {
|
|
237
|
+
#endif
|
|
238
|
+
|
|
239
|
+
/* Initializer values for message structs */
|
|
240
|
+
#define sd_GattsServiceAddCmd_init_default {0, false, sd_types_BleUuid_init_default, 0}
|
|
241
|
+
#define sd_GattsIncludeAddCmd_init_default {0, 0, 0}
|
|
242
|
+
#define sd_GattsCharacteristicAddCmd_init_default {0, false, sd_types_BleGattsCharMd_init_default, false, sd_types_BleGattsAttr_init_default, false, sd_types_BleGattsCharHandles_init_default}
|
|
243
|
+
#define sd_GattsDescriptorAddCmd_init_default {0, false, sd_types_BleGattsAttr_init_default, 0}
|
|
244
|
+
#define sd_GattsValueSetCmd_init_default {0, 0, false, sd_types_BleGattsValue_init_default}
|
|
245
|
+
#define sd_GattsValueGetCmd_init_default {0, 0, false, sd_types_BleGattsValue_init_default}
|
|
246
|
+
#define sd_GattsHvxCmd_init_default {0, false, sd_types_BleGattsHvxParams_init_default}
|
|
247
|
+
#define sd_GattsServiceChangedCmd_init_default {0, 0, 0}
|
|
248
|
+
#define sd_GattsRwAuthorizeReplyCmd_init_default {0, false, sd_types_BleGattsRwAuthorizeReplyParams_init_default}
|
|
249
|
+
#define sd_GattsSysAttrSetCmd_init_default {0, {0, {0}}, 0, 0}
|
|
250
|
+
#define sd_GattsSysAttrGetCmd_init_default {0, {0, {0}}, 0, 0}
|
|
251
|
+
#define sd_GattsInitialUserHandleGetCmd_init_default {0}
|
|
252
|
+
#define sd_GattsAttrGetCmd_init_default {0, false, sd_types_BleUuid_init_default, false, sd_types_BleGattsAttrMd_init_default}
|
|
253
|
+
#define sd_GattsExchangeMtuReplyCmd_init_default {0, 0}
|
|
254
|
+
#define sd_GattsServiceAddRsp_init_default {0, 0}
|
|
255
|
+
#define sd_GattsIncludeAddRsp_init_default {0, 0}
|
|
256
|
+
#define sd_GattsCharacteristicAddRsp_init_default {0, false, sd_types_BleGattsCharHandles_init_default}
|
|
257
|
+
#define sd_GattsDescriptorAddRsp_init_default {0, 0}
|
|
258
|
+
#define sd_GattsValueSetRsp_init_default {0}
|
|
259
|
+
#define sd_GattsValueGetRsp_init_default {0, false, sd_types_BleGattsValue_init_default}
|
|
260
|
+
#define sd_GattsHvxRsp_init_default {0, false, sd_types_BleGattsHvxParams_init_default}
|
|
261
|
+
#define sd_GattsServiceChangedRsp_init_default {0}
|
|
262
|
+
#define sd_GattsRwAuthorizeReplyRsp_init_default {0}
|
|
263
|
+
#define sd_GattsSysAttrSetRsp_init_default {0}
|
|
264
|
+
#define sd_GattsSysAttrGetRsp_init_default {0, {0, {0}}, 0, 0}
|
|
265
|
+
#define sd_GattsInitialUserHandleGetRsp_init_default {0, 0}
|
|
266
|
+
#define sd_GattsAttrGetRsp_init_default {0, false, sd_types_BleUuid_init_default, false, sd_types_BleGattsAttrMd_init_default}
|
|
267
|
+
#define sd_GattsExchangeMtuReplyRsp_init_default {0}
|
|
268
|
+
#define sd_GattsEvtWrite_init_default {0, false, sd_types_BleUuid_init_default, _sd_types_BleGattsOp_MIN, 0, 0, 0, {0, {0}}}
|
|
269
|
+
#define sd_GattsEvtRead_init_default {0, false, sd_types_BleUuid_init_default, 0}
|
|
270
|
+
#define sd_GattsEvtRwAuthorizeRequest_init_default {_sd_types_BleGattsAuthorizeType_MIN, 0, {sd_GattsEvtRead_init_default}}
|
|
271
|
+
#define sd_GattsEvtSysAttrMissing_init_default {0}
|
|
272
|
+
#define sd_GattsEvtHvc_init_default {0}
|
|
273
|
+
#define sd_GattsEvtExchangeMtuRequest_init_default {0}
|
|
274
|
+
#define sd_GattsEvtTimeout_init_default {_sd_types_BleGattTimeoutSrc_MIN}
|
|
275
|
+
#define sd_GattsEvtHvnTxComplete_init_default {0}
|
|
276
|
+
#define sd_GattsServiceAddCmd_init_zero {0, false, sd_types_BleUuid_init_zero, 0}
|
|
277
|
+
#define sd_GattsIncludeAddCmd_init_zero {0, 0, 0}
|
|
278
|
+
#define sd_GattsCharacteristicAddCmd_init_zero {0, false, sd_types_BleGattsCharMd_init_zero, false, sd_types_BleGattsAttr_init_zero, false, sd_types_BleGattsCharHandles_init_zero}
|
|
279
|
+
#define sd_GattsDescriptorAddCmd_init_zero {0, false, sd_types_BleGattsAttr_init_zero, 0}
|
|
280
|
+
#define sd_GattsValueSetCmd_init_zero {0, 0, false, sd_types_BleGattsValue_init_zero}
|
|
281
|
+
#define sd_GattsValueGetCmd_init_zero {0, 0, false, sd_types_BleGattsValue_init_zero}
|
|
282
|
+
#define sd_GattsHvxCmd_init_zero {0, false, sd_types_BleGattsHvxParams_init_zero}
|
|
283
|
+
#define sd_GattsServiceChangedCmd_init_zero {0, 0, 0}
|
|
284
|
+
#define sd_GattsRwAuthorizeReplyCmd_init_zero {0, false, sd_types_BleGattsRwAuthorizeReplyParams_init_zero}
|
|
285
|
+
#define sd_GattsSysAttrSetCmd_init_zero {0, {0, {0}}, 0, 0}
|
|
286
|
+
#define sd_GattsSysAttrGetCmd_init_zero {0, {0, {0}}, 0, 0}
|
|
287
|
+
#define sd_GattsInitialUserHandleGetCmd_init_zero {0}
|
|
288
|
+
#define sd_GattsAttrGetCmd_init_zero {0, false, sd_types_BleUuid_init_zero, false, sd_types_BleGattsAttrMd_init_zero}
|
|
289
|
+
#define sd_GattsExchangeMtuReplyCmd_init_zero {0, 0}
|
|
290
|
+
#define sd_GattsServiceAddRsp_init_zero {0, 0}
|
|
291
|
+
#define sd_GattsIncludeAddRsp_init_zero {0, 0}
|
|
292
|
+
#define sd_GattsCharacteristicAddRsp_init_zero {0, false, sd_types_BleGattsCharHandles_init_zero}
|
|
293
|
+
#define sd_GattsDescriptorAddRsp_init_zero {0, 0}
|
|
294
|
+
#define sd_GattsValueSetRsp_init_zero {0}
|
|
295
|
+
#define sd_GattsValueGetRsp_init_zero {0, false, sd_types_BleGattsValue_init_zero}
|
|
296
|
+
#define sd_GattsHvxRsp_init_zero {0, false, sd_types_BleGattsHvxParams_init_zero}
|
|
297
|
+
#define sd_GattsServiceChangedRsp_init_zero {0}
|
|
298
|
+
#define sd_GattsRwAuthorizeReplyRsp_init_zero {0}
|
|
299
|
+
#define sd_GattsSysAttrSetRsp_init_zero {0}
|
|
300
|
+
#define sd_GattsSysAttrGetRsp_init_zero {0, {0, {0}}, 0, 0}
|
|
301
|
+
#define sd_GattsInitialUserHandleGetRsp_init_zero {0, 0}
|
|
302
|
+
#define sd_GattsAttrGetRsp_init_zero {0, false, sd_types_BleUuid_init_zero, false, sd_types_BleGattsAttrMd_init_zero}
|
|
303
|
+
#define sd_GattsExchangeMtuReplyRsp_init_zero {0}
|
|
304
|
+
#define sd_GattsEvtWrite_init_zero {0, false, sd_types_BleUuid_init_zero, _sd_types_BleGattsOp_MIN, 0, 0, 0, {0, {0}}}
|
|
305
|
+
#define sd_GattsEvtRead_init_zero {0, false, sd_types_BleUuid_init_zero, 0}
|
|
306
|
+
#define sd_GattsEvtRwAuthorizeRequest_init_zero {_sd_types_BleGattsAuthorizeType_MIN, 0, {sd_GattsEvtRead_init_zero}}
|
|
307
|
+
#define sd_GattsEvtSysAttrMissing_init_zero {0}
|
|
308
|
+
#define sd_GattsEvtHvc_init_zero {0}
|
|
309
|
+
#define sd_GattsEvtExchangeMtuRequest_init_zero {0}
|
|
310
|
+
#define sd_GattsEvtTimeout_init_zero {_sd_types_BleGattTimeoutSrc_MIN}
|
|
311
|
+
#define sd_GattsEvtHvnTxComplete_init_zero {0}
|
|
312
|
+
|
|
313
|
+
/* Field tags (for use in manual encoding/decoding) */
|
|
314
|
+
#define sd_GattsServiceAddCmd_type_tag 1
|
|
315
|
+
#define sd_GattsServiceAddCmd_uuid_tag 2
|
|
316
|
+
#define sd_GattsServiceAddCmd_handle_tag 3
|
|
317
|
+
#define sd_GattsIncludeAddCmd_service_handle_tag 1
|
|
318
|
+
#define sd_GattsIncludeAddCmd_inc_srvc_handle_tag 2
|
|
319
|
+
#define sd_GattsIncludeAddCmd_include_handle_tag 3
|
|
320
|
+
#define sd_GattsCharacteristicAddCmd_service_handle_tag 1
|
|
321
|
+
#define sd_GattsCharacteristicAddCmd_char_md_tag 2
|
|
322
|
+
#define sd_GattsCharacteristicAddCmd_attr_char_value_tag 3
|
|
323
|
+
#define sd_GattsCharacteristicAddCmd_handles_tag 4
|
|
324
|
+
#define sd_GattsDescriptorAddCmd_char_handle_tag 1
|
|
325
|
+
#define sd_GattsDescriptorAddCmd_attr_tag 2
|
|
326
|
+
#define sd_GattsDescriptorAddCmd_handle_tag 3
|
|
327
|
+
#define sd_GattsValueSetCmd_conn_handle_tag 1
|
|
328
|
+
#define sd_GattsValueSetCmd_handle_tag 2
|
|
329
|
+
#define sd_GattsValueSetCmd_value_tag 3
|
|
330
|
+
#define sd_GattsValueGetCmd_conn_handle_tag 1
|
|
331
|
+
#define sd_GattsValueGetCmd_handle_tag 2
|
|
332
|
+
#define sd_GattsValueGetCmd_value_tag 3
|
|
333
|
+
#define sd_GattsHvxCmd_conn_handle_tag 1
|
|
334
|
+
#define sd_GattsHvxCmd_hvx_params_tag 2
|
|
335
|
+
#define sd_GattsServiceChangedCmd_conn_handle_tag 1
|
|
336
|
+
#define sd_GattsServiceChangedCmd_start_handle_tag 2
|
|
337
|
+
#define sd_GattsServiceChangedCmd_end_handle_tag 3
|
|
338
|
+
#define sd_GattsRwAuthorizeReplyCmd_conn_handle_tag 1
|
|
339
|
+
#define sd_GattsRwAuthorizeReplyCmd_rw_authorize_reply_params_tag 2
|
|
340
|
+
#define sd_GattsSysAttrSetCmd_conn_handle_tag 1
|
|
341
|
+
#define sd_GattsSysAttrSetCmd_sys_attr_data_tag 2
|
|
342
|
+
#define sd_GattsSysAttrSetCmd_len_tag 3
|
|
343
|
+
#define sd_GattsSysAttrSetCmd_flags_tag 4
|
|
344
|
+
#define sd_GattsSysAttrGetCmd_conn_handle_tag 1
|
|
345
|
+
#define sd_GattsSysAttrGetCmd_sys_attr_data_tag 2
|
|
346
|
+
#define sd_GattsSysAttrGetCmd_len_tag 3
|
|
347
|
+
#define sd_GattsSysAttrGetCmd_flags_tag 4
|
|
348
|
+
#define sd_GattsInitialUserHandleGetCmd_handle_tag 1
|
|
349
|
+
#define sd_GattsAttrGetCmd_handle_tag 1
|
|
350
|
+
#define sd_GattsAttrGetCmd_uuid_tag 2
|
|
351
|
+
#define sd_GattsAttrGetCmd_attr_md_tag 3
|
|
352
|
+
#define sd_GattsExchangeMtuReplyCmd_conn_handle_tag 1
|
|
353
|
+
#define sd_GattsExchangeMtuReplyCmd_server_rx_mtu_tag 2
|
|
354
|
+
#define sd_GattsServiceAddRsp_ret_code_tag 1
|
|
355
|
+
#define sd_GattsServiceAddRsp_handle_tag 2
|
|
356
|
+
#define sd_GattsIncludeAddRsp_ret_code_tag 1
|
|
357
|
+
#define sd_GattsIncludeAddRsp_include_handle_tag 2
|
|
358
|
+
#define sd_GattsCharacteristicAddRsp_ret_code_tag 1
|
|
359
|
+
#define sd_GattsCharacteristicAddRsp_handles_tag 2
|
|
360
|
+
#define sd_GattsDescriptorAddRsp_ret_code_tag 1
|
|
361
|
+
#define sd_GattsDescriptorAddRsp_handle_tag 2
|
|
362
|
+
#define sd_GattsValueSetRsp_ret_code_tag 1
|
|
363
|
+
#define sd_GattsValueGetRsp_ret_code_tag 1
|
|
364
|
+
#define sd_GattsValueGetRsp_value_tag 2
|
|
365
|
+
#define sd_GattsHvxRsp_ret_code_tag 1
|
|
366
|
+
#define sd_GattsHvxRsp_hvx_params_tag 2
|
|
367
|
+
#define sd_GattsServiceChangedRsp_ret_code_tag 1
|
|
368
|
+
#define sd_GattsRwAuthorizeReplyRsp_ret_code_tag 1
|
|
369
|
+
#define sd_GattsSysAttrSetRsp_ret_code_tag 1
|
|
370
|
+
#define sd_GattsSysAttrGetRsp_ret_code_tag 1
|
|
371
|
+
#define sd_GattsSysAttrGetRsp_sys_attr_data_tag 2
|
|
372
|
+
#define sd_GattsSysAttrGetRsp_len_tag 3
|
|
373
|
+
#define sd_GattsSysAttrGetRsp_flags_tag 4
|
|
374
|
+
#define sd_GattsInitialUserHandleGetRsp_ret_code_tag 1
|
|
375
|
+
#define sd_GattsInitialUserHandleGetRsp_handle_tag 2
|
|
376
|
+
#define sd_GattsAttrGetRsp_ret_code_tag 1
|
|
377
|
+
#define sd_GattsAttrGetRsp_uuid_tag 2
|
|
378
|
+
#define sd_GattsAttrGetRsp_attr_md_tag 3
|
|
379
|
+
#define sd_GattsExchangeMtuReplyRsp_ret_code_tag 1
|
|
380
|
+
#define sd_GattsEvtWrite_handle_tag 1
|
|
381
|
+
#define sd_GattsEvtWrite_uuid_tag 2
|
|
382
|
+
#define sd_GattsEvtWrite_op_tag 3
|
|
383
|
+
#define sd_GattsEvtWrite_auth_required_tag 4
|
|
384
|
+
#define sd_GattsEvtWrite_offset_tag 5
|
|
385
|
+
#define sd_GattsEvtWrite_len_tag 6
|
|
386
|
+
#define sd_GattsEvtWrite_data_tag 7
|
|
387
|
+
#define sd_GattsEvtRead_handle_tag 1
|
|
388
|
+
#define sd_GattsEvtRead_uuid_tag 2
|
|
389
|
+
#define sd_GattsEvtRead_offset_tag 3
|
|
390
|
+
#define sd_GattsEvtRwAuthorizeRequest_type_tag 1
|
|
391
|
+
#define sd_GattsEvtRwAuthorizeRequest_read_tag 2
|
|
392
|
+
#define sd_GattsEvtRwAuthorizeRequest_write_tag 3
|
|
393
|
+
#define sd_GattsEvtSysAttrMissing_hint_tag 1
|
|
394
|
+
#define sd_GattsEvtHvc_handle_tag 1
|
|
395
|
+
#define sd_GattsEvtExchangeMtuRequest_client_rx_mtu_tag 1
|
|
396
|
+
#define sd_GattsEvtTimeout_src_tag 1
|
|
397
|
+
#define sd_GattsEvtHvnTxComplete_count_tag 1
|
|
398
|
+
|
|
399
|
+
/* Struct field encoding specification for nanopb */
|
|
400
|
+
#define sd_GattsServiceAddCmd_FIELDLIST(X, a) \
|
|
401
|
+
X(a, STATIC, SINGULAR, UINT32, type, 1) \
|
|
402
|
+
X(a, STATIC, OPTIONAL, MESSAGE, uuid, 2) \
|
|
403
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 3)
|
|
404
|
+
#define sd_GattsServiceAddCmd_CALLBACK NULL
|
|
405
|
+
#define sd_GattsServiceAddCmd_DEFAULT NULL
|
|
406
|
+
#define sd_GattsServiceAddCmd_uuid_MSGTYPE sd_types_BleUuid
|
|
407
|
+
|
|
408
|
+
#define sd_GattsIncludeAddCmd_FIELDLIST(X, a) \
|
|
409
|
+
X(a, STATIC, SINGULAR, UINT32, service_handle, 1) \
|
|
410
|
+
X(a, STATIC, SINGULAR, UINT32, inc_srvc_handle, 2) \
|
|
411
|
+
X(a, STATIC, SINGULAR, UINT32, include_handle, 3)
|
|
412
|
+
#define sd_GattsIncludeAddCmd_CALLBACK NULL
|
|
413
|
+
#define sd_GattsIncludeAddCmd_DEFAULT NULL
|
|
414
|
+
|
|
415
|
+
#define sd_GattsCharacteristicAddCmd_FIELDLIST(X, a) \
|
|
416
|
+
X(a, STATIC, SINGULAR, UINT32, service_handle, 1) \
|
|
417
|
+
X(a, STATIC, OPTIONAL, MESSAGE, char_md, 2) \
|
|
418
|
+
X(a, STATIC, OPTIONAL, MESSAGE, attr_char_value, 3) \
|
|
419
|
+
X(a, STATIC, OPTIONAL, MESSAGE, handles, 4)
|
|
420
|
+
#define sd_GattsCharacteristicAddCmd_CALLBACK NULL
|
|
421
|
+
#define sd_GattsCharacteristicAddCmd_DEFAULT NULL
|
|
422
|
+
#define sd_GattsCharacteristicAddCmd_char_md_MSGTYPE sd_types_BleGattsCharMd
|
|
423
|
+
#define sd_GattsCharacteristicAddCmd_attr_char_value_MSGTYPE sd_types_BleGattsAttr
|
|
424
|
+
#define sd_GattsCharacteristicAddCmd_handles_MSGTYPE sd_types_BleGattsCharHandles
|
|
425
|
+
|
|
426
|
+
#define sd_GattsDescriptorAddCmd_FIELDLIST(X, a) \
|
|
427
|
+
X(a, STATIC, SINGULAR, UINT32, char_handle, 1) \
|
|
428
|
+
X(a, STATIC, OPTIONAL, MESSAGE, attr, 2) \
|
|
429
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 3)
|
|
430
|
+
#define sd_GattsDescriptorAddCmd_CALLBACK NULL
|
|
431
|
+
#define sd_GattsDescriptorAddCmd_DEFAULT NULL
|
|
432
|
+
#define sd_GattsDescriptorAddCmd_attr_MSGTYPE sd_types_BleGattsAttr
|
|
433
|
+
|
|
434
|
+
#define sd_GattsValueSetCmd_FIELDLIST(X, a) \
|
|
435
|
+
X(a, STATIC, SINGULAR, UINT32, conn_handle, 1) \
|
|
436
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 2) \
|
|
437
|
+
X(a, STATIC, OPTIONAL, MESSAGE, value, 3)
|
|
438
|
+
#define sd_GattsValueSetCmd_CALLBACK NULL
|
|
439
|
+
#define sd_GattsValueSetCmd_DEFAULT NULL
|
|
440
|
+
#define sd_GattsValueSetCmd_value_MSGTYPE sd_types_BleGattsValue
|
|
441
|
+
|
|
442
|
+
#define sd_GattsValueGetCmd_FIELDLIST(X, a) \
|
|
443
|
+
X(a, STATIC, SINGULAR, UINT32, conn_handle, 1) \
|
|
444
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 2) \
|
|
445
|
+
X(a, STATIC, OPTIONAL, MESSAGE, value, 3)
|
|
446
|
+
#define sd_GattsValueGetCmd_CALLBACK NULL
|
|
447
|
+
#define sd_GattsValueGetCmd_DEFAULT NULL
|
|
448
|
+
#define sd_GattsValueGetCmd_value_MSGTYPE sd_types_BleGattsValue
|
|
449
|
+
|
|
450
|
+
#define sd_GattsHvxCmd_FIELDLIST(X, a) \
|
|
451
|
+
X(a, STATIC, SINGULAR, UINT32, conn_handle, 1) \
|
|
452
|
+
X(a, STATIC, OPTIONAL, MESSAGE, hvx_params, 2)
|
|
453
|
+
#define sd_GattsHvxCmd_CALLBACK NULL
|
|
454
|
+
#define sd_GattsHvxCmd_DEFAULT NULL
|
|
455
|
+
#define sd_GattsHvxCmd_hvx_params_MSGTYPE sd_types_BleGattsHvxParams
|
|
456
|
+
|
|
457
|
+
#define sd_GattsServiceChangedCmd_FIELDLIST(X, a) \
|
|
458
|
+
X(a, STATIC, SINGULAR, UINT32, conn_handle, 1) \
|
|
459
|
+
X(a, STATIC, SINGULAR, UINT32, start_handle, 2) \
|
|
460
|
+
X(a, STATIC, SINGULAR, UINT32, end_handle, 3)
|
|
461
|
+
#define sd_GattsServiceChangedCmd_CALLBACK NULL
|
|
462
|
+
#define sd_GattsServiceChangedCmd_DEFAULT NULL
|
|
463
|
+
|
|
464
|
+
#define sd_GattsRwAuthorizeReplyCmd_FIELDLIST(X, a) \
|
|
465
|
+
X(a, STATIC, SINGULAR, UINT32, conn_handle, 1) \
|
|
466
|
+
X(a, STATIC, OPTIONAL, MESSAGE, rw_authorize_reply_params, 2)
|
|
467
|
+
#define sd_GattsRwAuthorizeReplyCmd_CALLBACK NULL
|
|
468
|
+
#define sd_GattsRwAuthorizeReplyCmd_DEFAULT NULL
|
|
469
|
+
#define sd_GattsRwAuthorizeReplyCmd_rw_authorize_reply_params_MSGTYPE sd_types_BleGattsRwAuthorizeReplyParams
|
|
470
|
+
|
|
471
|
+
#define sd_GattsSysAttrSetCmd_FIELDLIST(X, a) \
|
|
472
|
+
X(a, STATIC, SINGULAR, UINT32, conn_handle, 1) \
|
|
473
|
+
X(a, STATIC, SINGULAR, BYTES, sys_attr_data, 2) \
|
|
474
|
+
X(a, STATIC, SINGULAR, UINT32, len, 3) \
|
|
475
|
+
X(a, STATIC, SINGULAR, UINT32, flags, 4)
|
|
476
|
+
#define sd_GattsSysAttrSetCmd_CALLBACK NULL
|
|
477
|
+
#define sd_GattsSysAttrSetCmd_DEFAULT NULL
|
|
478
|
+
|
|
479
|
+
#define sd_GattsSysAttrGetCmd_FIELDLIST(X, a) \
|
|
480
|
+
X(a, STATIC, SINGULAR, UINT32, conn_handle, 1) \
|
|
481
|
+
X(a, STATIC, SINGULAR, BYTES, sys_attr_data, 2) \
|
|
482
|
+
X(a, STATIC, SINGULAR, UINT32, len, 3) \
|
|
483
|
+
X(a, STATIC, SINGULAR, UINT32, flags, 4)
|
|
484
|
+
#define sd_GattsSysAttrGetCmd_CALLBACK NULL
|
|
485
|
+
#define sd_GattsSysAttrGetCmd_DEFAULT NULL
|
|
486
|
+
|
|
487
|
+
#define sd_GattsInitialUserHandleGetCmd_FIELDLIST(X, a) \
|
|
488
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 1)
|
|
489
|
+
#define sd_GattsInitialUserHandleGetCmd_CALLBACK NULL
|
|
490
|
+
#define sd_GattsInitialUserHandleGetCmd_DEFAULT NULL
|
|
491
|
+
|
|
492
|
+
#define sd_GattsAttrGetCmd_FIELDLIST(X, a) \
|
|
493
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 1) \
|
|
494
|
+
X(a, STATIC, OPTIONAL, MESSAGE, uuid, 2) \
|
|
495
|
+
X(a, STATIC, OPTIONAL, MESSAGE, attr_md, 3)
|
|
496
|
+
#define sd_GattsAttrGetCmd_CALLBACK NULL
|
|
497
|
+
#define sd_GattsAttrGetCmd_DEFAULT NULL
|
|
498
|
+
#define sd_GattsAttrGetCmd_uuid_MSGTYPE sd_types_BleUuid
|
|
499
|
+
#define sd_GattsAttrGetCmd_attr_md_MSGTYPE sd_types_BleGattsAttrMd
|
|
500
|
+
|
|
501
|
+
#define sd_GattsExchangeMtuReplyCmd_FIELDLIST(X, a) \
|
|
502
|
+
X(a, STATIC, SINGULAR, UINT32, conn_handle, 1) \
|
|
503
|
+
X(a, STATIC, SINGULAR, UINT32, server_rx_mtu, 2)
|
|
504
|
+
#define sd_GattsExchangeMtuReplyCmd_CALLBACK NULL
|
|
505
|
+
#define sd_GattsExchangeMtuReplyCmd_DEFAULT NULL
|
|
506
|
+
|
|
507
|
+
#define sd_GattsServiceAddRsp_FIELDLIST(X, a) \
|
|
508
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1) \
|
|
509
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 2)
|
|
510
|
+
#define sd_GattsServiceAddRsp_CALLBACK NULL
|
|
511
|
+
#define sd_GattsServiceAddRsp_DEFAULT NULL
|
|
512
|
+
|
|
513
|
+
#define sd_GattsIncludeAddRsp_FIELDLIST(X, a) \
|
|
514
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1) \
|
|
515
|
+
X(a, STATIC, SINGULAR, UINT32, include_handle, 2)
|
|
516
|
+
#define sd_GattsIncludeAddRsp_CALLBACK NULL
|
|
517
|
+
#define sd_GattsIncludeAddRsp_DEFAULT NULL
|
|
518
|
+
|
|
519
|
+
#define sd_GattsCharacteristicAddRsp_FIELDLIST(X, a) \
|
|
520
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1) \
|
|
521
|
+
X(a, STATIC, OPTIONAL, MESSAGE, handles, 2)
|
|
522
|
+
#define sd_GattsCharacteristicAddRsp_CALLBACK NULL
|
|
523
|
+
#define sd_GattsCharacteristicAddRsp_DEFAULT NULL
|
|
524
|
+
#define sd_GattsCharacteristicAddRsp_handles_MSGTYPE sd_types_BleGattsCharHandles
|
|
525
|
+
|
|
526
|
+
#define sd_GattsDescriptorAddRsp_FIELDLIST(X, a) \
|
|
527
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1) \
|
|
528
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 2)
|
|
529
|
+
#define sd_GattsDescriptorAddRsp_CALLBACK NULL
|
|
530
|
+
#define sd_GattsDescriptorAddRsp_DEFAULT NULL
|
|
531
|
+
|
|
532
|
+
#define sd_GattsValueSetRsp_FIELDLIST(X, a) \
|
|
533
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1)
|
|
534
|
+
#define sd_GattsValueSetRsp_CALLBACK NULL
|
|
535
|
+
#define sd_GattsValueSetRsp_DEFAULT NULL
|
|
536
|
+
|
|
537
|
+
#define sd_GattsValueGetRsp_FIELDLIST(X, a) \
|
|
538
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1) \
|
|
539
|
+
X(a, STATIC, OPTIONAL, MESSAGE, value, 2)
|
|
540
|
+
#define sd_GattsValueGetRsp_CALLBACK NULL
|
|
541
|
+
#define sd_GattsValueGetRsp_DEFAULT NULL
|
|
542
|
+
#define sd_GattsValueGetRsp_value_MSGTYPE sd_types_BleGattsValue
|
|
543
|
+
|
|
544
|
+
#define sd_GattsHvxRsp_FIELDLIST(X, a) \
|
|
545
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1) \
|
|
546
|
+
X(a, STATIC, OPTIONAL, MESSAGE, hvx_params, 2)
|
|
547
|
+
#define sd_GattsHvxRsp_CALLBACK NULL
|
|
548
|
+
#define sd_GattsHvxRsp_DEFAULT NULL
|
|
549
|
+
#define sd_GattsHvxRsp_hvx_params_MSGTYPE sd_types_BleGattsHvxParams
|
|
550
|
+
|
|
551
|
+
#define sd_GattsServiceChangedRsp_FIELDLIST(X, a) \
|
|
552
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1)
|
|
553
|
+
#define sd_GattsServiceChangedRsp_CALLBACK NULL
|
|
554
|
+
#define sd_GattsServiceChangedRsp_DEFAULT NULL
|
|
555
|
+
|
|
556
|
+
#define sd_GattsRwAuthorizeReplyRsp_FIELDLIST(X, a) \
|
|
557
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1)
|
|
558
|
+
#define sd_GattsRwAuthorizeReplyRsp_CALLBACK NULL
|
|
559
|
+
#define sd_GattsRwAuthorizeReplyRsp_DEFAULT NULL
|
|
560
|
+
|
|
561
|
+
#define sd_GattsSysAttrSetRsp_FIELDLIST(X, a) \
|
|
562
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1)
|
|
563
|
+
#define sd_GattsSysAttrSetRsp_CALLBACK NULL
|
|
564
|
+
#define sd_GattsSysAttrSetRsp_DEFAULT NULL
|
|
565
|
+
|
|
566
|
+
#define sd_GattsSysAttrGetRsp_FIELDLIST(X, a) \
|
|
567
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1) \
|
|
568
|
+
X(a, STATIC, SINGULAR, BYTES, sys_attr_data, 2) \
|
|
569
|
+
X(a, STATIC, SINGULAR, UINT32, len, 3) \
|
|
570
|
+
X(a, STATIC, SINGULAR, UINT32, flags, 4)
|
|
571
|
+
#define sd_GattsSysAttrGetRsp_CALLBACK NULL
|
|
572
|
+
#define sd_GattsSysAttrGetRsp_DEFAULT NULL
|
|
573
|
+
|
|
574
|
+
#define sd_GattsInitialUserHandleGetRsp_FIELDLIST(X, a) \
|
|
575
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1) \
|
|
576
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 2)
|
|
577
|
+
#define sd_GattsInitialUserHandleGetRsp_CALLBACK NULL
|
|
578
|
+
#define sd_GattsInitialUserHandleGetRsp_DEFAULT NULL
|
|
579
|
+
|
|
580
|
+
#define sd_GattsAttrGetRsp_FIELDLIST(X, a) \
|
|
581
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1) \
|
|
582
|
+
X(a, STATIC, OPTIONAL, MESSAGE, uuid, 2) \
|
|
583
|
+
X(a, STATIC, OPTIONAL, MESSAGE, attr_md, 3)
|
|
584
|
+
#define sd_GattsAttrGetRsp_CALLBACK NULL
|
|
585
|
+
#define sd_GattsAttrGetRsp_DEFAULT NULL
|
|
586
|
+
#define sd_GattsAttrGetRsp_uuid_MSGTYPE sd_types_BleUuid
|
|
587
|
+
#define sd_GattsAttrGetRsp_attr_md_MSGTYPE sd_types_BleGattsAttrMd
|
|
588
|
+
|
|
589
|
+
#define sd_GattsExchangeMtuReplyRsp_FIELDLIST(X, a) \
|
|
590
|
+
X(a, STATIC, SINGULAR, UINT32, ret_code, 1)
|
|
591
|
+
#define sd_GattsExchangeMtuReplyRsp_CALLBACK NULL
|
|
592
|
+
#define sd_GattsExchangeMtuReplyRsp_DEFAULT NULL
|
|
593
|
+
|
|
594
|
+
#define sd_GattsEvtWrite_FIELDLIST(X, a) \
|
|
595
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 1) \
|
|
596
|
+
X(a, STATIC, OPTIONAL, MESSAGE, uuid, 2) \
|
|
597
|
+
X(a, STATIC, SINGULAR, UENUM, op, 3) \
|
|
598
|
+
X(a, STATIC, SINGULAR, BOOL, auth_required, 4) \
|
|
599
|
+
X(a, STATIC, SINGULAR, UINT32, offset, 5) \
|
|
600
|
+
X(a, STATIC, SINGULAR, UINT32, len, 6) \
|
|
601
|
+
X(a, STATIC, SINGULAR, BYTES, data, 7)
|
|
602
|
+
#define sd_GattsEvtWrite_CALLBACK NULL
|
|
603
|
+
#define sd_GattsEvtWrite_DEFAULT NULL
|
|
604
|
+
#define sd_GattsEvtWrite_uuid_MSGTYPE sd_types_BleUuid
|
|
605
|
+
|
|
606
|
+
#define sd_GattsEvtRead_FIELDLIST(X, a) \
|
|
607
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 1) \
|
|
608
|
+
X(a, STATIC, OPTIONAL, MESSAGE, uuid, 2) \
|
|
609
|
+
X(a, STATIC, SINGULAR, UINT32, offset, 3)
|
|
610
|
+
#define sd_GattsEvtRead_CALLBACK NULL
|
|
611
|
+
#define sd_GattsEvtRead_DEFAULT NULL
|
|
612
|
+
#define sd_GattsEvtRead_uuid_MSGTYPE sd_types_BleUuid
|
|
613
|
+
|
|
614
|
+
#define sd_GattsEvtRwAuthorizeRequest_FIELDLIST(X, a) \
|
|
615
|
+
X(a, STATIC, SINGULAR, UENUM, type, 1) \
|
|
616
|
+
X(a, STATIC, ONEOF, MESSAGE, (request,read,request.read), 2) \
|
|
617
|
+
X(a, STATIC, ONEOF, MESSAGE, (request,write,request.write), 3)
|
|
618
|
+
#define sd_GattsEvtRwAuthorizeRequest_CALLBACK NULL
|
|
619
|
+
#define sd_GattsEvtRwAuthorizeRequest_DEFAULT NULL
|
|
620
|
+
#define sd_GattsEvtRwAuthorizeRequest_request_read_MSGTYPE sd_GattsEvtRead
|
|
621
|
+
#define sd_GattsEvtRwAuthorizeRequest_request_write_MSGTYPE sd_GattsEvtWrite
|
|
622
|
+
|
|
623
|
+
#define sd_GattsEvtSysAttrMissing_FIELDLIST(X, a) \
|
|
624
|
+
X(a, STATIC, SINGULAR, UINT32, hint, 1)
|
|
625
|
+
#define sd_GattsEvtSysAttrMissing_CALLBACK NULL
|
|
626
|
+
#define sd_GattsEvtSysAttrMissing_DEFAULT NULL
|
|
627
|
+
|
|
628
|
+
#define sd_GattsEvtHvc_FIELDLIST(X, a) \
|
|
629
|
+
X(a, STATIC, SINGULAR, UINT32, handle, 1)
|
|
630
|
+
#define sd_GattsEvtHvc_CALLBACK NULL
|
|
631
|
+
#define sd_GattsEvtHvc_DEFAULT NULL
|
|
632
|
+
|
|
633
|
+
#define sd_GattsEvtExchangeMtuRequest_FIELDLIST(X, a) \
|
|
634
|
+
X(a, STATIC, SINGULAR, UINT32, client_rx_mtu, 1)
|
|
635
|
+
#define sd_GattsEvtExchangeMtuRequest_CALLBACK NULL
|
|
636
|
+
#define sd_GattsEvtExchangeMtuRequest_DEFAULT NULL
|
|
637
|
+
|
|
638
|
+
#define sd_GattsEvtTimeout_FIELDLIST(X, a) \
|
|
639
|
+
X(a, STATIC, SINGULAR, UENUM, src, 1)
|
|
640
|
+
#define sd_GattsEvtTimeout_CALLBACK NULL
|
|
641
|
+
#define sd_GattsEvtTimeout_DEFAULT NULL
|
|
642
|
+
|
|
643
|
+
#define sd_GattsEvtHvnTxComplete_FIELDLIST(X, a) \
|
|
644
|
+
X(a, STATIC, SINGULAR, UINT32, count, 1)
|
|
645
|
+
#define sd_GattsEvtHvnTxComplete_CALLBACK NULL
|
|
646
|
+
#define sd_GattsEvtHvnTxComplete_DEFAULT NULL
|
|
647
|
+
|
|
648
|
+
extern const pb_msgdesc_t sd_GattsServiceAddCmd_msg;
|
|
649
|
+
extern const pb_msgdesc_t sd_GattsIncludeAddCmd_msg;
|
|
650
|
+
extern const pb_msgdesc_t sd_GattsCharacteristicAddCmd_msg;
|
|
651
|
+
extern const pb_msgdesc_t sd_GattsDescriptorAddCmd_msg;
|
|
652
|
+
extern const pb_msgdesc_t sd_GattsValueSetCmd_msg;
|
|
653
|
+
extern const pb_msgdesc_t sd_GattsValueGetCmd_msg;
|
|
654
|
+
extern const pb_msgdesc_t sd_GattsHvxCmd_msg;
|
|
655
|
+
extern const pb_msgdesc_t sd_GattsServiceChangedCmd_msg;
|
|
656
|
+
extern const pb_msgdesc_t sd_GattsRwAuthorizeReplyCmd_msg;
|
|
657
|
+
extern const pb_msgdesc_t sd_GattsSysAttrSetCmd_msg;
|
|
658
|
+
extern const pb_msgdesc_t sd_GattsSysAttrGetCmd_msg;
|
|
659
|
+
extern const pb_msgdesc_t sd_GattsInitialUserHandleGetCmd_msg;
|
|
660
|
+
extern const pb_msgdesc_t sd_GattsAttrGetCmd_msg;
|
|
661
|
+
extern const pb_msgdesc_t sd_GattsExchangeMtuReplyCmd_msg;
|
|
662
|
+
extern const pb_msgdesc_t sd_GattsServiceAddRsp_msg;
|
|
663
|
+
extern const pb_msgdesc_t sd_GattsIncludeAddRsp_msg;
|
|
664
|
+
extern const pb_msgdesc_t sd_GattsCharacteristicAddRsp_msg;
|
|
665
|
+
extern const pb_msgdesc_t sd_GattsDescriptorAddRsp_msg;
|
|
666
|
+
extern const pb_msgdesc_t sd_GattsValueSetRsp_msg;
|
|
667
|
+
extern const pb_msgdesc_t sd_GattsValueGetRsp_msg;
|
|
668
|
+
extern const pb_msgdesc_t sd_GattsHvxRsp_msg;
|
|
669
|
+
extern const pb_msgdesc_t sd_GattsServiceChangedRsp_msg;
|
|
670
|
+
extern const pb_msgdesc_t sd_GattsRwAuthorizeReplyRsp_msg;
|
|
671
|
+
extern const pb_msgdesc_t sd_GattsSysAttrSetRsp_msg;
|
|
672
|
+
extern const pb_msgdesc_t sd_GattsSysAttrGetRsp_msg;
|
|
673
|
+
extern const pb_msgdesc_t sd_GattsInitialUserHandleGetRsp_msg;
|
|
674
|
+
extern const pb_msgdesc_t sd_GattsAttrGetRsp_msg;
|
|
675
|
+
extern const pb_msgdesc_t sd_GattsExchangeMtuReplyRsp_msg;
|
|
676
|
+
extern const pb_msgdesc_t sd_GattsEvtWrite_msg;
|
|
677
|
+
extern const pb_msgdesc_t sd_GattsEvtRead_msg;
|
|
678
|
+
extern const pb_msgdesc_t sd_GattsEvtRwAuthorizeRequest_msg;
|
|
679
|
+
extern const pb_msgdesc_t sd_GattsEvtSysAttrMissing_msg;
|
|
680
|
+
extern const pb_msgdesc_t sd_GattsEvtHvc_msg;
|
|
681
|
+
extern const pb_msgdesc_t sd_GattsEvtExchangeMtuRequest_msg;
|
|
682
|
+
extern const pb_msgdesc_t sd_GattsEvtTimeout_msg;
|
|
683
|
+
extern const pb_msgdesc_t sd_GattsEvtHvnTxComplete_msg;
|
|
684
|
+
|
|
685
|
+
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
686
|
+
#define sd_GattsServiceAddCmd_fields &sd_GattsServiceAddCmd_msg
|
|
687
|
+
#define sd_GattsIncludeAddCmd_fields &sd_GattsIncludeAddCmd_msg
|
|
688
|
+
#define sd_GattsCharacteristicAddCmd_fields &sd_GattsCharacteristicAddCmd_msg
|
|
689
|
+
#define sd_GattsDescriptorAddCmd_fields &sd_GattsDescriptorAddCmd_msg
|
|
690
|
+
#define sd_GattsValueSetCmd_fields &sd_GattsValueSetCmd_msg
|
|
691
|
+
#define sd_GattsValueGetCmd_fields &sd_GattsValueGetCmd_msg
|
|
692
|
+
#define sd_GattsHvxCmd_fields &sd_GattsHvxCmd_msg
|
|
693
|
+
#define sd_GattsServiceChangedCmd_fields &sd_GattsServiceChangedCmd_msg
|
|
694
|
+
#define sd_GattsRwAuthorizeReplyCmd_fields &sd_GattsRwAuthorizeReplyCmd_msg
|
|
695
|
+
#define sd_GattsSysAttrSetCmd_fields &sd_GattsSysAttrSetCmd_msg
|
|
696
|
+
#define sd_GattsSysAttrGetCmd_fields &sd_GattsSysAttrGetCmd_msg
|
|
697
|
+
#define sd_GattsInitialUserHandleGetCmd_fields &sd_GattsInitialUserHandleGetCmd_msg
|
|
698
|
+
#define sd_GattsAttrGetCmd_fields &sd_GattsAttrGetCmd_msg
|
|
699
|
+
#define sd_GattsExchangeMtuReplyCmd_fields &sd_GattsExchangeMtuReplyCmd_msg
|
|
700
|
+
#define sd_GattsServiceAddRsp_fields &sd_GattsServiceAddRsp_msg
|
|
701
|
+
#define sd_GattsIncludeAddRsp_fields &sd_GattsIncludeAddRsp_msg
|
|
702
|
+
#define sd_GattsCharacteristicAddRsp_fields &sd_GattsCharacteristicAddRsp_msg
|
|
703
|
+
#define sd_GattsDescriptorAddRsp_fields &sd_GattsDescriptorAddRsp_msg
|
|
704
|
+
#define sd_GattsValueSetRsp_fields &sd_GattsValueSetRsp_msg
|
|
705
|
+
#define sd_GattsValueGetRsp_fields &sd_GattsValueGetRsp_msg
|
|
706
|
+
#define sd_GattsHvxRsp_fields &sd_GattsHvxRsp_msg
|
|
707
|
+
#define sd_GattsServiceChangedRsp_fields &sd_GattsServiceChangedRsp_msg
|
|
708
|
+
#define sd_GattsRwAuthorizeReplyRsp_fields &sd_GattsRwAuthorizeReplyRsp_msg
|
|
709
|
+
#define sd_GattsSysAttrSetRsp_fields &sd_GattsSysAttrSetRsp_msg
|
|
710
|
+
#define sd_GattsSysAttrGetRsp_fields &sd_GattsSysAttrGetRsp_msg
|
|
711
|
+
#define sd_GattsInitialUserHandleGetRsp_fields &sd_GattsInitialUserHandleGetRsp_msg
|
|
712
|
+
#define sd_GattsAttrGetRsp_fields &sd_GattsAttrGetRsp_msg
|
|
713
|
+
#define sd_GattsExchangeMtuReplyRsp_fields &sd_GattsExchangeMtuReplyRsp_msg
|
|
714
|
+
#define sd_GattsEvtWrite_fields &sd_GattsEvtWrite_msg
|
|
715
|
+
#define sd_GattsEvtRead_fields &sd_GattsEvtRead_msg
|
|
716
|
+
#define sd_GattsEvtRwAuthorizeRequest_fields &sd_GattsEvtRwAuthorizeRequest_msg
|
|
717
|
+
#define sd_GattsEvtSysAttrMissing_fields &sd_GattsEvtSysAttrMissing_msg
|
|
718
|
+
#define sd_GattsEvtHvc_fields &sd_GattsEvtHvc_msg
|
|
719
|
+
#define sd_GattsEvtExchangeMtuRequest_fields &sd_GattsEvtExchangeMtuRequest_msg
|
|
720
|
+
#define sd_GattsEvtTimeout_fields &sd_GattsEvtTimeout_msg
|
|
721
|
+
#define sd_GattsEvtHvnTxComplete_fields &sd_GattsEvtHvnTxComplete_msg
|
|
722
|
+
|
|
723
|
+
/* Maximum encoded size of messages (where known) */
|
|
724
|
+
#define SD_SOFTDEVICE_GATTS_PB_H_MAX_SIZE sd_GattsCharacteristicAddCmd_size
|
|
725
|
+
#define sd_GattsAttrGetCmd_size 39
|
|
726
|
+
#define sd_GattsAttrGetRsp_size 41
|
|
727
|
+
#define sd_GattsCharacteristicAddCmd_size 1232
|
|
728
|
+
#define sd_GattsCharacteristicAddRsp_size 24
|
|
729
|
+
#define sd_GattsDescriptorAddCmd_size 573
|
|
730
|
+
#define sd_GattsDescriptorAddRsp_size 10
|
|
731
|
+
#define sd_GattsEvtExchangeMtuRequest_size 4
|
|
732
|
+
#define sd_GattsEvtHvc_size 4
|
|
733
|
+
#define sd_GattsEvtHvnTxComplete_size 3
|
|
734
|
+
#define sd_GattsEvtRead_size 17
|
|
735
|
+
#define sd_GattsEvtRwAuthorizeRequest_size 545
|
|
736
|
+
#define sd_GattsEvtSysAttrMissing_size 3
|
|
737
|
+
#define sd_GattsEvtTimeout_size 2
|
|
738
|
+
#define sd_GattsEvtWrite_size 540
|
|
739
|
+
#define sd_GattsExchangeMtuReplyCmd_size 8
|
|
740
|
+
#define sd_GattsExchangeMtuReplyRsp_size 6
|
|
741
|
+
#define sd_GattsHvxCmd_size 537
|
|
742
|
+
#define sd_GattsHvxRsp_size 539
|
|
743
|
+
#define sd_GattsIncludeAddCmd_size 12
|
|
744
|
+
#define sd_GattsIncludeAddRsp_size 10
|
|
745
|
+
#define sd_GattsInitialUserHandleGetCmd_size 4
|
|
746
|
+
#define sd_GattsInitialUserHandleGetRsp_size 10
|
|
747
|
+
#define sd_GattsRwAuthorizeReplyCmd_size 1074
|
|
748
|
+
#define sd_GattsRwAuthorizeReplyRsp_size 6
|
|
749
|
+
#define sd_GattsServiceAddCmd_size 16
|
|
750
|
+
#define sd_GattsServiceAddRsp_size 10
|
|
751
|
+
#define sd_GattsServiceChangedCmd_size 12
|
|
752
|
+
#define sd_GattsServiceChangedRsp_size 6
|
|
753
|
+
#define sd_GattsSysAttrGetCmd_size 265
|
|
754
|
+
#define sd_GattsSysAttrGetRsp_size 267
|
|
755
|
+
#define sd_GattsSysAttrSetCmd_size 265
|
|
756
|
+
#define sd_GattsSysAttrSetRsp_size 6
|
|
757
|
+
#define sd_GattsValueGetCmd_size 534
|
|
758
|
+
#define sd_GattsValueGetRsp_size 532
|
|
759
|
+
#define sd_GattsValueSetCmd_size 534
|
|
760
|
+
#define sd_GattsValueSetRsp_size 6
|
|
761
|
+
|
|
762
|
+
#ifdef __cplusplus
|
|
763
|
+
} /* extern "C" */
|
|
764
|
+
#endif
|
|
765
|
+
|
|
766
|
+
#endif
|