ESPHome  2022.9.1
Public Types | Public Member Functions | Data Fields
esphome::esp32_ble::BLEEvent Class Reference

#include <queue.h>

Public Types

enum  ble_event_t : uint8_t { GAP, GATTC, GATTS }
 

Public Member Functions

 BLEEvent (esp_gap_ble_cb_event_t e, esp_ble_gap_cb_param_t *p)
 
 BLEEvent (esp_gattc_cb_event_t e, esp_gatt_if_t i, esp_ble_gattc_cb_param_t *p)
 
 BLEEvent (esp_gatts_cb_event_t e, esp_gatt_if_t i, esp_ble_gatts_cb_param_t *p)
 

Data Fields

union {
   struct gap_event {
      esp_gap_ble_cb_event_t   gap_event
 
      esp_ble_gap_cb_param_t   gap_param
 
   }   gap
 
   struct gattc_event {
      esp_gattc_cb_event_t   gattc_event
 
      esp_gatt_if_t   gattc_if
 
      esp_ble_gattc_cb_param_t   gattc_param
 
      uint8_t   data [64]
 
   }   gattc
 
   struct gatts_event {
      esp_gatts_cb_event_t   gatts_event
 
      esp_gatt_if_t   gatts_if
 
      esp_ble_gatts_cb_param_t   gatts_param
 
      uint8_t   data [64]
 
   }   gatts
 
event_
 
enum esphome::esp32_ble::BLEEvent::ble_event_t type_
 

Detailed Description

Definition at line 62 of file queue.h.

Member Enumeration Documentation

◆ ble_event_t

Enumerator
GAP 
GATTC 
GATTS 

Definition at line 131 of file queue.h.

Constructor & Destructor Documentation

◆ BLEEvent() [1/3]

esphome::esp32_ble::BLEEvent::BLEEvent ( esp_gap_ble_cb_event_t  e,
esp_ble_gap_cb_param_t *  p 
)
inline

Definition at line 64 of file queue.h.

◆ BLEEvent() [2/3]

esphome::esp32_ble::BLEEvent::BLEEvent ( esp_gattc_cb_event_t  e,
esp_gatt_if_t  i,
esp_ble_gattc_cb_param_t *  p 
)
inline

Definition at line 70 of file queue.h.

◆ BLEEvent() [3/3]

esphome::esp32_ble::BLEEvent::BLEEvent ( esp_gatts_cb_event_t  e,
esp_gatt_if_t  i,
esp_ble_gatts_cb_param_t *  p 
)
inline

Definition at line 91 of file queue.h.

Field Documentation

◆ data

uint8_t esphome::esp32_ble::BLEEvent::data[64]

Definition at line 119 of file queue.h.

◆ event_

union { ... } esphome::esp32_ble::BLEEvent::event_

◆ gap

struct { ... } ::gap_event esphome::esp32_ble::BLEEvent::gap

◆ gap_event

esp_gap_ble_cb_event_t esphome::esp32_ble::BLEEvent::gap_event

Definition at line 110 of file queue.h.

◆ gap_param

esp_ble_gap_cb_param_t esphome::esp32_ble::BLEEvent::gap_param

Definition at line 111 of file queue.h.

◆ gattc

struct { ... } ::gattc_event esphome::esp32_ble::BLEEvent::gattc

◆ gattc_event

esp_gattc_cb_event_t esphome::esp32_ble::BLEEvent::gattc_event

Definition at line 116 of file queue.h.

◆ gattc_if

esp_gatt_if_t esphome::esp32_ble::BLEEvent::gattc_if

Definition at line 117 of file queue.h.

◆ gattc_param

esp_ble_gattc_cb_param_t esphome::esp32_ble::BLEEvent::gattc_param

Definition at line 118 of file queue.h.

◆ gatts

struct { ... } ::gatts_event esphome::esp32_ble::BLEEvent::gatts

◆ gatts_event

esp_gatts_cb_event_t esphome::esp32_ble::BLEEvent::gatts_event

Definition at line 124 of file queue.h.

◆ gatts_if

esp_gatt_if_t esphome::esp32_ble::BLEEvent::gatts_if

Definition at line 125 of file queue.h.

◆ gatts_param

esp_ble_gatts_cb_param_t esphome::esp32_ble::BLEEvent::gatts_param

Definition at line 126 of file queue.h.

◆ type_

enum esphome::esp32_ble::BLEEvent::ble_event_t esphome::esp32_ble::BLEEvent::type_

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