nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
fast_pair.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_FAST_PAIR_H_
8#define BT_FAST_PAIR_FAST_PAIR_H_
9
10#include <zephyr/bluetooth/bluetooth.h>
11
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#define BT_FAST_PAIR_BATTERY_LEVEL_UNKNOWN 0x7f
32
44
58
81
99
102
119
140
150
154 uint8_t level;
155};
156
168 void (*account_key_written)(struct bt_conn *conn);
169
171 sys_snode_t node;
172};
173
198
209
215
229
250int bt_fast_pair_adv_data_fill(struct bt_data *adv_data, uint8_t *buf, size_t buf_size,
251 struct bt_fast_pair_adv_config fp_adv_config);
252
263void bt_fast_pair_set_pairing_mode(bool pairing_mode);
264
276
294 struct bt_fast_pair_battery battery);
295
313
329
330#ifdef __cplusplus
331}
332#endif
333
338#endif /* BT_FAST_PAIR_FAST_PAIR_H_ */
int bt_fast_pair_disable(void)
int bt_fast_pair_enable(void)
bt_fast_pair_not_disc_adv_type
Fast Pair not discoverable advertising type. Used to generate advertising packet.
Definition fast_pair.h:46
@ BT_FAST_PAIR_NOT_DISC_ADV_TYPE_COUNT
Definition fast_pair.h:56
@ BT_FAST_PAIR_NOT_DISC_ADV_TYPE_SHOW_UI_IND
Definition fast_pair.h:50
@ BT_FAST_PAIR_NOT_DISC_ADV_TYPE_HIDE_UI_IND
Definition fast_pair.h:53
bool bt_fast_pair_is_ready(void)
Check if Fast Pair is ready.
bt_fast_pair_battery_comp
Index of Fast Pair battery component.
Definition fast_pair.h:86
@ BT_FAST_PAIR_BATTERY_COMP_COUNT
Definition fast_pair.h:97
@ BT_FAST_PAIR_BATTERY_COMP_LEFT_BUD
Definition fast_pair.h:88
@ BT_FAST_PAIR_BATTERY_COMP_RIGHT_BUD
Definition fast_pair.h:91
@ BT_FAST_PAIR_BATTERY_COMP_BUD_CASE
Definition fast_pair.h:94
int bt_fast_pair_factory_reset(void)
size_t bt_fast_pair_adv_data_size(struct bt_fast_pair_adv_config fp_adv_config)
bt_fast_pair_adv_battery_mode
Fast Pair advertising battery mode. Used to generate advertising packet.
Definition fast_pair.h:68
@ BT_FAST_PAIR_ADV_BATTERY_MODE_NONE
Definition fast_pair.h:70
@ BT_FAST_PAIR_ADV_BATTERY_MODE_SHOW_UI_IND
Definition fast_pair.h:73
@ BT_FAST_PAIR_ADV_BATTERY_MODE_COUNT
Definition fast_pair.h:79
@ BT_FAST_PAIR_ADV_BATTERY_MODE_HIDE_UI_IND
Definition fast_pair.h:76
bool bt_fast_pair_has_account_key(void)
void bt_fast_pair_set_pairing_mode(bool pairing_mode)
bt_fast_pair_adv_mode
Fast Pair advertising mode. Used to generate advertising packet.
Definition fast_pair.h:34
@ BT_FAST_PAIR_ADV_MODE_NOT_DISC
Definition fast_pair.h:39
@ BT_FAST_PAIR_ADV_MODE_DISC
Definition fast_pair.h:36
@ BT_FAST_PAIR_ADV_MODE_COUNT
Definition fast_pair.h:42
int bt_fast_pair_adv_data_fill(struct bt_data *adv_data, uint8_t *buf, size_t buf_size, struct bt_fast_pair_adv_config fp_adv_config)
int bt_fast_pair_info_cb_register(struct bt_fast_pair_info_cb *cb)
int bt_fast_pair_battery_set(enum bt_fast_pair_battery_comp battery_comp, struct bt_fast_pair_battery battery)
struct bt_fast_pair_not_disc_adv_info not_disc
Definition fast_pair.h:137
struct bt_fast_pair_disc_adv_info disc
Definition fast_pair.h:132
enum bt_fast_pair_adv_mode mode
Definition fast_pair.h:123
Fast Pair advertising config. Used to generate advertising packet.
Definition fast_pair.h:121
bool charging
Definition fast_pair.h:149
uint8_t level
Definition fast_pair.h:154
Fast Pair battery component descriptor.
Definition fast_pair.h:145
Fast Pair discoverable advertising info. Currently empty.
Definition fast_pair.h:101
sys_snode_t node
Definition fast_pair.h:171
void(* account_key_written)(struct bt_conn *conn)
Definition fast_pair.h:168
Definition fast_pair.h:158
enum bt_fast_pair_adv_battery_mode battery_mode
Definition fast_pair.h:117
enum bt_fast_pair_not_disc_adv_type type
Definition fast_pair.h:108
Fast Pair not discoverable advertising info.
Definition fast_pair.h:104