Files
nearby/cpp/core/internal/pcp.h
T
Alexey Polyudov 2155b3ddeb Roll forward to cl/338482889
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
Change-Id: I9850950db8bd84f0904ea1a413151887f52098cf
2020-10-22 10:47:34 -07:00

27 lines
780 B
C++

#ifndef CORE_INTERNAL_PCP_H_
#define CORE_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_INTERNAL_PCP_H_