Type that describes a bluetooth PHY(sical) transport. More...
#include <BLETypes.h>
Public Types | |
typedef uint8_t | representation_t |
Type of the representation. More... | |
Public Member Functions | |
phy_t (type value) | |
Construct a new instance of phy_t. More... | |
uint8_t | value () const |
Explicit access to the inner value of the SafeEnum instance. More... | |
const uint8_t * | storage () const |
Return a pointer to the inner storage. More... | |
Type that describes a bluetooth PHY(sical) transport.
Definition at line 635 of file common/BLETypes.h.
|
inherited |
Type of the representation.
Definition at line 115 of file common/SafeEnum.h.
enum type |
struct scoped enum wrapped by the class
Enumerator | |
---|---|
NONE |
No phy selected.
|
LE_1M |
1Mbit/s LE.
|
LE_2M |
2Mbit/s LE. Modulation is similar to LE_1M but differs in rate. Therefore range performances are in the same ballpark as LE_1M while the increased rate minimize time spent to transfer or receive a packet which leads to a better power consumption and/or faster transfer.
|
LE_CODED |
LE Coded PHY. This transport reuse the 1Mbit/s channel with different coding schemes. Either two (S=2) or eight (S=8) symbols can be used to represent a bit while the 1Mbit/s transport use 1 symbol to code 1 bit of data. Here is the data rate of the two coding schemes:
The goal of the coded PHY is to increase the range of BLE devices. Of course given it takes more time to transfer data, transmission and reception last longer which leads to an increase in power consumption.
|
Definition at line 637 of file common/BLETypes.h.
Construct a new instance of phy_t.
Definition at line 690 of file common/BLETypes.h.
|
inherited |
Return a pointer to the inner storage.
Definition at line 211 of file common/SafeEnum.h.
|
inherited |
Explicit access to the inner value of the SafeEnum instance.
Definition at line 204 of file common/SafeEnum.h.