Read/Write HCI communication channel.  
 More...
#include <HCIComm.hpp>
Read/Write HCI communication channel. 
Definition at line 61 of file HCIComm.hpp.
◆ get_boolean_callback_t
Utilized to query for external interruption, whether device is still connected etc. 
Definition at line 64 of file HCIComm.hpp.
 
 
◆ HCIComm() [1/2]
  
  | 
        
          | direct_bt::HCIComm::HCIComm | ( | const uint16_t | dev_id, |  
          |  |  | const uint16_t | channel |  
          |  | ) |  |  |  | noexcept | 
 
Constructing a newly opened HCI communication channel instance. 
Definition at line 111 of file HCIComm.cpp.
 
 
◆ HCIComm() [2/2]
  
  | 
        
          | direct_bt::HCIComm::HCIComm | ( | const HCIComm & |  | ) |  |  | delete | 
 
 
◆ ~HCIComm()
  
  | 
        
          | direct_bt::HCIComm::~HCIComm | ( |  | ) |  |  | inlinenoexcept | 
 
 
◆ operator=()
  
  | 
        
          | void direct_bt::HCIComm::operator= | ( | const HCIComm & |  | ) |  |  | delete | 
 
 
◆ is_open()
  
  | 
        
          | bool direct_bt::HCIComm::is_open | ( |  | ) | const |  | inlinenoexcept | 
 
 
◆ set_interrupted_query()
The external is interrupted callback is used until close(), thereafter it is removed. 
Definition at line 94 of file HCIComm.hpp.
 
 
◆ interrupted()
  
  | 
        
          | bool direct_bt::HCIComm::interrupted | ( |  | ) | const |  | inlinenoexcept | 
 
Returns true if interrupted by internal or external cause, hence shall stop connecting and reading. 
Definition at line 97 of file HCIComm.hpp.
 
 
◆ close()
  
  | 
        
          | void direct_bt::HCIComm::close | ( |  | ) |  |  | noexcept | 
 
 
◆ socket()
  
  | 
        
          | int direct_bt::HCIComm::socket | ( |  | ) | const |  | inlinenoexcept | 
 
Return this HCI socket descriptor. 
Definition at line 103 of file HCIComm.hpp.
 
 
◆ mutex_write()
  
  | 
        
          | std::recursive_mutex & direct_bt::HCIComm::mutex_write | ( |  | ) |  |  | inlinenoexcept | 
 
Return the recursive write mutex for multithreading access. 
Definition at line 106 of file HCIComm.hpp.
 
 
◆ read()
Generic read w/ own timeout, w/o locking suitable for a unique ringbuffer sink. 
Definition at line 148 of file HCIComm.cpp.
 
 
◆ write()
◆ filter_clear()
  
  | 
        
          | static void direct_bt::HCIComm::filter_clear | ( | hci_ufilter * | f | ) |  |  | inlinestaticnoexcept | 
 
 
◆ filter_set_ptype()
  
  | 
        
          | static void direct_bt::HCIComm::filter_set_ptype | ( | int | t, |  
          |  |  | hci_ufilter * | f |  
          |  | ) |  |  |  | inlinestaticnoexcept | 
 
 
◆ filter_clear_ptype()
  
  | 
        
          | static void direct_bt::HCIComm::filter_clear_ptype | ( | int | t, |  
          |  |  | hci_ufilter * | f |  
          |  | ) |  |  |  | inlinestaticnoexcept | 
 
 
◆ filter_test_ptype()
  
  | 
        
          | static uint32_t direct_bt::HCIComm::filter_test_ptype | ( | int | t, |  
          |  |  | hci_ufilter * | f |  
          |  | ) |  |  |  | inlinestaticnoexcept | 
 
 
◆ filter_all_ptypes()
  
  | 
        
          | static void direct_bt::HCIComm::filter_all_ptypes | ( | hci_ufilter * | f | ) |  |  | inlinestaticnoexcept | 
 
 
◆ filter_set_event()
  
  | 
        
          | static void direct_bt::HCIComm::filter_set_event | ( | int | e, |  
          |  |  | hci_ufilter * | f |  
          |  | ) |  |  |  | inlinestaticnoexcept | 
 
 
◆ filter_clear_event()
  
  | 
        
          | static void direct_bt::HCIComm::filter_clear_event | ( | int | e, |  
          |  |  | hci_ufilter * | f |  
          |  | ) |  |  |  | inlinestaticnoexcept | 
 
 
◆ filter_test_event()
  
  | 
        
          | static uint32_t direct_bt::HCIComm::filter_test_event | ( | int | e, |  
          |  |  | hci_ufilter * | f |  
          |  | ) |  |  |  | inlinestaticnoexcept | 
 
 
◆ filter_all_events()
  
  | 
        
          | static void direct_bt::HCIComm::filter_all_events | ( | hci_ufilter * | f | ) |  |  | inlinestaticnoexcept | 
 
 
◆ filter_set_opcode()
  
  | 
        
          | static void direct_bt::HCIComm::filter_set_opcode | ( | uint16_t | opcode, |  
          |  |  | hci_ufilter * | f |  
          |  | ) |  |  |  | inlinestaticnoexcept | 
 
 
◆ filter_clear_opcode()
  
  | 
        
          | static void direct_bt::HCIComm::filter_clear_opcode | ( | hci_ufilter * | f | ) |  |  | inlinestaticnoexcept | 
 
 
◆ filter_test_opcode()
  
  | 
        
          | static int direct_bt::HCIComm::filter_test_opcode | ( | uint16_t | opcode, |  
          |  |  | hci_ufilter * | f |  
          |  | ) |  |  |  | inlinestaticnoexcept | 
 
 
◆ dev_id
      
        
          | const uint16_t direct_bt::HCIComm::dev_id | 
      
 
 
◆ channel
      
        
          | const uint16_t direct_bt::HCIComm::channel | 
      
 
 
The documentation for this class was generated from the following files: