nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
fmdn.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024-2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef BT_SERVICES_FAST_PAIR_FMDN_H_
8#define BT_SERVICES_FAST_PAIR_FMDN_H_
9
18#warning "This header is deprecated. Use <bluetooth/fast_pair/fhn/fhn.h> instead."
19
21
22/* Deprecated type aliases.
23 *
24 * Use #define instead of typedef so that the old tag names (e.g.
25 * "struct bt_fast_pair_fmdn_info_cb") resolve to the new FHN tags
26 * via the preprocessor. A typedef would only create a new type-name,
27 * not a struct/enum tag, causing "incomplete type" errors when old
28 * code uses the tag form.
29 */
30#define bt_fast_pair_fmdn_ring_src bt_fast_pair_fhn_ring_src
31#define bt_fast_pair_fmdn_ring_comp bt_fast_pair_fhn_ring_comp
32#define bt_fast_pair_fmdn_ring_volume bt_fast_pair_fhn_ring_volume
33#define bt_fast_pair_fmdn_ring_req_param bt_fast_pair_fhn_ring_req_param
34#define bt_fast_pair_fmdn_ring_cb bt_fast_pair_fhn_ring_cb
35#define bt_fast_pair_fmdn_ring_trigger bt_fast_pair_fhn_ring_trigger
36#define bt_fast_pair_fmdn_ring_state_param bt_fast_pair_fhn_ring_state_param
37#define bt_fast_pair_fmdn_motion_detector_cb bt_fast_pair_fhn_motion_detector_cb
38#define bt_fast_pair_fmdn_adv_param bt_fast_pair_fhn_adv_param
39#define bt_fast_pair_fmdn_info_cb bt_fast_pair_fhn_info_cb
40#define bt_fast_pair_fmdn_read_mode bt_fast_pair_fhn_read_mode
41#define bt_fast_pair_fmdn_read_mode_cb bt_fast_pair_fhn_read_mode_cb
42
43/* Deprecated enum value aliases. */
44#define BT_FAST_PAIR_FMDN_RING_SRC_FMDN_BT_GATT BT_FAST_PAIR_FHN_RING_SRC_FHN_BT_GATT
45#define BT_FAST_PAIR_FMDN_RING_SRC_DULT_BT_GATT BT_FAST_PAIR_FHN_RING_SRC_DULT_BT_GATT
46#define BT_FAST_PAIR_FMDN_RING_SRC_DULT_MOTION_DETECTOR \
47 BT_FAST_PAIR_FHN_RING_SRC_DULT_MOTION_DETECTOR
48
49#define BT_FAST_PAIR_FMDN_RING_COMP_RIGHT BT_FAST_PAIR_FHN_RING_COMP_RIGHT
50#define BT_FAST_PAIR_FMDN_RING_COMP_LEFT BT_FAST_PAIR_FHN_RING_COMP_LEFT
51#define BT_FAST_PAIR_FMDN_RING_COMP_CASE BT_FAST_PAIR_FHN_RING_COMP_CASE
52
53#define BT_FAST_PAIR_FMDN_RING_COMP_BM_NONE BT_FAST_PAIR_FHN_RING_COMP_BM_NONE
54#define BT_FAST_PAIR_FMDN_RING_COMP_BM_ALL BT_FAST_PAIR_FHN_RING_COMP_BM_ALL
55
56#define BT_FAST_PAIR_FMDN_RING_VOLUME_DEFAULT BT_FAST_PAIR_FHN_RING_VOLUME_DEFAULT
57#define BT_FAST_PAIR_FMDN_RING_VOLUME_LOW BT_FAST_PAIR_FHN_RING_VOLUME_LOW
58#define BT_FAST_PAIR_FMDN_RING_VOLUME_MEDIUM BT_FAST_PAIR_FHN_RING_VOLUME_MEDIUM
59#define BT_FAST_PAIR_FMDN_RING_VOLUME_HIGH BT_FAST_PAIR_FHN_RING_VOLUME_HIGH
60
61#define BT_FAST_PAIR_FMDN_RING_MSEC_PER_DSEC BT_FAST_PAIR_FHN_RING_MSEC_PER_DSEC
62#define BT_FAST_PAIR_FMDN_RING_TIMEOUT_DS_TO_MS(_t) BT_FAST_PAIR_FHN_RING_TIMEOUT_DS_TO_MS(_t)
63#define BT_FAST_PAIR_FMDN_RING_TIMEOUT_MS_TO_DS(_t) BT_FAST_PAIR_FHN_RING_TIMEOUT_MS_TO_DS(_t)
64
65#define BT_FAST_PAIR_FMDN_RING_TRIGGER_STARTED BT_FAST_PAIR_FHN_RING_TRIGGER_STARTED
66#define BT_FAST_PAIR_FMDN_RING_TRIGGER_FAILED BT_FAST_PAIR_FHN_RING_TRIGGER_FAILED
67#define BT_FAST_PAIR_FMDN_RING_TRIGGER_TIMEOUT_STOPPED BT_FAST_PAIR_FHN_RING_TRIGGER_TIMEOUT_STOPPED
68#define BT_FAST_PAIR_FMDN_RING_TRIGGER_UI_STOPPED BT_FAST_PAIR_FHN_RING_TRIGGER_UI_STOPPED
69#define BT_FAST_PAIR_FMDN_RING_TRIGGER_GATT_STOPPED BT_FAST_PAIR_FHN_RING_TRIGGER_GATT_STOPPED
70
71#define BT_FAST_PAIR_FMDN_BATTERY_LEVEL_NONE BT_FAST_PAIR_FHN_BATTERY_LEVEL_NONE
72
73#define BT_FAST_PAIR_FMDN_ADV_PARAM_INIT BT_FAST_PAIR_FHN_ADV_PARAM_INIT
74#define BT_FAST_PAIR_FMDN_ADV_PARAM_DEFAULT BT_FAST_PAIR_FHN_ADV_PARAM_DEFAULT
75
76#define BT_FAST_PAIR_FMDN_READ_MODE_FMDN_RECOVERY BT_FAST_PAIR_FHN_READ_MODE_FHN_RECOVERY
77#define BT_FAST_PAIR_FMDN_READ_MODE_DULT_ID BT_FAST_PAIR_FHN_READ_MODE_DULT_ID
78
79/* Deprecated function aliases. */
80__deprecated static inline int bt_fast_pair_fmdn_ring_cb_register(
81 const struct bt_fast_pair_fhn_ring_cb *cb)
82{
84}
85
86__deprecated static inline int bt_fast_pair_fmdn_ring_state_update(
88 const struct bt_fast_pair_fhn_ring_state_param *param)
89{
90 return bt_fast_pair_fhn_ring_state_update(src, param);
91}
92
98
99__deprecated static inline int bt_fast_pair_fmdn_battery_level_set(
100 uint8_t percentage_level)
101{
102 return bt_fast_pair_fhn_battery_level_set(percentage_level);
103}
104
105__deprecated static inline int bt_fast_pair_fmdn_adv_param_set(
106 const struct bt_fast_pair_fhn_adv_param *adv_param)
107{
108 return bt_fast_pair_fhn_adv_param_set(adv_param);
109}
110
111__deprecated static inline int bt_fast_pair_fmdn_id_set(uint8_t id)
112{
113 return bt_fast_pair_fhn_id_set(id);
114}
115
116__deprecated static inline bool bt_fast_pair_fmdn_is_provisioned(void)
117{
119}
120
121__deprecated static inline int bt_fast_pair_fmdn_info_cb_register(
122 struct bt_fast_pair_fhn_info_cb *cb)
123{
125}
126
127__deprecated static inline int bt_fast_pair_fmdn_read_mode_cb_register(
128 const struct bt_fast_pair_fhn_read_mode_cb *cb)
129{
131}
132
133__deprecated static inline int bt_fast_pair_fmdn_read_mode_enter(
135{
137}
138
139#endif /* BT_SERVICES_FAST_PAIR_FMDN_H_ */
static int bt_fast_pair_fmdn_ring_cb_register(const struct bt_fast_pair_fhn_ring_cb *cb)
Definition fmdn.h:80
static int bt_fast_pair_fmdn_id_set(uint8_t id)
Definition fmdn.h:111
static int bt_fast_pair_fmdn_motion_detector_cb_register(const struct bt_fast_pair_fhn_motion_detector_cb *cb)
Definition fmdn.h:93
static int bt_fast_pair_fmdn_adv_param_set(const struct bt_fast_pair_fhn_adv_param *adv_param)
Definition fmdn.h:105
static int bt_fast_pair_fmdn_info_cb_register(struct bt_fast_pair_fhn_info_cb *cb)
Definition fmdn.h:121
static int bt_fast_pair_fmdn_ring_state_update(enum bt_fast_pair_fhn_ring_src src, const struct bt_fast_pair_fhn_ring_state_param *param)
Definition fmdn.h:86
static int bt_fast_pair_fmdn_read_mode_cb_register(const struct bt_fast_pair_fhn_read_mode_cb *cb)
Definition fmdn.h:127
static int bt_fast_pair_fmdn_battery_level_set(uint8_t percentage_level)
Definition fmdn.h:99
static int bt_fast_pair_fmdn_read_mode_enter(enum bt_fast_pair_fhn_read_mode mode)
Definition fmdn.h:133
static bool bt_fast_pair_fmdn_is_provisioned(void)
Definition fmdn.h:116
int bt_fast_pair_fhn_info_cb_register(struct bt_fast_pair_fhn_info_cb *cb)
Register the information callbacks in the FHN module.
int bt_fast_pair_fhn_read_mode_cb_register(const struct bt_fast_pair_fhn_read_mode_cb *cb)
Register the read mode callbacks in the FHN module.
bt_fast_pair_fhn_ring_src
Ringing activity source types.
Definition fhn.h:32
bool bt_fast_pair_fhn_is_provisioned(void)
Check the FHN provisioning state.
int bt_fast_pair_fhn_id_set(uint8_t id)
Set the Bluetooth identity for the FHN extension.
bt_fast_pair_fhn_read_mode
Definition fhn.h:594
int bt_fast_pair_fhn_motion_detector_cb_register(const struct bt_fast_pair_fhn_motion_detector_cb *cb)
Register motion detector callbacks.
int bt_fast_pair_fhn_ring_state_update(enum bt_fast_pair_fhn_ring_src src, const struct bt_fast_pair_fhn_ring_state_param *param)
Update the ringing state in the FHN module.
int bt_fast_pair_fhn_adv_param_set(const struct bt_fast_pair_fhn_adv_param *adv_param)
Set the FHN advertising parameters.
int bt_fast_pair_fhn_ring_cb_register(const struct bt_fast_pair_fhn_ring_cb *cb)
Register the ringing callbacks in the FHN module.
int bt_fast_pair_fhn_read_mode_enter(enum bt_fast_pair_fhn_read_mode mode)
Enter read mode.
int bt_fast_pair_fhn_battery_level_set(uint8_t percentage_level)
Set the current battery level.
Definition fhn.h:433
Definition fhn.h:492
Motion detector callback structure.
Definition fhn.h:316
Definition fhn.h:605
Definition fhn.h:127