#include <MgmtTypes.hpp>
|
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) |
|
Definition at line 347 of file MgmtTypes.hpp.
◆ MgmtMsg() [1/2]
direct_bt::MgmtMsg::MgmtMsg |
( |
const uint16_t |
opc, |
|
|
const uint16_t |
dev_id, |
|
|
const uint16_t |
param_size |
|
) |
| |
|
inline |
◆ MgmtMsg() [2/2]
direct_bt::MgmtMsg::MgmtMsg |
( |
const uint8_t * |
buffer, |
|
|
const jau::nsize_t |
buffer_len |
|
) |
| |
|
inline |
◆ ~MgmtMsg()
virtual direct_bt::MgmtMsg::~MgmtMsg |
( |
| ) |
|
|
virtualdefault |
◆ baseString()
virtual std::string direct_bt::MgmtMsg::baseString |
( |
| ) |
const |
|
inlineprotectedvirtualnoexcept |
Reimplemented in direct_bt::MgmtCommand, direct_bt::MgmtEvent, 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 353 of file MgmtTypes.hpp.
◆ valueString()
virtual std::string direct_bt::MgmtMsg::valueString |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
Implemented in direct_bt::MgmtCommand, direct_bt::MgmtSetDiscoverableCmd, direct_bt::MgmtSetLocalNameCmd, direct_bt::MgmtLoadLinkKeyCmd, direct_bt::MgmtLoadLongTermKeyCmd, direct_bt::MgmtIdentityResolveKeyCmd, direct_bt::MgmtCmdAdressInfoMeta, direct_bt::MgmtLoadIdentityResolvingKeyCmd, direct_bt::MgmtSetPrivacyCmd, direct_bt::MgmtPinCodeReplyCmd, direct_bt::MgmtPairDeviceCmd, direct_bt::MgmtUnpairDeviceCmd, direct_bt::MgmtUserPasskeyReplyCmd, direct_bt::MgmtAddDeviceToWhitelistCmd, direct_bt::MgmtLoadConnParamCmd, direct_bt::MgmtSetDefaultConnParamCmd, direct_bt::MgmtEvent, direct_bt::MgmtEvtLocalNameChanged, and direct_bt::MgmtEvtAdapterInfo.
◆ getIntOpcode() [1/2]
static uint16_t direct_bt::MgmtMsg::getIntOpcode |
( |
const uint8_t * |
buffer | ) |
|
|
inlinestatic |
◆ getDevID() [1/2]
static uint16_t direct_bt::MgmtMsg::getDevID |
( |
const uint8_t * |
data | ) |
|
|
inlinestatic |
◆ clone()
template<class T >
static T * direct_bt::MgmtMsg::clone |
( |
const T & |
source | ) |
|
|
inlinestaticnoexcept |
Clone template for convenience, based on derived class's copy-constructor.
MgmtEvent callback example:
bool mgmtEvDeviceUnpairedMgmt(const MgmtEvent& e) noexcept {
const MgmtEvtDeviceUnpaired &event = *static_cast<const MgmtEvtDeviceUnpaired *>(&e);
MgmtMsg * b1 = MgmtMsg::clone(event);
MgmtEvtDeviceUnpaired * b2 = MgmtMsg::clone(event);
.. do something ..
}
- Template Parameters
-
T | The derived definite class type, deducible by source argument |
- Parameters
-
source | the source to be copied |
- Returns
- a new instance.
Definition at line 399 of file MgmtTypes.hpp.
◆ getTimestamp()
uint64_t direct_bt::MgmtMsg::getTimestamp |
( |
| ) |
const |
|
inlinenoexcept |
◆ getTotalSize()
◆ getPDU()
Return the underlying octets read only.
Definition at line 406 of file MgmtTypes.hpp.
◆ getIntOpcode() [2/2]
uint16_t direct_bt::MgmtMsg::getIntOpcode |
( |
| ) |
const |
|
inlinenoexcept |
◆ getDevID() [2/2]
uint16_t direct_bt::MgmtMsg::getDevID |
( |
| ) |
const |
|
inlinenoexcept |
◆ getParamSize()
uint16_t direct_bt::MgmtMsg::getParamSize |
( |
| ) |
const |
|
inlinenoexcept |
◆ toString()
virtual std::string direct_bt::MgmtMsg::toString |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ pdu
◆ ts_creation
uint64_t direct_bt::MgmtMsg::ts_creation |
|
protected |
The documentation for this class was generated from the following file: