暂无描述

nrf8001-broadcast.h 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #include "hal_platform.h"
  2. #include "aci.h"
  3. #pragma once
  4. #define PIPE_GAP_DEVICE_NAME_SET 1
  5. #define NUMBER_OF_PIPES 1
  6. #define SERVICES_PIPE_TYPE_MAPPING_CONTENT {\
  7. {ACI_STORE_LOCAL, ACI_SET}, \
  8. }
  9. #define GAP_PPCP_MAX_CONN_INT 0xffff /**< Maximum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific value requested */
  10. #define GAP_PPCP_MIN_CONN_INT 0xffff /**< Minimum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific maximum*/
  11. #define GAP_PPCP_SLAVE_LATENCY 0
  12. #define GAP_PPCP_CONN_TIMEOUT 0xffff /** Connection Supervision timeout multiplier as a multiple of 10msec, 0xFFFF means no specific value requested */
  13. #define NB_SETUP_MESSAGES 13
  14. #define SETUP_MESSAGES_CONTENT {\
  15. {0x00,\
  16. {\
  17. 0x07,0x06,0x00,0x00,0x03,0x02,0x41,0xd7,\
  18. },\
  19. },\
  20. {0x00,\
  21. {\
  22. 0x1f,0x06,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x01,0x01,0x00,0x00,0x06,0x00,0x01,\
  23. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
  24. },\
  25. },\
  26. {0x00,\
  27. {\
  28. 0x1f,0x06,0x10,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
  29. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x90,0x00,0x64,\
  30. },\
  31. },\
  32. {0x00,\
  33. {\
  34. 0x1f,0x06,0x10,0x38,0x02,0xff,0x02,0x58,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
  35. 0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
  36. },\
  37. },\
  38. {0x00,\
  39. {\
  40. 0x05,0x06,0x10,0x54,0x00,0x00,\
  41. },\
  42. },\
  43. {0x00,\
  44. {\
  45. 0x1f,0x06,0x20,0x00,0x04,0x04,0x02,0x02,0x00,0x01,0x28,0x00,0x01,0x00,0x18,0x04,0x04,0x05,0x05,0x00,\
  46. 0x02,0x28,0x03,0x01,0x0e,0x03,0x00,0x00,0x2a,0x04,0x14,0x0b,\
  47. },\
  48. },\
  49. {0x00,\
  50. {\
  51. 0x1f,0x06,0x20,0x1c,0x05,0x00,0x03,0x2a,0x00,0x01,0x62,0x63,0x61,0x73,0x74,0x63,0x73,0x65,0x6d,0x69,\
  52. 0x2e,0x04,0x04,0x05,0x05,0x00,0x04,0x28,0x03,0x01,0x02,0x05,\
  53. },\
  54. },\
  55. {0x00,\
  56. {\
  57. 0x1f,0x06,0x20,0x38,0x00,0x01,0x2a,0x06,0x04,0x03,0x02,0x00,0x05,0x2a,0x01,0x01,0x00,0x00,0x04,0x04,\
  58. 0x05,0x05,0x00,0x06,0x28,0x03,0x01,0x02,0x07,0x00,0x04,0x2a,\
  59. },\
  60. },\
  61. {0x00,\
  62. {\
  63. 0x1f,0x06,0x20,0x54,0x06,0x04,0x09,0x08,0x00,0x07,0x2a,0x04,0x01,0xff,0xff,0xff,0xff,0x00,0x00,0xff,\
  64. 0xff,0x04,0x04,0x02,0x02,0x00,0x08,0x28,0x00,0x01,0x01,0x18,\
  65. },\
  66. },\
  67. {0x00,\
  68. {\
  69. 0x04,0x06,0x20,0x70,0x00,\
  70. },\
  71. },\
  72. {0x00,\
  73. {\
  74. 0x0d,0x06,0x40,0x00,0x2a,0x00,0x01,0x00,0x80,0x04,0x00,0x03,0x00,0x00,\
  75. },\
  76. },\
  77. {0x00,\
  78. {\
  79. 0x06,0x06,0x60,0x00,0x00,0x00,0x00,\
  80. },\
  81. },\
  82. {0x00,\
  83. {\
  84. 0x06,0x06,0xf0,0x00,0x03,0x4c,0xf2,\
  85. },\
  86. },\
  87. }