| 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;
48 ATTCB trspx_write_CB;
49 ATTCB trspx_cccd_CB;
50 }trspx_init_para;
51
58 void TRSPX_service_init_para(trspx_init_para * para);
59
60 #endif
ATTCB
void(* ATTCB)(ATT_CB_TYPE type, uint8_t linkindex, uint16_t handle)
attribute value accessed call back function.
Definition: ble_att.h:111
TRSPX_service_init_para
void TRSPX_service_init_para(trspx_init_para *para)
Initialization function of trspx service.
trspx_init_para
trspx service initialization Parameters
Definition: service_trspx.h:43
trspx_init_para::trspx_cccd_CB
ATTCB trspx_cccd_CB
Definition: service_trspx.h:49
trspx_init_para::trspx_cccd
uint8_t * trspx_cccd
Definition: service_trspx.h:47
trspx_init_para::trspx_write_CB
ATTCB trspx_write_CB
Definition: service_trspx.h:48
trspx_init_para::write_data
uint8_t * write_data
Definition: service_trspx.h:45
trspx_init_para::read_data
uint8_t * read_data
Definition: service_trspx.h:46