zephyr/samples/bluetooth
Piotr Pryga 3b5c1efc16 Bluetooth: host: Align usage of cte_type in DF host implementation
The CTE type is used in two ways by HCI layer:
1) single value representing particular CTE type: AoA, AoD 1 us,
  AoD 2 us
2) bit-filed where bits 0-2 represent particular CTE types AoA
  AoD 1 us, AoD 2 us

The bit-field is used to inform Controller about allowed types
of CTE, hence single value carries more than one value.
To avoid confusion between these use cases in code that refers
to case 1) all named cte_type (singular form). For case 2)
cte_types (plural form) is used.

There is an enumeration that is used for both cases:
bt_df_cte_type. For cte_type only single value from the
enumeration may be assigned to variable except
BT_DF_CTE_TYPE_NONE and BT_DF_CTE_TYPE_ALL.
For cte_types all enum members may be used. Ocasionally
BT_DF_CTE_TYPE_NONE may be excluded. If that is true,
it is described in code documentation.

Thanks to that applications are released from requirement
to include hci.h header file.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2022-01-04 16:02:40 +01:00
..
beacon
broadcaster samples: Bluetooth: Added Broadcaster sample 2021-11-25 17:09:32 +02:00
central
central_hr
central_ht
central_iso net: buf: POOL_FIXED_DEFINE explicit user data 2021-11-24 16:04:50 +02:00
central_multilink
central_past
direction_finding_connectionless_rx Bluetooth: host: Align usage of cte_type in DF host implementation 2022-01-04 16:02:40 +01:00
direction_finding_connectionless_tx Bluetooth: host: Align usage of cte_type in DF host implementation 2022-01-04 16:02:40 +01:00
eddystone
handsfree
hci_pwr_ctrl
hci_rpmsg
hci_spi samples: bluetooth: hci: replace SYS_DEVICE_DEFINE with SYS_INIT 2021-12-24 20:59:10 -05:00
hci_uart samples: bluetooth: hci: replace SYS_DEVICE_DEFINE with SYS_INIT 2021-12-24 20:59:10 -05:00
hci_usb
hci_usb_h4
ibeacon
ipsp net: ipv6: Remove in6_addr from packed net_ipv6_hdr struct 2021-11-25 10:46:35 -05:00
iso_broadcast net: buf: POOL_FIXED_DEFINE explicit user data 2021-11-24 16:04:50 +02:00
iso_broadcast_benchmark net: buf: POOL_FIXED_DEFINE explicit user data 2021-11-24 16:04:50 +02:00
iso_connected_benchmark net: buf: POOL_FIXED_DEFINE explicit user data 2021-11-24 16:04:50 +02:00
iso_receive
mesh
mesh_demo
mesh_provisioner
observer samples: Bluetooth: Added Observer sample 2021-11-25 17:09:32 +02:00
periodic_adv
periodic_sync
peripheral
peripheral_csc
peripheral_dis
peripheral_esp
peripheral_hids
peripheral_hr samples: Take into account PINCTRL in minimal configurations 2021-12-21 18:30:35 +01:00
peripheral_ht
peripheral_identity
peripheral_iso
peripheral_ots bluetooth: ots: Add Create and Delete procedures 2021-11-24 21:49:11 +02:00
peripheral_past
peripheral_sc_only
scan_adv
st_ble_sensor
bluetooth.rst