Enum Constant and Description |
---|
DEFAULT
SweetBlue's default option.
|
HIGH_SPEED
Use Bluetooth 5's high speed physical layer.
|
LONG_RANGE_2X
Use Bluetooth 5's long range support (2x range).
|
LONG_RANGE_4X
Use Bluetooth 5's longer range support (4x range).
|
Modifier and Type | Method and Description |
---|---|
static Phy |
fromMasks(int txMask,
int rxMask) |
static Phy |
fromMasks(int txMask,
int rxMask,
int phyOptions) |
int |
getPhyOptions() |
int |
getRxMask() |
int |
getTxMask() |
static Phy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Phy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Phy DEFAULT
public static final Phy HIGH_SPEED
public static final Phy LONG_RANGE_2X
public static final Phy LONG_RANGE_4X
public static Phy[] values()
for (Phy c : Phy.values()) System.out.println(c);
public static Phy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getTxMask()
public int getRxMask()
public int getPhyOptions()
public static Phy fromMasks(int txMask, int rxMask, int phyOptions)
public static Phy fromMasks(int txMask, int rxMask)