Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
uint16_t opcode, uint16_t dev-id, uint16_t param_size More...
#include <MgmtTypes.hpp>
Public Member Functions | |
MgmtEvent (const Opcode opc, const uint16_t dev_id, const uint16_t param_size, const uint8_t *param) | |
MgmtEvent (const Opcode opc, const uint16_t dev_id, const uint16_t param_size=0) | |
MgmtEvent (const uint8_t *buffer, const jau::nsize_t buffer_len, const jau::nsize_t exp_param_size) | |
Persistent memory, w/ ownership . More... | |
~MgmtEvent () noexcept override=default | |
virtual const uint8_t * | getData () const noexcept |
virtual jau::nsize_t | getDataOffset () const noexcept |
virtual jau::nsize_t | getDataSize () const noexcept |
Opcode | getOpcode () const noexcept |
jau::nsize_t | getTotalSize () const noexcept |
std::string | toString () const noexcept override |
virtual bool | validate (const MgmtCommand &req) const noexcept |
Public Member Functions inherited from direct_bt::MgmtMsg | |
MgmtMsg (const uint16_t opc, const uint16_t dev_id, const uint16_t param_size) | |
MgmtMsg (const uint8_t *buffer, const jau::nsize_t buffer_len) | |
virtual | ~MgmtMsg ()=default |
uint16_t | getDevID () const noexcept |
uint16_t | getIntOpcode () const noexcept |
uint16_t | getParamSize () const noexcept |
jau::TROOctets & | getPDU () noexcept |
Return the underlying octets read only. More... | |
uint64_t | getTimestamp () const noexcept |
jau::nsize_t | getTotalSize () const noexcept |
virtual std::string | toString () const noexcept=0 |
Static Public Member Functions | |
static MgmtEvent::Opcode | getOpcode (const uint8_t *buffer) |
static std::string | getOpcodeString (const Opcode opc) noexcept |
static std::unique_ptr< MgmtEvent > | getSpecialized (const uint8_t *buffer, jau::nsize_t const buffer_size) noexcept |
Return a newly created specialized instance pointer to base class. More... | |
static constexpr uint16_t | number (const Opcode rhs) noexcept |
Static Public Member Functions inherited from direct_bt::MgmtMsg | |
template<class T > | |
static T * | clone (const T &source) noexcept |
Clone template for convenience, based on derived class's copy-constructor. More... | |
static uint16_t | getDevID (const uint8_t *data) |
static uint16_t | getIntOpcode (const uint8_t *buffer) |
Protected Member Functions | |
std::string | baseString () const noexcept override |
std::string | valueString () const noexcept override |
virtual std::string | baseString () const noexcept |
virtual std::string | valueString () const noexcept=0 |
Static Protected Member Functions | |
static void | checkOpcode (const Opcode has, const Opcode exp) |
static void | checkOpcode (const Opcode has, const Opcode min, const Opcode max) |
Additional Inherited Members | |
Protected Attributes inherited from direct_bt::MgmtMsg | |
jau::POctets | pdu |
uint64_t | ts_creation |
uint16_t opcode, uint16_t dev-id, uint16_t param_size
Definition at line 1401 of file MgmtTypes.hpp.
|
strong |
Definition at line 1404 of file MgmtTypes.hpp.
|
inline |
Persistent memory, w/ ownership .
Definition at line 1504 of file MgmtTypes.hpp.
|
inline |
Definition at line 1515 of file MgmtTypes.hpp.
|
inline |
Definition at line 1521 of file MgmtTypes.hpp.
|
overridedefaultnoexcept |
|
inlinestaticconstexprnoexcept |
Definition at line 1459 of file MgmtTypes.hpp.
|
staticnoexcept |
|
inlinestaticprotected |
Definition at line 1465 of file MgmtTypes.hpp.
|
inlinestaticprotected |
Definition at line 1473 of file MgmtTypes.hpp.
|
inlineoverrideprotectedvirtualnoexcept |
Reimplemented from direct_bt::MgmtMsg.
Reimplemented in direct_bt::MgmtEvtAdressInfoMeta, direct_bt::MgmtEvtCmdComplete, direct_bt::MgmtEvtCmdStatus, direct_bt::MgmtEvtControllerError, direct_bt::MgmtEvtNewSettings, direct_bt::MgmtEvtNewLinkKey, direct_bt::MgmtEvtNewLongTermKey, direct_bt::MgmtEvtDeviceConnected, direct_bt::MgmtEvtDeviceDisconnected, direct_bt::MgmtEvtDeviceConnectFailed, direct_bt::MgmtEvtPinCodeRequest, direct_bt::MgmtEvtUserConfirmRequest, direct_bt::MgmtEvtPasskeyNotify, direct_bt::MgmtEvtAuthFailed, direct_bt::MgmtEvtDeviceFound, direct_bt::MgmtEvtDiscovering, direct_bt::MgmtEvtNewIdentityResolvingKey, direct_bt::MgmtEvtNewSignatureResolvingKey, direct_bt::MgmtEvtDeviceWhitelistAdded, direct_bt::MgmtEvtNewConnectionParam, direct_bt::MgmtEvtPairDeviceComplete, direct_bt::MgmtEvtHCILERemoteFeatures, direct_bt::MgmtEvtHCILEPhyUpdateComplete, direct_bt::MgmtEvtHCILELTKReq, direct_bt::MgmtEvtHCILELTKReplyAckCmd, direct_bt::MgmtEvtHCILELTKReplyRejCmd, direct_bt::MgmtEvtHCILEEnableEncryptionCmd, direct_bt::MgmtEvtHCIEncryptionChanged, and direct_bt::MgmtEvtHCIEncryptionKeyRefreshComplete.
Definition at line 1481 of file MgmtTypes.hpp.
|
inlineoverrideprotectedvirtualnoexcept |
Implements direct_bt::MgmtMsg.
Reimplemented in direct_bt::MgmtEvtLocalNameChanged, and direct_bt::MgmtEvtAdapterInfo.
Definition at line 1484 of file MgmtTypes.hpp.
|
inlinestatic |
Definition at line 1491 of file MgmtTypes.hpp.
|
staticnoexcept |
Return a newly created specialized instance pointer to base class.
Returned memory reference is managed by caller (delete etc)
Definition at line 409 of file MgmtTypes.cpp.
|
inlinenoexcept |
Definition at line 1531 of file MgmtTypes.hpp.
|
inlinenoexcept |
Definition at line 1533 of file MgmtTypes.hpp.
|
inlinevirtualnoexcept |
Reimplemented in direct_bt::MgmtEvtAdressInfoMeta, direct_bt::MgmtEvtCmdComplete, direct_bt::MgmtEvtCmdStatus, direct_bt::MgmtEvtControllerError, direct_bt::MgmtEvtNewSettings, direct_bt::MgmtEvtNewLinkKey, direct_bt::MgmtEvtNewLongTermKey, direct_bt::MgmtEvtDeviceConnected, direct_bt::MgmtEvtDeviceDisconnected, direct_bt::MgmtEvtDeviceConnectFailed, direct_bt::MgmtEvtPinCodeRequest, direct_bt::MgmtEvtUserConfirmRequest, direct_bt::MgmtEvtPasskeyNotify, direct_bt::MgmtEvtAuthFailed, direct_bt::MgmtEvtDeviceFound, direct_bt::MgmtEvtDiscovering, direct_bt::MgmtEvtNewIdentityResolvingKey, direct_bt::MgmtEvtNewSignatureResolvingKey, direct_bt::MgmtEvtDeviceWhitelistAdded, direct_bt::MgmtEvtNewConnectionParam, direct_bt::MgmtEvtPairDeviceComplete, direct_bt::MgmtEvtHCILERemoteFeatures, direct_bt::MgmtEvtHCILEPhyUpdateComplete, direct_bt::MgmtEvtHCILELTKReq, direct_bt::MgmtEvtHCILELTKReplyAckCmd, direct_bt::MgmtEvtHCILELTKReplyRejCmd, direct_bt::MgmtEvtHCILEEnableEncryptionCmd, direct_bt::MgmtEvtHCIEncryptionChanged, and direct_bt::MgmtEvtHCIEncryptionKeyRefreshComplete.
Definition at line 1535 of file MgmtTypes.hpp.
|
inlinevirtualnoexcept |
Reimplemented in direct_bt::MgmtEvtAdressInfoMeta, direct_bt::MgmtEvtCmdComplete, direct_bt::MgmtEvtCmdStatus, direct_bt::MgmtEvtControllerError, direct_bt::MgmtEvtNewSettings, direct_bt::MgmtEvtNewLinkKey, direct_bt::MgmtEvtNewLongTermKey, direct_bt::MgmtEvtDeviceConnected, direct_bt::MgmtEvtDeviceDisconnected, direct_bt::MgmtEvtDeviceConnectFailed, direct_bt::MgmtEvtPinCodeRequest, direct_bt::MgmtEvtUserConfirmRequest, direct_bt::MgmtEvtPasskeyNotify, direct_bt::MgmtEvtAuthFailed, direct_bt::MgmtEvtDeviceFound, direct_bt::MgmtEvtDiscovering, direct_bt::MgmtEvtNewIdentityResolvingKey, direct_bt::MgmtEvtNewSignatureResolvingKey, direct_bt::MgmtEvtDeviceWhitelistAdded, direct_bt::MgmtEvtNewConnectionParam, direct_bt::MgmtEvtPairDeviceComplete, direct_bt::MgmtEvtHCILERemoteFeatures, direct_bt::MgmtEvtHCILEPhyUpdateComplete, direct_bt::MgmtEvtHCILELTKReq, direct_bt::MgmtEvtHCILELTKReplyAckCmd, direct_bt::MgmtEvtHCILELTKReplyRejCmd, direct_bt::MgmtEvtHCILEEnableEncryptionCmd, direct_bt::MgmtEvtHCIEncryptionChanged, and direct_bt::MgmtEvtHCIEncryptionKeyRefreshComplete.
Definition at line 1536 of file MgmtTypes.hpp.
|
inlinevirtualnoexcept |
Reimplemented in direct_bt::MgmtEvtAdressInfoMeta, direct_bt::MgmtEvtCmdComplete, direct_bt::MgmtEvtCmdStatus, direct_bt::MgmtEvtControllerError, direct_bt::MgmtEvtNewSettings, direct_bt::MgmtEvtNewLinkKey, direct_bt::MgmtEvtNewLongTermKey, direct_bt::MgmtEvtDeviceConnected, direct_bt::MgmtEvtDeviceDisconnected, direct_bt::MgmtEvtDeviceConnectFailed, direct_bt::MgmtEvtPinCodeRequest, direct_bt::MgmtEvtUserConfirmRequest, direct_bt::MgmtEvtPasskeyNotify, direct_bt::MgmtEvtAuthFailed, direct_bt::MgmtEvtDeviceFound, direct_bt::MgmtEvtDiscovering, direct_bt::MgmtEvtNewIdentityResolvingKey, direct_bt::MgmtEvtNewSignatureResolvingKey, direct_bt::MgmtEvtDeviceWhitelistAdded, direct_bt::MgmtEvtNewConnectionParam, direct_bt::MgmtEvtPairDeviceComplete, direct_bt::MgmtEvtHCILERemoteFeatures, direct_bt::MgmtEvtHCILEPhyUpdateComplete, direct_bt::MgmtEvtHCILELTKReq, direct_bt::MgmtEvtHCILELTKReplyAckCmd, direct_bt::MgmtEvtHCILELTKReplyRejCmd, direct_bt::MgmtEvtHCILEEnableEncryptionCmd, direct_bt::MgmtEvtHCIEncryptionChanged, and direct_bt::MgmtEvtHCIEncryptionKeyRefreshComplete.
Definition at line 1537 of file MgmtTypes.hpp.
|
inlinevirtualnoexcept |
Reimplemented in direct_bt::MgmtEvtCmdComplete, and direct_bt::MgmtEvtCmdStatus.
Definition at line 1539 of file MgmtTypes.hpp.
|
inlineoverridevirtualnoexcept |
Implements direct_bt::MgmtMsg.
Definition at line 1543 of file MgmtTypes.hpp.