Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
phy_set_t Class Reference
Type that describe a set of PHY(sical) transports. More...
#include <BLETypes.h>
Public Member Functions | |
phy_set_t () | |
Create set that indicates no preference. | |
phy_set_t (uint8_t value) | |
Create a set based on the mask specified in the Bluetooth spec. | |
phy_set_t (bool phy_1m, bool phy_2m, bool phy_coded) | |
Create a set based on individual settings. | |
void | set_1m (bool enabled=true) |
Prefer 1M PHY. | |
void | set_2m (bool enabled=true) |
Prefer 2M PHY. | |
void | set_coded (bool enabled=true) |
Prefer coded PHY. |
Detailed Description
Type that describe a set of PHY(sical) transports.
This is used to indicate preference for the PHY transports set within it.
Definition at line 634 of file BLETypes.h.
Constructor & Destructor Documentation
phy_set_t | ( | ) |
Create set that indicates no preference.
Definition at line 645 of file BLETypes.h.
phy_set_t | ( | uint8_t | value ) |
Create a set based on the mask specified in the Bluetooth spec.
- Parameters:
-
value Octet containing the set of preferred PHYs
Definition at line 652 of file BLETypes.h.
phy_set_t | ( | bool | phy_1m, |
bool | phy_2m, | ||
bool | phy_coded | ||
) |
Create a set based on individual settings.
- Parameters:
-
phy_1m Prefer LE 1M phy_2m Prefer LE 2M if avaiable phy_coded Prefer coded modulation if avaiable
Definition at line 661 of file BLETypes.h.
Member Function Documentation
void set_1m | ( | bool | enabled = true ) |
Prefer 1M PHY.
Definition at line 672 of file BLETypes.h.
void set_2m | ( | bool | enabled = true ) |
Prefer 2M PHY.
Definition at line 681 of file BLETypes.h.
void set_coded | ( | bool | enabled = true ) |
Prefer coded PHY.
Definition at line 690 of file BLETypes.h.
Generated on Tue Aug 9 2022 00:37:37 by
