nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
ble_cs.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_FHN_PF_BLE_CS_H_
8#define BT_FAST_PAIR_FHN_PF_BLE_CS_H_
9
11#include <zephyr/bluetooth/addr.h>
12
24#ifdef __cplusplus
25extern "C" {
26#endif
27
49
60 uint8_t bm, enum bt_fast_pair_fhn_pf_ble_cs_security_level level);
61
71 uint8_t *bm, enum bt_fast_pair_fhn_pf_ble_cs_security_level level, bool value);
72
90
122 const struct bt_fast_pair_fhn_pf_ble_cs_ranging_capability *capability_desc,
123 struct bt_fast_pair_fhn_pf_ranging_tech_payload *capability_payload);
124
140
161 const struct bt_fast_pair_fhn_pf_ranging_tech_payload *config_payload,
163
164#ifdef __cplusplus
165}
166#endif
167
172#endif /* BT_FAST_PAIR_FHN_PF_BLE_CS_H_ */
int bt_fast_pair_fhn_pf_ble_cs_ranging_capability_encode(const struct bt_fast_pair_fhn_pf_ble_cs_ranging_capability *capability_desc, struct bt_fast_pair_fhn_pf_ranging_tech_payload *capability_payload)
Encode a descriptor of the BLE CS ranging capability into a technology-specific payload.
bool bt_fast_pair_fhn_pf_ble_cs_security_level_bm_check(uint8_t bm, enum bt_fast_pair_fhn_pf_ble_cs_security_level level)
Check if a security level is set in a bitmask.
bt_fast_pair_fhn_pf_ble_cs_security_level
Bluetooth Low Energy (BLE) Channel Sounding (CS) security levels.
Definition ble_cs.h:33
@ BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_UNKNOWN
Definition ble_cs.h:35
@ BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_ONE
Definition ble_cs.h:38
@ BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_FOUR
Definition ble_cs.h:47
@ BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_TWO
Definition ble_cs.h:41
@ BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_THREE
Definition ble_cs.h:44
int bt_fast_pair_fhn_pf_ble_cs_ranging_config_decode(const struct bt_fast_pair_fhn_pf_ranging_tech_payload *config_payload, struct bt_fast_pair_fhn_pf_ble_cs_ranging_config *config_desc)
Decode a technology-specific payload into a descriptor of the BLE CS technology ranging configuration...
void bt_fast_pair_fhn_pf_ble_cs_security_level_bm_write(uint8_t *bm, enum bt_fast_pair_fhn_pf_ble_cs_security_level level, bool value)
Set or clear a security level bit in a bitmask.
bt_addr_t addr
Definition ble_cs.h:88
uint8_t supported_security_level_bm
Definition ble_cs.h:83
Descriptor of the BLE CS technology capability payload.
Definition ble_cs.h:79
bt_addr_t addr
Definition ble_cs.h:138
enum bt_fast_pair_fhn_pf_ble_cs_security_level selected_security_level
Definition ble_cs.h:133
Descriptor of the BLE CS technology configuration payload.
Definition ble_cs.h:131