Direct-BT
2.3.1
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 uint8_t *buffer, const jau::nsize_t buffer_len, const jau::nsize_t exp_param_size) | |
Persistent memory, w/ ownership . More... | |
MgmtEvent (const Opcode opc, const uint16_t dev_id, const uint16_t param_size=0) | |
MgmtEvent (const Opcode opc, const uint16_t dev_id, const uint16_t param_size, const uint8_t *param) | |
virtual | ~MgmtEvent () noexcept override |
jau::nsize_t | getTotalSize () const noexcept |
Opcode | getOpcode () const noexcept |
virtual jau::nsize_t | getDataOffset () const noexcept |
virtual jau::nsize_t | getDataSize () const noexcept |
virtual const uint8_t * | getData () const noexcept |
virtual bool | validate (const MgmtCommand &req) const noexcept |
std::string | toString () const noexcept override |
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 () |
uint64_t | getTimestamp () const noexcept |
jau::nsize_t | getTotalSize () const noexcept |
TROOctets & | getPDU () noexcept |
Return the underlying octets read only. More... | |
uint16_t | getIntOpcode () const noexcept |
uint16_t | getDevID () const noexcept |
uint16_t | getParamSize () const noexcept |
Static Public Member Functions | |
static constexpr uint16_t | number (const Opcode rhs) noexcept |
static std::string | getOpcodeString (const Opcode opc) noexcept |
static MgmtEvent::Opcode | getOpcode (const uint8_t *buffer) |
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 Public Member Functions inherited from direct_bt::MgmtMsg | |
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... | |
Protected Member Functions | |
virtual std::string | baseString () const noexcept override |
virtual std::string | valueString () const noexcept override |
Static Protected Member Functions | |
static void | checkOpcode (const Opcode has, const Opcode min, const Opcode max) |
static void | checkOpcode (const Opcode has, const Opcode exp) |
Additional Inherited Members | |
Protected Attributes inherited from direct_bt::MgmtMsg | |
POctets | pdu |
uint64_t | ts_creation |
uint16_t opcode, uint16_t dev-id, uint16_t param_size
Definition at line 1082 of file MgmtTypes.hpp.
|
strong |
Definition at line 1085 of file MgmtTypes.hpp.
|
inline |
Persistent memory, w/ ownership .
Definition at line 1180 of file MgmtTypes.hpp.
|
inline |
|
inline |
|
inlineoverridevirtualnoexcept |
Definition at line 1208 of file MgmtTypes.hpp.
|
inlineoverrideprotectedvirtualnoexcept |
Reimplemented from direct_bt::MgmtMsg.
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, and direct_bt::MgmtEvtAdressInfoMeta.
Definition at line 1157 of file MgmtTypes.hpp.
|
inlinevirtualnoexcept |
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, and direct_bt::MgmtEvtAdressInfoMeta.
Definition at line 1216 of file MgmtTypes.hpp.
|
inlinevirtualnoexcept |
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, and direct_bt::MgmtEvtAdressInfoMeta.
Definition at line 1214 of file MgmtTypes.hpp.
|
inlinevirtualnoexcept |
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, and direct_bt::MgmtEvtAdressInfoMeta.
Definition at line 1215 of file MgmtTypes.hpp.
|
inlinenoexcept |
Definition at line 1212 of file MgmtTypes.hpp.
|
inlinestatic |
Definition at line 1167 of file MgmtTypes.hpp.
|
staticnoexcept |
|
staticnoexcept |
Return a newly created specialized instance pointer to base class.
Returned memory reference is managed by caller (delete etc)
Definition at line 322 of file MgmtTypes.cpp.
|
inlinenoexcept |
|
inlinestaticconstexprnoexcept |
Definition at line 1135 of file MgmtTypes.hpp.
|
inlineoverridevirtualnoexcept |
Implements direct_bt::MgmtMsg.
Definition at line 1222 of file MgmtTypes.hpp.
|
inlinevirtualnoexcept |
Reimplemented in direct_bt::MgmtEvtCmdStatus, and direct_bt::MgmtEvtCmdComplete.
Definition at line 1218 of file MgmtTypes.hpp.
|
inlineoverrideprotectedvirtualnoexcept |
Implements direct_bt::MgmtMsg.
Reimplemented in direct_bt::MgmtEvtAdapterInfo, and direct_bt::MgmtEvtLocalNameChanged.
Definition at line 1160 of file MgmtTypes.hpp.