Select one of the symbols to view example projects that use it.
 
Outline
#define H_BLECENT_
#include "modlog/modlog.h"
ble_hs_adv_fields
ble_gap_conn_desc
ble_hs_cfg
ble_store_value
ble_store_key
#define BLECENT_SVC_ALERT_UUID
#define BLECENT_CHR_SUP_NEW_ALERT_CAT_UUID
#define BLECENT_CHR_NEW_ALERT
#define BLECENT_CHR_SUP_UNR_ALERT_CAT_UUID
#define BLECENT_CHR_UNR_ALERT_STAT_UUID
#define BLECENT_CHR_ALERT_NOT_CTRL_PT
print_bytes(const uint8_t *, int);
print_mbuf(const struct os_mbuf *);
addr_str(const void *);
print_uuid(const ble_uuid_t *);
print_conn_desc(const struct ble_gap_conn_desc *);
print_adv_fields(const struct ble_hs_adv_fields *);
peer_dsc
peer_dsc_list
peer_chr
peer_chr_list
peer_svc
peer_svc_list
peer
peer_disc_fn
peer
peer_disc_all(uint16_t, peer_disc_fn *, void *);
peer_dsc_find_uuid(const struct peer *, const ble_uuid_t *, const ble_uuid_t *, const ble_uuid_t *);
peer_chr_find_uuid(const struct peer *, const ble_uuid_t *, const ble_uuid_t *);
peer_svc_find_uuid(const struct peer *, const ble_uuid_t *);
peer_delete(uint16_t);
peer_add(uint16_t);
peer_init(int, int, int, int);
peer_find(uint16_t);
scli_init();
ble_register_cli();
scli_receive_key(int *);
cli_receive_key(int *);
scli_receive_yesno(bool *);
scli_reset_queue();
Files
loading (2/4)...
SourceVuESP-IDF Framework and Examplesblecent_throughput samplemain/gattc.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef H_BLECENT_ #define H_BLECENT_ #pragma once #include "modlog/modlog.h" #ifdef __cplusplus extern "C" { #endif struct ble_hs_adv_fields; struct ble_gap_conn_desc; struct ble_hs_cfg; union ble_store_value; union ble_store_key; #define BLECENT_SVC_ALERT_UUID 0x1811 #define BLECENT_CHR_SUP_NEW_ALERT_CAT_UUID 0x2A47 #define BLECENT_CHR_NEW_ALERT 0x2A46 #define BLECENT_CHR_SUP_UNR_ALERT_CAT_UUID 0x2A48 #define BLECENT_CHR_UNR_ALERT_STAT_UUID 0x2A45 #define BLECENT_CHR_ALERT_NOT_CTRL_PT 0x2A446 defines /** Misc. */ void print_bytes(const uint8_t *bytes, int len); void print_mbuf(const struct os_mbuf *om); char *addr_str(const void *addr); void print_uuid(const ble_uuid_t *uuid); void print_conn_desc(const struct ble_gap_conn_desc *desc); void print_adv_fields(const struct ble_hs_adv_fields *fields); /** Peer. */ struct peer_dsc { SLIST_ENTRY(peer_dsc) next; struct ble_gatt_dsc dsc; }{ ... }; SLIST_HEAD(peer_dsc_list, peer_dsc); struct peer_chr { SLIST_ENTRY(peer_chr) next; struct ble_gatt_chr chr; struct peer_dsc_list dscs; }{ ... }; SLIST_HEAD(peer_chr_list, peer_chr); struct peer_svc { SLIST_ENTRY(peer_svc) next; struct ble_gatt_svc svc; struct peer_chr_list chrs; }{ ... }; SLIST_HEAD(peer_svc_list, peer_svc); struct peer; typedef void peer_disc_fn(const struct peer *peer, int status, void *arg); struct peer { SLIST_ENTRY(peer) next; uint16_t conn_handle; /** List of discovered GATT services. */ struct peer_svc_list svcs; /** Keeps track of where we are in the service discovery process. */ uint16_t disc_prev_chr_val; struct peer_svc *cur_svc; /** Callback that gets executed when service discovery completes. */ peer_disc_fn *disc_cb; void *disc_cb_arg; }{ ... }; int peer_disc_all(uint16_t conn_handle, peer_disc_fn *disc_cb, void *disc_cb_arg); const struct peer_dsc * peer_dsc_find_uuid(const struct peer *peer, const ble_uuid_t *svc_uuid, const ble_uuid_t *chr_uuid, const ble_uuid_t *dsc_uuid); const struct peer_chr * peer_chr_find_uuid(const struct peer *peer, const ble_uuid_t *svc_uuid, const ble_uuid_t *chr_uuid); const struct peer_svc * peer_svc_find_uuid(const struct peer *peer, const ble_uuid_t *uuid); int peer_delete(uint16_t conn_handle); int peer_add(uint16_t conn_handle); int peer_init(int max_peers, int max_svcs, int max_chrs, int max_dscs); struct peer * peer_find(uint16_t conn_handle); /* Console */ int scli_init(void); void ble_register_cli(void); int scli_receive_key(int *key); int cli_receive_key(int *key); int scli_receive_yesno(bool *key); void scli_reset_queue(void); #ifdef __cplusplus }{...} #endif /* ... */ #endif
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.