diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-02-18 11:39:15 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-02-19 13:44:53 -0800 |
commit | b7cb0d3af4c56b6b0223e799c577d2d7265f5805 (patch) | |
tree | 1c4aa24a13996c37afae94b0608bec425b605566 /lib/bluetooth.h | |
parent | 17516034a67c11b1254fc3abec44bdf9eb4adefd (diff) | |
download | bluez-b7cb0d3af4c56b6b0223e799c577d2d7265f5805.tar.gz |
lib: Add definition to BT_PHY
This adds the definition to BT_PHY socket options along with the
possible bitfields for the return value.
Diffstat (limited to 'lib/bluetooth.h')
-rw-r--r-- | lib/bluetooth.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/bluetooth.h b/lib/bluetooth.h index 756dce164..d14217eac 100644 --- a/lib/bluetooth.h +++ b/lib/bluetooth.h @@ -123,6 +123,24 @@ struct bt_voice { #define BT_VOICE_TRANSPARENT 0x0003 #define BT_VOICE_CVSD_16BIT 0x0060 +#define BT_PHY 14 + +#define BT_PHY_BR_1M_1SLOT 0x00000001 +#define BT_PHY_BR_1M_3SLOT 0x00000002 +#define BT_PHY_BR_1M_5SLOT 0x00000004 +#define BT_PHY_EDR_2M_1SLOT 0x00000008 +#define BT_PHY_EDR_2M_3SLOT 0x00000010 +#define BT_PHY_EDR_2M_5SLOT 0x00000020 +#define BT_PHY_EDR_3M_1SLOT 0x00000040 +#define BT_PHY_EDR_3M_3SLOT 0x00000080 +#define BT_PHY_EDR_3M_5SLOT 0x00000100 +#define BT_PHY_LE_1M_TX 0x00000200 +#define BT_PHY_LE_1M_RX 0x00000400 +#define BT_PHY_LE_2M_TX 0x00000800 +#define BT_PHY_LE_2M_RX 0x00001000 +#define BT_PHY_LE_CODED_TX 0x00002000 +#define BT_PHY_LE_CODED_RX 0x00004000 + /* Connection and socket states */ enum { BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */ |