Files
nearby/cpp/core_v2/internal/pcp.h
T
Alexey Polyudov ae1c427b99 nearby: snapshot of cl/313536507
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
Change-Id: I8936b527079074d5c3af5531b9245063767cc4a7
2020-05-28 00:03:22 -07:00

27 lines
789 B
C++

#ifndef CORE_V2_INTERNAL_PCP_H_
#define CORE_V2_INTERNAL_PCP_H_
namespace location {
namespace nearby {
namespace connections {
// The PreConnectionProtocol (PCP) defines the combinations of interactions
// between the techniques (ultrasound audio, Bluetooth device names, BLE
// advertisements) used for offline Advertisement + Discovery, and identifies
// the steps to go through on each device.
//
// See go/nearby-offline-data-interchange-formats for more.
enum class Pcp {
kUnknown = 0,
kP2pStar = 1,
kP2pCluster = 2,
kP2pPointToPoint = 3,
// PCP is only allocated 5 bits in our data interchange formats, so there can
// never be more than 31 PCP values.
};
} // namespace connections
} // namespace nearby
} // namespace location
#endif // CORE_V2_INTERNAL_PCP_H_