InPlay API
in_ble_prf.h
1 
14 #ifndef IN_BLE_PRF_H
15 #define IN_BLE_PRF_H
16 #include "in_ble_att.h"
27 /*
28  * DEFINES
29  ****************************************************************************************
30  */
31 
32 /*
33  * Macros
34  ****************************************************************************************
35  */
36 
37 
38 /*
39  * Enumerations
40  ****************************************************************************************
41  */
42 
45 {
47  CLI_STOP_NTFIND = 0x0000,
52 };
53 
56 {
58  SRV_STOP_BCST = 0x0000,
61 };
62 
65 {
67  CON_DISCOVERY = 0x00,
69  CON_NORMAL = 0x01,
70 };
71 
72 enum ble_svc_type
73 {
74  PRIMARY_SERVICE = 0x00,
75  SECONDARY_SERVICE = 0x01
76 };
77 
80 {
87 };
88 
89 /*
90  * Structures
91  ****************************************************************************************
92  */
93 
95 typedef struct
96 {
98  uint16_t prf_task_id;
100  uint16_t prf_task_nb;
103  uint16_t start_hdl;
105 
110 typedef struct
112 {
114  uint16_t unit;
116  uint16_t description;
118  uint8_t format;
120  uint8_t exponent;
122  uint8_t name_space;
124 
129 typedef struct
131 {
133  uint16_t year;
135  uint8_t month;
137  uint8_t day;
139  uint8_t hour;
141  uint8_t min;
143  uint8_t sec;
145 
155 typedef uint16_t sfloat;
156 
158 typedef struct
159 {
161  uint16_t handle;
163  uint16_t length;
165  uint8_t status;
167  uint8_t value[];
169 
171 typedef struct
172 {
174  uint16_t shdl;
176  uint16_t ehdl;
177 } ble_svc_t;
178 
180 typedef struct
181 {
183  uint16_t handle;
185  uint16_t start_hdl;
187  uint16_t end_hdl;
189  uint8_t uuid_len;
191  uint8_t uuid[BLE_UUID_128_LEN];
193 
195 typedef struct
196 {
198  uint16_t char_hdl;
200  uint16_t val_hdl;
202  uint8_t prop;
204  uint8_t char_ehdl_off;
206 
208 typedef struct
209 {
211  uint16_t desc_hdl;
213 
215 
216 #endif
ble_cli_conf
Possible values for setting client configuration characteristics.
Definition: in_ble_prf.h:44
characteristic presentation information
Definition: in_ble_prf.h:111
characteristic description
Definition: in_ble_prf.h:208
uint8_t exponent
Exponent.
Definition: in_ble_prf.h:120
uint16_t end_hdl
included service end handle
Definition: in_ble_prf.h:187
uint8_t sec
second time element
Definition: in_ble_prf.h:143
uint8_t day
day time element
Definition: in_ble_prf.h:137
ble_con_type
Connection type.
Definition: in_ble_prf.h:64
Inform that profile task has been added.
Definition: in_ble_prf.h:95
uint8_t prop
Characteristic properties.
Definition: in_ble_prf.h:202
characteristic info
Definition: in_ble_prf.h:195
uint16_t length
Attribute length.
Definition: in_ble_prf.h:163
uint16_t description
Description.
Definition: in_ble_prf.h:116
uint16_t prf_task_id
Profile task identifier.
Definition: in_ble_prf.h:98
Start indication.
Definition: in_ble_prf.h:86
service handles
Definition: in_ble_prf.h:171
Attribute information.
Definition: in_ble_prf.h:158
uint8_t name_space
Name space, 1- SIG assigned.
Definition: in_ble_prf.h:122
Stop notification/indication.
Definition: in_ble_prf.h:82
uint16_t unit
Unit (The Unit is a UUID),.
Definition: in_ble_prf.h:114
uint8_t min
minute time element
Definition: in_ble_prf.h:141
Time profile information.
Definition: in_ble_prf.h:130
ble_ntf_cfg
Notification config.
Definition: in_ble_prf.h:79
uint8_t char_ehdl_off
End of characteristic offset.
Definition: in_ble_prf.h:204
ble_srv_conf
Possible values for setting server configuration characteristics.
Definition: in_ble_prf.h:55
uint16_t sfloat
Definition: in_ble_prf.h:155
Stop Broadcast.
Definition: in_ble_prf.h:58
uint16_t handle
Attribute Handle.
Definition: in_ble_prf.h:161
uint16_t ehdl
end handle
Definition: in_ble_prf.h:176
uint8_t status
Status of request.
Definition: in_ble_prf.h:165
service handles
Definition: in_ble_prf.h:180
Start indication.
Definition: in_ble_prf.h:51
uint8_t hour
hour time element
Definition: in_ble_prf.h:139
Start notification.
Definition: in_ble_prf.h:84
uint16_t handle
attribute handle
Definition: in_ble_prf.h:183
Normal type connection.
Definition: in_ble_prf.h:69
uint8_t format
Format,.
Definition: in_ble_prf.h:118
uint16_t char_hdl
Characteristic handle.
Definition: in_ble_prf.h:198
Stop notification/indication.
Definition: in_ble_prf.h:47
uint16_t start_hdl
Definition: in_ble_prf.h:103
uint8_t month
month time element
Definition: in_ble_prf.h:135
uint16_t val_hdl
Value handle.
Definition: in_ble_prf.h:200
uint16_t shdl
start handle
Definition: in_ble_prf.h:174
Start notification.
Definition: in_ble_prf.h:49
Discovery type connection.
Definition: in_ble_prf.h:67
uint8_t uuid_len
UUID length.
Definition: in_ble_prf.h:189
Start Broadcast.
Definition: in_ble_prf.h:60
uint16_t year
year time element
Definition: in_ble_prf.h:133
uint16_t prf_task_nb
Profile task number allocated.
Definition: in_ble_prf.h:100
uint16_t desc_hdl
Descriptor handle.
Definition: in_ble_prf.h:211
uint16_t start_hdl
included service start handle
Definition: in_ble_prf.h:185