nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
adv_manager.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#ifndef BT_FAST_PAIR_ADV_MANAGER_H_
8
#define BT_FAST_PAIR_ADV_MANAGER_H_
9
10
#include <stdint.h>
11
12
#include <zephyr/sys/slist.h>
13
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
30
struct
bt_fast_pair_adv_manager_trigger_config
{
38
bool
pairing_mode
;
39
49
bool
suspend_rpa
;
50
};
51
66
bool
bt_fast_pair_adv_manager_is_pairing_mode
(
void
);
67
69
struct
bt_fast_pair_adv_manager_trigger
{
71
const
char
*
id
;
72
74
const
struct
bt_fast_pair_adv_manager_trigger_config
*
const
config
;
75
};
76
83
#define BT_FAST_PAIR_ADV_MANAGER_TRIGGER_REGISTER(_name, _id, _config) \
84
BUILD_ASSERT(_id != NULL); \
85
static STRUCT_SECTION_ITERABLE(bt_fast_pair_adv_manager_trigger, _name) = { \
86
.id = _id, \
87
.config = _config, \
88
}
89
116
void
bt_fast_pair_adv_manager_request
(
struct
bt_fast_pair_adv_manager_trigger
*trigger,
117
bool
enable);
118
128
void
bt_fast_pair_adv_manager_payload_refresh
(
void
);
129
141
int
bt_fast_pair_adv_manager_id_set
(uint8_t
id
);
142
147
uint8_t
bt_fast_pair_adv_manager_id_get
(
void
);
148
150
struct
bt_fast_pair_adv_manager_info_cb
{
163
void (*
adv_state_changed
)(
bool
active);
164
166
sys_snode_t
node
;
167
};
168
182
int
bt_fast_pair_adv_manager_info_cb_register
(
struct
bt_fast_pair_adv_manager_info_cb
*cb);
183
193
bool
bt_fast_pair_adv_manager_is_adv_active
(
void
);
194
209
int
bt_fast_pair_adv_manager_enable
(
void
);
210
226
int
bt_fast_pair_adv_manager_disable
(
void
);
227
232
bool
bt_fast_pair_adv_manager_is_ready
(
void
);
233
234
#ifdef __cplusplus
235
}
236
#endif
237
241
242
#endif
/* BT_FAST_PAIR_ADV_MANAGER_H_ */
bt_fast_pair_adv_manager_id_get
uint8_t bt_fast_pair_adv_manager_id_get(void)
Get the Bluetooth identity used for the Fast Pair advertising.
bt_fast_pair_adv_manager_info_cb_register
int bt_fast_pair_adv_manager_info_cb_register(struct bt_fast_pair_adv_manager_info_cb *cb)
Register information callbacks for the Fast Pair Advertising Manager.
bt_fast_pair_adv_manager_payload_refresh
void bt_fast_pair_adv_manager_payload_refresh(void)
Refresh the Fast Pair advertising payload.
bt_fast_pair_adv_manager_is_ready
bool bt_fast_pair_adv_manager_is_ready(void)
Check if the Fast Pair Advertising Manager module is ready.
bt_fast_pair_adv_manager_is_adv_active
bool bt_fast_pair_adv_manager_is_adv_active(void)
Check if the Fast Pair advertising set is active.
bt_fast_pair_adv_manager_disable
int bt_fast_pair_adv_manager_disable(void)
Disable the Fast Pair Advertising Manager module.
bt_fast_pair_adv_manager_enable
int bt_fast_pair_adv_manager_enable(void)
Enable the Fast Pair Advertising Manager module.
bt_fast_pair_adv_manager_is_pairing_mode
bool bt_fast_pair_adv_manager_is_pairing_mode(void)
Check if the Fast Pair Advertising Manager is in the pairing mode.
bt_fast_pair_adv_manager_request
void bt_fast_pair_adv_manager_request(struct bt_fast_pair_adv_manager_trigger *trigger, bool enable)
Request turning on the Fast Pair advertising.
bt_fast_pair_adv_manager_id_set
int bt_fast_pair_adv_manager_id_set(uint8_t id)
Set the Bluetooth identity for the Fast Pair advertising.
bt_fast_pair_adv_manager_info_cb::adv_state_changed
void(* adv_state_changed)(bool active)
Definition
adv_manager.h:163
bt_fast_pair_adv_manager_info_cb::node
sys_snode_t node
Definition
adv_manager.h:166
bt_fast_pair_adv_manager_info_cb
Definition
adv_manager.h:150
bt_fast_pair_adv_manager_trigger_config::suspend_rpa
bool suspend_rpa
Definition
adv_manager.h:49
bt_fast_pair_adv_manager_trigger_config::pairing_mode
bool pairing_mode
Definition
adv_manager.h:38
bt_fast_pair_adv_manager_trigger_config
Definition
adv_manager.h:30
bt_fast_pair_adv_manager_trigger::id
const char * id
Definition
adv_manager.h:71
bt_fast_pair_adv_manager_trigger::config
const struct bt_fast_pair_adv_manager_trigger_config *const config
Definition
adv_manager.h:74
bt_fast_pair_adv_manager_trigger
Definition
adv_manager.h:69
include
bluetooth
fast_pair
adv_manager.h
Generated on
for nRF Connect SDK API by
1.17.0