nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
ble_cs.h File Reference
#include <bluetooth/fast_pair/fhn/pf/pf.h>
#include <zephyr/bluetooth/addr.h>

Go to the source code of this file.

Data Structures

struct  bt_fast_pair_fhn_pf_ble_cs_ranging_capability
 Descriptor of the BLE CS technology capability payload. More...
 
struct  bt_fast_pair_fhn_pf_ble_cs_ranging_config
 Descriptor of the BLE CS technology configuration payload. More...
 

Enumerations

enum  bt_fast_pair_fhn_pf_ble_cs_security_level {
  BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_UNKNOWN = 0 , BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_ONE = 1 , BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_TWO = 2 , BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_THREE = 3 ,
  BT_FAST_PAIR_FHN_PF_BLE_CS_SECURITY_LEVEL_FOUR = 4
}
 Bluetooth Low Energy (BLE) Channel Sounding (CS) security levels. More...
 

Functions

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.
 
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.
 
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.
 
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.