Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Public Attributes | Friends | List of all members
direct_bt::AdapterInfo Class Reference

#include <BTTypes1.hpp>

Collaboration diagram for direct_bt::AdapterInfo:

Public Member Functions

 AdapterInfo (const uint16_t dev_id_, const BDAddressAndType &addressAndType_, const uint8_t version_, const uint16_t manufacturer_, const AdapterSetting supported_setting_, const AdapterSetting current_setting_, const uint32_t dev_class_, const std::string &name_, const std::string &short_name_) noexcept
 
 AdapterInfo (const AdapterInfo &o) noexcept
 
AdapterInfooperator= (const AdapterInfo &o)
 
 AdapterInfo (AdapterInfo &&o) noexcept
 
AdapterInfooperator= (AdapterInfo &&o) noexcept=delete
 
constexpr const AdapterSettingget_supportedSetting () const noexcept
 
bool isSettingMaskSupported (const AdapterSetting setting) const noexcept
 
AdapterSetting getCurrentSettingMask () const noexcept
 
bool isCurrentSettingBitSet (const AdapterSetting bit) const noexcept
 
BTMode getCurrentBTMode () const noexcept
 Map getCurrentSettingMask() to BTMode. More...
 
uint32_t getDevClass () const noexcept
 
std::string getName () const noexcept
 
std::string getShortName () const noexcept
 
std::string toString () const noexcept
 

Public Attributes

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

Friends

class BTManager
 
class BTAdapter
 

Detailed Description

Definition at line 187 of file BTTypes1.hpp.

Constructor & Destructor Documentation

◆ AdapterInfo() [1/3]

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

Definition at line 227 of file BTTypes1.hpp.

◆ AdapterInfo() [2/3]

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

Definition at line 238 of file BTTypes1.hpp.

◆ AdapterInfo() [3/3]

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

Definition at line 258 of file BTTypes1.hpp.

Member Function Documentation

◆ get_supportedSetting()

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

Definition at line 267 of file BTTypes1.hpp.

◆ getCurrentBTMode()

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

Map getCurrentSettingMask() to BTMode.

Definition at line 276 of file BTTypes1.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCurrentSettingMask()

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

Definition at line 272 of file BTTypes1.hpp.

◆ getDevClass()

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

Definition at line 278 of file BTTypes1.hpp.

◆ getName()

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

Definition at line 279 of file BTTypes1.hpp.

Here is the caller graph for this function:

◆ getShortName()

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

Definition at line 280 of file BTTypes1.hpp.

Here is the caller graph for this function:

◆ isCurrentSettingBitSet()

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

Definition at line 273 of file BTTypes1.hpp.

Here is the caller graph for this function:

◆ isSettingMaskSupported()

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

Definition at line 269 of file BTTypes1.hpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Definition at line 245 of file BTTypes1.hpp.

Here is the call graph for this function:

◆ toString()

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

Definition at line 282 of file BTTypes1.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ BTAdapter

friend class BTAdapter
friend

Definition at line 190 of file BTTypes1.hpp.

◆ BTManager

friend class BTManager
friend

Definition at line 189 of file BTTypes1.hpp.

Member Data Documentation

◆ 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 201 of file BTTypes1.hpp.

◆ dev_id

const uint16_t direct_bt::AdapterInfo::dev_id

Definition at line 193 of file BTTypes1.hpp.

◆ manufacturer

const uint16_t direct_bt::AdapterInfo::manufacturer

Definition at line 203 of file BTTypes1.hpp.

◆ version

const uint8_t direct_bt::AdapterInfo::version

Definition at line 202 of file BTTypes1.hpp.


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