NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
ble_gatt_register_ctxt Struct Reference

#include <ble_gatt.h>

Public Attributes

uint8_t op
 
union { 
 
   struct { 
 
      uint16_t   handle 
 
      const struct ble_gatt_svc_def *   svc_def 
 
   }   svc 
 
   struct { 
 
      uint16_t   def_handle 
 
      uint16_t   val_handle 
 
      const struct ble_gatt_chr_def *   chr_def 
 
      const struct ble_gatt_svc_def *   svc_def 
 
   }   chr 
 
   struct { 
 
      uint16_t   handle 
 
      const struct ble_gatt_dsc_def *   dsc_def 
 
      const struct ble_gatt_chr_def *   chr_def 
 
      const struct ble_gatt_svc_def *   svc_def 
 
   }   dsc 
 
};  
 

Detailed Description

Context passed to the registration callback; represents the GATT service, characteristic, or descriptor being registered.

Member Data Documentation

◆ [union]

union { ... } ble_gatt_register_ctxt

The value of the op field determines which field in this union is valid.

◆ [struct]

struct { ... } ble_gatt_register_ctxt::chr

Characteristic; valid if op == BLE_GATT_REGISTER_OP_CHR.

◆ chr_def

const struct ble_gatt_chr_def* ble_gatt_register_ctxt::chr_def

The characteristic definition representing the characteristic being registered.

The characteristic definition corresponding to the descriptor's parent characteristic.

◆ def_handle

uint16_t ble_gatt_register_ctxt::def_handle

The ATT handle of the characteristic definition attribute.

◆ [struct]

struct { ... } ble_gatt_register_ctxt::dsc

Descriptor; valid if op == BLE_GATT_REGISTER_OP_DSC.

◆ dsc_def

const struct ble_gatt_dsc_def* ble_gatt_register_ctxt::dsc_def

The descriptor definition corresponding to the descriptor being registered.

◆ handle

uint16_t ble_gatt_register_ctxt::handle

The ATT handle of the service definition attribute.

The ATT handle of the descriptor definition attribute.

◆ op

uint8_t ble_gatt_register_ctxt::op

Indicates the gatt registration operation just performed. This is equal to one of the following values: o BLE_GATT_REGISTER_OP_SVC o BLE_GATT_REGISTER_OP_CHR o BLE_GATT_REGISTER_OP_DSC

◆ [struct]

struct { ... } ble_gatt_register_ctxt::svc

Service; valid if op == BLE_GATT_REGISTER_OP_SVC.

◆ svc_def

const struct ble_gatt_svc_def* ble_gatt_register_ctxt::svc_def

The service definition representing the service being registered.

The service definition corresponding to the characteristic's parent service.

The service definition corresponding to the descriptor's grandparent service

◆ val_handle

uint16_t ble_gatt_register_ctxt::val_handle

The ATT handle of the characteristic value attribute.