ble_simple_peripheral.h 958 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * Copyright (c) 2019, Freqchip
  3. *
  4. * All rights reserved.
  5. *
  6. *
  7. */
  8. #ifndef BLE_SIMPLE_PERIPHERAL_H
  9. #define BLE_SIMPLE_PERIPHERAL_H
  10. /*
  11. * INCLUDES (包含头文件)
  12. */
  13. /*
  14. * MACROS (宏定义)
  15. */
  16. /*
  17. * CONSTANTS (常量定义)
  18. */
  19. #define SP_TASK_EVT_NOTI 0x0001
  20. /*
  21. * TYPEDEFS (类型定义)
  22. */
  23. enum
  24. {
  25. GATT_SVC_IDX_SP,
  26. GATT_SVC_NUM
  27. };
  28. /*
  29. * GLOBAL VARIABLES (全局变量)
  30. */
  31. /*
  32. * LOCAL VARIABLES (本地变量)
  33. */
  34. /*
  35. * LOCAL FUNCTIONS (本地函数)
  36. */
  37. /*
  38. * EXTERN FUNCTIONS (外部函数)
  39. */
  40. /*
  41. * PUBLIC FUNCTIONS (全局函数)
  42. */
  43. /** @function group ble peripheral device APIs (ble外设相关的API)
  44. * @{
  45. */
  46. void app_gap_evt_cb(gap_event_t *p_event);
  47. /*********************************************************************
  48. * @fn simple_peripheral_init
  49. *
  50. * @brief Initialize simple peripheral profile, BLE related parameters.
  51. *
  52. * @param None.
  53. *
  54. *
  55. * @return None.
  56. */
  57. void simple_peripheral_init(void);
  58. #endif