ble_srv_disc_utils.h
Go to the documentation of this file.
1
51 #ifndef __BLE_SRV_DISC_UTILS_H__
52 #define __BLE_SRV_DISC_UTILS_H__
53
54 #include <stdint.h>
55
60 #define BLE_SRV_DISC_PROC_MAX 6
68 typedef enum
69 {
70 BLE_SRV_DISC_NO_IMPLEMENT,
71 BLE_SRV_DISC_UNDERWAY,
72 BLE_SRV_DISC_COMPLETELY,
73 } ble_srv_disc_state_t;
74
76 typedef enum
77 {
78 BLE_SRV_DISC_PROC_ID_0,
79 BLE_SRV_DISC_PROC_ID_1,
80 BLE_SRV_DISC_PROC_ID_2,
81 BLE_SRV_DISC_PROC_ID_3,
82 BLE_SRV_DISC_PROC_ID_4,
83 BLE_SRV_DISC_PROC_ID_5,
84 BLE_SRV_DISC_PROC_NB
85 } ble_srv_disc_proc_t;
101 void ble_srv_disc_proc_state_set(uint8_t srv_disc_proc_id, ble_srv_disc_state_t srv_disc_state);
102
112 ble_srv_disc_state_t ble_srv_disc_proc_state_get(uint8_t srv_disc_proc_id);
115 #endif
116
BLE_SRV_DISC_PROC_ID_5
@ BLE_SRV_DISC_PROC_ID_5
Definition: ble_srv_disc_utils.h:83
BLE_SRV_DISC_COMPLETELY
@ BLE_SRV_DISC_COMPLETELY
Definition: ble_srv_disc_utils.h:72
BLE_SRV_DISC_UNDERWAY
@ BLE_SRV_DISC_UNDERWAY
Definition: ble_srv_disc_utils.h:71
BLE_SRV_DISC_PROC_ID_1
@ BLE_SRV_DISC_PROC_ID_1
Definition: ble_srv_disc_utils.h:79
BLE_SRV_DISC_PROC_ID_3
@ BLE_SRV_DISC_PROC_ID_3
Definition: ble_srv_disc_utils.h:81
ble_srv_disc_state_t
ble_srv_disc_state_t
BLE Service Discovery Procedure State.
Definition: ble_srv_disc_utils.h:69
BLE_SRV_DISC_PROC_ID_2
@ BLE_SRV_DISC_PROC_ID_2
Definition: ble_srv_disc_utils.h:80
ble_srv_disc_proc_state_set
void ble_srv_disc_proc_state_set(uint8_t srv_disc_proc_id, ble_srv_disc_state_t srv_disc_state)
Service discovery procedure state set.
BLE_SRV_DISC_PROC_ID_0
@ BLE_SRV_DISC_PROC_ID_0
Definition: ble_srv_disc_utils.h:78
ble_srv_disc_proc_state_get
ble_srv_disc_state_t ble_srv_disc_proc_state_get(uint8_t srv_disc_proc_id)
Get service discovery procedure state.
BLE_SRV_DISC_PROC_NB
@ BLE_SRV_DISC_PROC_NB
Definition: ble_srv_disc_utils.h:84
BLE_SRV_DISC_NO_IMPLEMENT
@ BLE_SRV_DISC_NO_IMPLEMENT
Definition: ble_srv_disc_utils.h:70
ble_srv_disc_proc_t
ble_srv_disc_proc_t
BLE Service Discovery Procedure ID.
Definition: ble_srv_disc_utils.h:77
BLE_SRV_DISC_PROC_ID_4
@ BLE_SRV_DISC_PROC_ID_4
Definition: ble_srv_disc_utils.h:82