profile.h 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // profile.h generated from Xinc_ble.gatt for BTstack
  2. // att db format version 1
  3. // binary attribute representation:
  4. // - size in bytes (16), flags(16), handle (16), uuid (16/128), value(...)
  5. #include <stdint.h>
  6. const uint8_t profile_data[] =
  7. {
  8. // ATT DB Version
  9. 1,
  10. // 0x0001 PRIMARY_SERVICE-GAP_SERVICE
  11. 0x0a, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x28, 0x00, 0x18,
  12. // 0x0002 CHARACTERISTIC-GAP_DEVICE_NAME-READ
  13. 0x0d, 0x00, 0x02, 0x00, 0x02, 0x00, 0x03, 0x28, 0x02, 0x03, 0x00, 0x00, 0x2a,
  14. // 0x0003 VALUE-GAP_DEVICE_NAME-READ-'Xinc_BLEv1'
  15. // READ_ANYBODY
  16. 0x12, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x2a, 0x58, 0x69, 0x6e, 0x63, 0x5f, 0x42, 0x4c, 0x45, 0x76, 0x31,
  17. //OTA Service
  18. // 0x0004 PRIMARY_SERVICE-0000FF00-0000-1000-8000-00805F9B34FB
  19. 0x18, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x28, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00,
  20. // 0x0005 CHARACTERISTIC-0000FF01-0000-1000-8000-00805F9B34FB-WRITE | DYNAMIC
  21. 0x1b, 0x00, 0x02, 0x00, 0x05, 0x00, 0x03, 0x28, 0x08, 0x06, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x01, 0xff, 0x00, 0x00,
  22. // 0x0006 VALUE-0000FF01-0000-1000-8000-00805F9B34FB-WRITE | DYNAMIC-''
  23. // WRITE_ANYBODY
  24. 0x16, 0x00, 0x08, 0x03, 0x06, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x01, 0xff, 0x00, 0x00,
  25. // Test Service
  26. // 0x0007 PRIMARY_SERVICE-0000FF10-0000-1000-8000-00805F9B34FB
  27. 0x18, 0x00, 0x02, 0x00, 0x07, 0x00, 0x00, 0x28, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x10, 0xff, 0x00, 0x00,
  28. // Test Characteristic A, notify
  29. // 0x0008 CHARACTERISTIC-0000FF11-0000-1000-8000-00805F9B34FB-NOTIFY | DYNAMIC
  30. 0x1b, 0x00, 0x02, 0x00, 0x08, 0x00, 0x03, 0x28, 0x10, 0x09, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x11, 0xff, 0x00, 0x00,
  31. // 0x0009 VALUE-0000FF11-0000-1000-8000-00805F9B34FB-NOTIFY | DYNAMIC-''
  32. //
  33. 0x16, 0x00, 0x00, 0x03, 0x09, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x11, 0xff, 0x00, 0x00,
  34. // 0x000a CLIENT_CHARACTERISTIC_CONFIGURATION
  35. // READ_ANYBODY, WRITE_ANYBODY
  36. 0x0a, 0x00, 0x0e, 0x01, 0x0a, 0x00, 0x02, 0x29, 0x00, 0x00,
  37. // Test Characteristic B, write and read
  38. // 0x000b CHARACTERISTIC-0000FF12-0000-1000-8000-00805F9B34FB-WRITE | READ | DYNAMIC
  39. 0x1b, 0x00, 0x02, 0x00, 0x0b, 0x00, 0x03, 0x28, 0x0a, 0x0c, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x12, 0xff, 0x00, 0x00,
  40. // 0x000c VALUE-0000FF12-0000-1000-8000-00805F9B34FB-WRITE | READ | DYNAMIC-''
  41. // READ_ANYBODY, WRITE_ANYBODY
  42. 0x16, 0x00, 0x0a, 0x03, 0x0c, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x12, 0xff, 0x00, 0x00,
  43. // END
  44. 0x00, 0x00,
  45. }; // total size 154 bytes
  46. //
  47. // list service handle ranges
  48. //
  49. #define ATT_SERVICE_GAP_SERVICE_START_HANDLE 0x0001
  50. #define ATT_SERVICE_GAP_SERVICE_END_HANDLE 0x0003
  51. #define ATT_SERVICE_0000FF00_0000_1000_8000_00805F9B34FB_START_HANDLE 0x0004
  52. #define ATT_SERVICE_0000FF00_0000_1000_8000_00805F9B34FB_END_HANDLE 0x0006
  53. #define ATT_SERVICE_0000FF10_0000_1000_8000_00805F9B34FB_START_HANDLE 0x0007
  54. #define ATT_SERVICE_0000FF10_0000_1000_8000_00805F9B34FB_END_HANDLE 0x000c
  55. //
  56. // list mapping between characteristics and handles
  57. //
  58. #define ATT_CHARACTERISTIC_GAP_DEVICE_NAME_01_VALUE_HANDLE 0x0003
  59. #define ATT_CHARACTERISTIC_0000FF01_0000_1000_8000_00805F9B34FB_01_VALUE_HANDLE 0x0006
  60. #define ATT_CHARACTERISTIC_0000FF11_0000_1000_8000_00805F9B34FB_01_VALUE_HANDLE 0x0009
  61. #define ATT_CHARACTERISTIC_0000FF11_0000_1000_8000_00805F9B34FB_01_CLIENT_CONFIGURATION_HANDLE 0x000a
  62. #define ATT_CHARACTERISTIC_0000FF12_0000_1000_8000_00805F9B34FB_01_VALUE_HANDLE 0x000c