BLE_API v2.1.3

Modules | Data Structures | Macros | Variables
BLE GAP Service and Characteristic Definitions
BLE Services » BLE Defined-Services » BLE GAP Service Definitions » BLE GAP Application Definitions

## Modules
| BLE GAP Structure Definitions
| BLE GAP Definitions for Application

## Data Structures
struct | BLEATT_GAP_Handles
struct | BLEATT_GAP_Data
struct | BLEATT_GAP_Info

## Macros
#define | BLESERVICE_GAP_DEVICE_NAME_READ_EVENT 0x01
#define | BLESERVICE_GAP_APPEARANCE_READ_EVENT 0x02
#define | BLESERVICE_GAP_PERIPHERAL_CONN_PARAM_READ_EVENT 0x03

## Variables
uint16_t | BLEATT_GAP_Handles::hdl_device_name
uint16_t | BLEATT_GAP_Handles::hdl_appearance
uint16_t | BLEATT_GAP_Handles::hdl_peripheral_preferred_connParam
uint8_t | BLEATT_GAP_Data::device_name [GAP_DEVICE_NAME_LENGH]
uint8_t | BLEATT_GAP_Data::device_name_len
uint16_t | BLEATT_GAP_Data::appearance
BLE_Conn_Param | BLEATT_GAP_Data::peripheral_conn_param
BleGattRole | BLEATT_GAP_Info::role
BLEATT_GAP_Handles | BLEATT_GAP_Info::handles

## Detailed Description

Here shows the event definitions of the GAP service.

## Macro Definition Documentation

## ◆ BLESERVICE_GAP_APPEARANCE_READ_EVENT

#define BLESERVICE_GAP_APPEARANCE_READ_EVENT 0x02

GAP characteristic GAP appearance read event.

## ◆ BLESERVICE_GAP_DEVICE_NAME_READ_EVENT

#define BLESERVICE_GAP_DEVICE_NAME_READ_EVENT 0x01

GAP characteristic GAP device name read event.

## ◆ BLESERVICE_GAP_PERIPHERAL_CONN_PARAM_READ_EVENT

#define BLESERVICE_GAP_PERIPHERAL_CONN_PARAM_READ_EVENT 0x03

GAP characteristic GAP peripheral preferred connection parameters read event.

## Variable Documentation

## ◆ appearance

uint16_t BLEATT_GAP_Data::appearance

GAP appearance.

## ◆ device_name

uint8_t BLEATT_GAP_Data::device_name[GAP_DEVICE_NAME_LENGH]

GAP device name.

## ◆ device_name_len

uint8_t BLEATT_GAP_Data::device_name_len

GAP the length of device name.

## ◆ handles

BLEATT_GAP_Handles BLEATT_GAP_Info::handles

GAP attribute handles.

## ◆ hdl_appearance

uint16_t BLEATT_GAP_Handles::hdl_appearance

Handle of GAP appearance.

## ◆ hdl_device_name

uint16_t BLEATT_GAP_Handles::hdl_device_name

Handle of GAP device name.

## ◆ hdl_peripheral_preferred_connParam

uint16_t BLEATT_GAP_Handles::hdl_peripheral_preferred_connParam

Handle of GAP peripheral preferred connection parameters.

## ◆ peripheral_conn_param

BLE_Conn_Param BLEATT_GAP_Data::peripheral_conn_param

GAP peripheral preferred connection parameter.

## ◆ role

BleGattRole BLEATT_GAP_Info::role

BLE GAP role.