Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Public Attributes | List of all members
direct_bt::AdapterInfo Class Reference

#include <BTTypes1.hpp>

Collaboration diagram for direct_bt::AdapterInfo:

Public Member Functions

 AdapterInfo (AdapterInfo &&o) noexcept
 
 AdapterInfo (const AdapterInfo &o) noexcept
 
 AdapterInfo (const uint16_t dev_id_, BDAddressAndType addressAndType_, const uint8_t version_, const uint16_t manufacturer_, const AdapterSetting supported_setting_, const AdapterSetting current_setting_, const uint32_t dev_class_, std::string name_, std::string short_name_) noexcept
 
constexpr const AdapterSettingget_supportedSetting () const noexcept
 
BTMode getCurrentBTMode () const noexcept
 Map getCurrentSettingMask() to BTMode. More...
 
AdapterSetting getCurrentSettingMask () const noexcept
 
uint32_t getDevClass () const noexcept
 
std::string getName () const noexcept
 
std::string getShortName () const noexcept
 
bool isCurrentSettingBitSet (const AdapterSetting bit) const noexcept
 
bool isSettingMaskSupported (const AdapterSetting setting) const noexcept
 
AdapterInfooperator= (AdapterInfo &&o) noexcept=delete
 
AdapterInfooperator= (const AdapterInfo &o)
 
AdapterSetting setCurrentSettingMask (const AdapterSetting new_setting) noexcept
 Assigns the given 'new_setting & supported_setting' to the current_setting. More...
 
void setDevClass (const uint32_t v) noexcept
 
void setName (std::string v) noexcept
 
void setSettingMasks (const AdapterSetting supported_setting_, const AdapterSetting current_setting_) noexcept
 
void setShortName (std::string v) noexcept
 
std::string toString () const noexcept
 

Public Attributes

const BDAddressAndType addressAndType
 The adapter's address initially reported by the system is always its public address, i.e. More...
 
const uint16_t dev_id
 
const uint16_t manufacturer
 
const uint8_t version
 

Detailed Description

Definition at line 195 of file BTTypes1.hpp.

Constructor & Destructor Documentation

◆ AdapterInfo() [1/3]

direct_bt::AdapterInfo::AdapterInfo ( const uint16_t  dev_id_,
BDAddressAndType  addressAndType_,
const uint8_t  version_,
const uint16_t  manufacturer_,
const AdapterSetting  supported_setting_,
const AdapterSetting  current_setting_,
const uint32_t  dev_class_,
std::string  name_,
std::string  short_name_ 
)
inlinenoexcept

Definition at line 218 of file BTTypes1.hpp.

◆ AdapterInfo() [2/3]

direct_bt::AdapterInfo::AdapterInfo ( const AdapterInfo o)
inlinenoexcept

Definition at line 229 of file BTTypes1.hpp.

◆ AdapterInfo() [3/3]

direct_bt::AdapterInfo::AdapterInfo ( AdapterInfo &&  o)
inlinenoexcept

Definition at line 249 of file BTTypes1.hpp.

Member Function Documentation

◆ operator=() [1/2]

AdapterInfo & direct_bt::AdapterInfo::operator= ( const AdapterInfo o)
inline

Definition at line 236 of file BTTypes1.hpp.

◆ operator=() [2/2]

AdapterInfo & direct_bt::AdapterInfo::operator= ( AdapterInfo &&  o)
deletenoexcept

◆ setCurrentSettingMask()

AdapterSetting direct_bt::AdapterInfo::setCurrentSettingMask ( const AdapterSetting  new_setting)
inlinenoexcept

Assigns the given 'new_setting & supported_setting' to the current_setting.

Parameters
new_settingassigned to current_setting after masking with supported_setting.
Returns
'new_setting & supported_setting', i.e. the new current_setting.

Definition at line 263 of file BTTypes1.hpp.

◆ setSettingMasks()

void direct_bt::AdapterInfo::setSettingMasks ( const AdapterSetting  supported_setting_,
const AdapterSetting  current_setting_ 
)
inlinenoexcept

Definition at line 268 of file BTTypes1.hpp.

◆ setDevClass()

void direct_bt::AdapterInfo::setDevClass ( const uint32_t  v)
inlinenoexcept

Definition at line 272 of file BTTypes1.hpp.

◆ setName()

void direct_bt::AdapterInfo::setName ( std::string  v)
inlinenoexcept

Definition at line 273 of file BTTypes1.hpp.

◆ setShortName()

void direct_bt::AdapterInfo::setShortName ( std::string  v)
inlinenoexcept

Definition at line 274 of file BTTypes1.hpp.

◆ get_supportedSetting()

constexpr const AdapterSetting & direct_bt::AdapterInfo::get_supportedSetting ( ) const
inlineconstexprnoexcept

Definition at line 276 of file BTTypes1.hpp.

◆ isSettingMaskSupported()

bool direct_bt::AdapterInfo::isSettingMaskSupported ( const AdapterSetting  setting) const
inlinenoexcept

Definition at line 278 of file BTTypes1.hpp.

◆ getCurrentSettingMask()

AdapterSetting direct_bt::AdapterInfo::getCurrentSettingMask ( ) const
inlinenoexcept

Definition at line 281 of file BTTypes1.hpp.

◆ isCurrentSettingBitSet()

bool direct_bt::AdapterInfo::isCurrentSettingBitSet ( const AdapterSetting  bit) const
inlinenoexcept

Definition at line 282 of file BTTypes1.hpp.

Here is the caller graph for this function:

◆ getCurrentBTMode()

BTMode direct_bt::AdapterInfo::getCurrentBTMode ( ) const
inlinenoexcept

Map getCurrentSettingMask() to BTMode.

Definition at line 285 of file BTTypes1.hpp.

Here is the caller graph for this function:

◆ getDevClass()

uint32_t direct_bt::AdapterInfo::getDevClass ( ) const
inlinenoexcept

Definition at line 287 of file BTTypes1.hpp.

◆ getName()

std::string direct_bt::AdapterInfo::getName ( ) const
inlinenoexcept

Definition at line 288 of file BTTypes1.hpp.

Here is the caller graph for this function:

◆ getShortName()

std::string direct_bt::AdapterInfo::getShortName ( ) const
inlinenoexcept

Definition at line 289 of file BTTypes1.hpp.

Here is the caller graph for this function:

◆ toString()

std::string direct_bt::AdapterInfo::toString ( ) const
inlinenoexcept

Definition at line 291 of file BTTypes1.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ dev_id

const uint16_t direct_bt::AdapterInfo::dev_id

Definition at line 198 of file BTTypes1.hpp.

◆ addressAndType

const BDAddressAndType direct_bt::AdapterInfo::addressAndType

The adapter's address initially reported by the system is always its public address, i.e.

BDAddressType::BDADDR_LE_PUBLIC.

Subsequent adapter setup using BDAddressType::BDADDR_LE_RANDOM must be handled within BTAdapter and is not reflected in AdapterInfo.

Definition at line 206 of file BTTypes1.hpp.

◆ version

const uint8_t direct_bt::AdapterInfo::version

Definition at line 207 of file BTTypes1.hpp.

◆ manufacturer

const uint16_t direct_bt::AdapterInfo::manufacturer

Definition at line 208 of file BTTypes1.hpp.


The documentation for this class was generated from the following file: