diff options
Diffstat (limited to 'api/direct_bt')
-rw-r--r-- | api/direct_bt/ATTPDUTypes.hpp | 36 | ||||
-rw-r--r-- | api/direct_bt/SMPTypes.hpp | 28 |
2 files changed, 32 insertions, 32 deletions
diff --git a/api/direct_bt/ATTPDUTypes.hpp b/api/direct_bt/ATTPDUTypes.hpp index b684e984..24424506 100644 --- a/api/direct_bt/ATTPDUTypes.hpp +++ b/api/direct_bt/ATTPDUTypes.hpp @@ -664,7 +664,7 @@ namespace direct_bt { return mtu - getAuthSigSize() - getPDUValueOffset(); } - constexpr_cxx20 virtual std::string getName() const noexcept { + virtual std::string getName() const noexcept { return "AttPDUMsg"; } @@ -689,7 +689,7 @@ namespace direct_bt { constexpr_cxx20 jau::nsize_t getPDUValueOffset() const noexcept override { return 1; } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttPDUUndefined"; } }; @@ -753,7 +753,7 @@ namespace direct_bt { constexpr ErrorCode getErrorCode() const noexcept { return static_cast<ErrorCode>(pdu.get_uint8_nc(4)); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttErrorRsp"; } @@ -796,7 +796,7 @@ namespace direct_bt { constexpr uint16_t getMTUSize() const noexcept { return pdu.get_uint16_nc(1); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttExchangeMTU"; } @@ -835,7 +835,7 @@ namespace direct_bt { constexpr uint16_t getHandle() const noexcept { return pdu.get_uint16_nc( 1 ); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttReadReq"; } @@ -877,7 +877,7 @@ namespace direct_bt { constexpr uint16_t getValueOffset() const noexcept { return pdu.get_uint16_nc( 1 + 2 ); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttReadBlobReq"; } @@ -936,7 +936,7 @@ namespace direct_bt { constexpr jau::TOctetSlice const & getValue() const noexcept { return view; } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttReadNRsp"; } @@ -990,7 +990,7 @@ namespace direct_bt { constexpr jau::TOctetSlice const & getValue() const noexcept { return view; } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttWriteReq"; } @@ -1025,7 +1025,7 @@ namespace direct_bt { /** opcode */ constexpr_cxx20 jau::nsize_t getPDUValueOffset() const noexcept override { return 1; } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttWriteRsp"; } }; @@ -1073,7 +1073,7 @@ namespace direct_bt { constexpr jau::TOctetSlice const & getValue() const noexcept { return view; } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttWriteCmd"; } @@ -1147,7 +1147,7 @@ namespace direct_bt { constexpr jau::TOctetSlice const & getValue() const noexcept { return view; } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttPrepWrite"; } @@ -1185,7 +1185,7 @@ namespace direct_bt { constexpr uint8_t getFlags() const noexcept { return pdu.get_uint8_nc( 1 ); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttExeWriteReq"; } }; @@ -1215,7 +1215,7 @@ namespace direct_bt { /** opcode */ constexpr_cxx20 jau::nsize_t getPDUValueOffset() const noexcept override { return 1; } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttExeWriteRsp"; } }; @@ -1602,7 +1602,7 @@ namespace direct_bt { return pdu.get_wptr() + getElementPDUOffset(elementIdx) + 2 /* handle size */; } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttReadByTypeRsp"; } @@ -1780,7 +1780,7 @@ namespace direct_bt { constexpr uint16_t getEndHandle() const noexcept { return pdu.get_uint16_nc( 1 + 2 ); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttFindInfoReq"; } @@ -1927,7 +1927,7 @@ namespace direct_bt { v.put(b, 0, true /* littleEndian */); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttFindInfoRsp"; } @@ -2005,7 +2005,7 @@ namespace direct_bt { return std::make_unique<jau::uuid16_t>(0); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttFindByTypeValueReq"; } @@ -2125,7 +2125,7 @@ namespace direct_bt { pdu.put_uint16( offset, handle_end ); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "AttFindByTypeValueRsp"; } diff --git a/api/direct_bt/SMPTypes.hpp b/api/direct_bt/SMPTypes.hpp index af22976d..09e9a91d 100644 --- a/api/direct_bt/SMPTypes.hpp +++ b/api/direct_bt/SMPTypes.hpp @@ -975,7 +975,7 @@ namespace direct_bt { */ constexpr jau::nsize_t getDataOffset() const noexcept { return 1; /* default: opcode */ } - constexpr_cxx20 virtual std::string getName() const noexcept { + virtual std::string getName() const noexcept { return "SMPPDUMsg"; } @@ -1172,7 +1172,7 @@ namespace direct_bt { return responder_key_dist; } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPPairingMsg"; } @@ -1257,7 +1257,7 @@ namespace direct_bt { */ constexpr jau::uint128_t getConfirmValue() const noexcept { return jau::get_uint128(pdu.get_ptr(), 1); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPPairConfirm"; } @@ -1353,7 +1353,7 @@ namespace direct_bt { */ constexpr jau::uint128_t getRand() const noexcept { return jau::get_uint128(pdu.get_ptr(), 1); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPPairRand"; } @@ -1424,7 +1424,7 @@ namespace direct_bt { return static_cast<ReasonCode>(pdu.get_uint8_nc(1)); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPPairFailed"; } @@ -1490,7 +1490,7 @@ namespace direct_bt { */ constexpr jau::uint256_t getPubKeyY() const noexcept { return jau::get_uint256(pdu.get_ptr(), 1+32); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPPairPubKey"; } @@ -1550,7 +1550,7 @@ namespace direct_bt { */ constexpr jau::uint128_t getDHKeyCheck() const noexcept { return jau::get_uint128(pdu.get_ptr(), 1); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPPairDHKeyCheck"; } @@ -1614,7 +1614,7 @@ namespace direct_bt { return static_cast<TypeCode>(pdu.get_uint8_nc(1)); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPPasskeyNotify"; } @@ -1683,7 +1683,7 @@ namespace direct_bt { */ constexpr jau::uint128_t getLTK() const noexcept { return jau::get_uint128(pdu.get_ptr(), 1); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPEncInfo"; } @@ -1762,7 +1762,7 @@ namespace direct_bt { */ constexpr uint64_t getRand() const noexcept { return jau::get_uint64(pdu.get_ptr(), 1+2); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPMasterIdent"; } @@ -1834,7 +1834,7 @@ namespace direct_bt { */ constexpr jau::uint128_t getIRK() const noexcept { return jau::get_uint128(pdu.get_ptr(), 1); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPIdentInfo"; } @@ -1903,7 +1903,7 @@ namespace direct_bt { */ inline EUI48 getAddress() const noexcept { return pdu.get_eui48_nc(1+1); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPIdentAddrInfo"; } @@ -1974,7 +1974,7 @@ namespace direct_bt { */ constexpr jau::uint128_t getCSRK() const noexcept { return jau::get_uint128(pdu.get_ptr(), 1); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPSignInfo"; } @@ -2041,7 +2041,7 @@ namespace direct_bt { return is_set(authReqMask, bit); } - constexpr_cxx20 std::string getName() const noexcept override { + std::string getName() const noexcept override { return "SMPSecurityReq"; } |