From 53354fbf06c2703569fc7702c11be7e0b384e784 Mon Sep 17 00:00:00 2001 From: Alexis Couvreur Date: Tue, 17 Mar 2026 11:37:05 -0400 Subject: [PATCH] feat: add PHY type Platform will now be able to implement Device.GetPHY() by returning this PHY type extracted from the platform specific types. --- phy.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 phy.go diff --git a/phy.go b/phy.go new file mode 100644 index 0000000..c1d90ad --- /dev/null +++ b/phy.go @@ -0,0 +1,12 @@ +package bluetooth + +type PHY uint8 + +const ( + // PHY1M is the 1M PHY, which is the default for Bluetooth LE. + PHY1M PHY = 0x01 + // PHY2M is the 2M PHY, which allows for higher data rates but consumes more power. + PHY2M PHY = 0x02 + // PHYCoded is the Coded PHY, which allows for longer range at the cost of lower data rates. + PHYCoded PHY = 0x03 +)