Airoha M0 BLE API  1.0.5.4
service_trspx.h
1 /******************************************************************************
2 Copyright (c) Airoha 2016 - All rights reserved
3 
4 FILE NAME
5  service_trspx.h
6 DESCRIPTION
7 NOTES
8 ********************************************************************************/
9 #ifndef _TRSPX_SERVICE_H_
10 #define _TRSPX_SERVICE_H_
11 
18 #include "ble_gatt_server.h"
19 
20 /*
21  @brief TRSPX service attribute handle;
22 */
23 extern uint16_t trspx_service_handle;
24 /*
25  @brief TRSPX indication attribute handle;
26 */
27 /*
28  @brief TRSPX notification attribute handle;
29 */
30 extern uint16_t trspx_notify_handle;
31 /*
32  @brief TRSPX cccd attribute handle;
33 */
34 extern uint16_t trspx_cccd_handle;
35 /*
36  @brief TRSPX write attribute handle;
37 */
38 extern uint16_t trspx_write_handle;
39 
43 typedef struct
44 {
45  uint8_t* write_data;
46  uint8_t* read_data;
47  uint8_t* trspx_cccd;
51 
59 
60 #endif
void(* ATTCB)(ATT_CB_TYPE type, uint8_t linkindex, uint16_t handle)
attribute value accessed call back function.
Definition: ble_att.h:111
void TRSPX_service_init_para(trspx_init_para *para)
Initialization function of trspx service.
trspx service initialization Parameters
Definition: service_trspx.h:43
ATTCB trspx_cccd_CB
Definition: service_trspx.h:49
uint8_t * trspx_cccd
Definition: service_trspx.h:47
ATTCB trspx_write_CB
Definition: service_trspx.h:48
uint8_t * write_data
Definition: service_trspx.h:45
uint8_t * read_data
Definition: service_trspx.h:46