#include <MgmtTypes.hpp>
|
static uint16_t | getIntOpcode (const uint8_t *buffer) |
|
static uint16_t | getDevID (const uint8_t *data) |
|
template<class T > |
static T * | clone (const T &source) noexcept |
| Clone template for convenience, based on derived class's copy-constructor. More...
|
|
Definition at line 304 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 |
( |
| ) |
|
|
inlinevirtual |
◆ baseString()
virtual std::string direct_bt::MgmtMsg::baseString |
( |
| ) |
const |
|
inlineprotectedvirtualnoexcept |
Reimplemented in direct_bt::MgmtEvtHCILERemoteUserFeatures, direct_bt::MgmtEvtHCIEncryptionKeyRefreshComplete, direct_bt::MgmtEvtHCIEncryptionChanged, direct_bt::MgmtEvtPairDeviceComplete, direct_bt::MgmtEvtNewConnectionParam, direct_bt::MgmtEvtDeviceWhitelistAdded, direct_bt::MgmtEvtNewSignatureResolvingKey, direct_bt::MgmtEvtNewIdentityResolvingKey, direct_bt::MgmtEvtDiscovering, direct_bt::MgmtEvtDeviceFound, direct_bt::MgmtEvtAuthFailed, direct_bt::MgmtEvtUserConfirmRequest, direct_bt::MgmtEvtPinCodeRequest, direct_bt::MgmtEvtDeviceConnectFailed, direct_bt::MgmtEvtDeviceDisconnected, direct_bt::MgmtEvtDeviceConnected, direct_bt::MgmtEvtNewLongTermKey, direct_bt::MgmtEvtNewLinkKey, direct_bt::MgmtEvtNewSettings, direct_bt::MgmtEvtControllerError, direct_bt::MgmtEvtCmdStatus, direct_bt::MgmtEvtCmdComplete, direct_bt::MgmtEvtAdressInfoMeta, direct_bt::MgmtEvent, and direct_bt::MgmtCommand.
Definition at line 310 of file MgmtTypes.hpp.
◆ 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 354 of file MgmtTypes.hpp.
◆ getDevID() [1/2]
uint16_t direct_bt::MgmtMsg::getDevID |
( |
| ) |
const |
|
inlinenoexcept |
◆ getDevID() [2/2]
static uint16_t direct_bt::MgmtMsg::getDevID |
( |
const uint8_t * |
data | ) |
|
|
inlinestatic |
◆ getIntOpcode() [1/2]
uint16_t direct_bt::MgmtMsg::getIntOpcode |
( |
| ) |
const |
|
inlinenoexcept |
◆ getIntOpcode() [2/2]
static uint16_t direct_bt::MgmtMsg::getIntOpcode |
( |
const uint8_t * |
buffer | ) |
|
|
inlinestatic |
◆ getParamSize()
uint16_t direct_bt::MgmtMsg::getParamSize |
( |
| ) |
const |
|
inlinenoexcept |
◆ getPDU()
Return the underlying octets read only.
Definition at line 361 of file MgmtTypes.hpp.
◆ getTimestamp()
uint64_t direct_bt::MgmtMsg::getTimestamp |
( |
| ) |
const |
|
inlinenoexcept |
◆ getTotalSize()
◆ toString()
virtual std::string direct_bt::MgmtMsg::toString |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ valueString()
virtual std::string direct_bt::MgmtMsg::valueString |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
Implemented in direct_bt::MgmtEvtAdapterInfo, direct_bt::MgmtEvtLocalNameChanged, direct_bt::MgmtEvent, direct_bt::MgmtLoadConnParamCmd, direct_bt::MgmtAddDeviceToWhitelistCmd, direct_bt::MgmtUserPasskeyReplyCmd, direct_bt::MgmtUnpairDeviceCmd, direct_bt::MgmtPairDeviceCmd, direct_bt::MgmtPinCodeReplyCmd, direct_bt::MgmtLoadIdentityResolvingKeyCmd, direct_bt::MgmtCmdAdressInfoMeta, direct_bt::MgmtLoadLongTermKeyCmd, direct_bt::MgmtLoadLinkKeyCmd, direct_bt::MgmtSetLocalNameCmd, direct_bt::MgmtSetDiscoverableCmd, and direct_bt::MgmtCommand.
◆ pdu
◆ ts_creation
uint64_t direct_bt::MgmtMsg::ts_creation |
|
protected |
The documentation for this class was generated from the following file: