ble_gatt.h
Go to the documentation of this file.
1 
54 #ifndef __BLE_GATT_H__
55 #define __BLE_GATT_H__
56 
57 #include "ble_error.h"
58 #include <stdint.h>
59 
66 typedef enum
67 {
79 typedef struct
80 {
81  uint8_t uuid_len;
82  uint8_t *uuid;
83 } ble_uuid_t;
84 
88 typedef struct
89 {
90  void (*app_gatt_mtu_exchange_cb)(uint8_t conn_idx, uint8_t status, uint16_t mtu);
91  void (*app_gatt_prf_register_cb)(uint8_t status, uint8_t prf_index);
94 
113 uint16_t ble_gatt_mtu_set(uint16_t mtu);
114 
126 uint16_t ble_gatt_mtu_get(uint8_t conn_idx, uint16_t *p_mtu);
127 
130 #endif
131 
BLE_GATT_NOTIFICATION
@ BLE_GATT_NOTIFICATION
Definition: ble_gatt.h:68
ble_uuid_t::uuid
uint8_t * uuid
Definition: ble_gatt.h:82
ble_gatt_mtu_get
uint16_t ble_gatt_mtu_get(uint8_t conn_idx, uint16_t *p_mtu)
Get the current ATT_MTU size for a given connection.
gatt_evt_type_t
gatt_evt_type_t
GATT common events.
Definition: ble_gatt.h:67
ble_uuid_t::uuid_len
uint8_t uuid_len
Definition: ble_gatt.h:81
ble_error.h
File that contains error codes.
gatt_common_cb_fun_t
GATT common callback function description.
Definition: ble_gatt.h:89
ble_uuid_t
GATT UUID structure.
Definition: ble_gatt.h:80
BLE_GATT_INDICATION
@ BLE_GATT_INDICATION
Definition: ble_gatt.h:69
ble_gatt_mtu_set
uint16_t ble_gatt_mtu_set(uint16_t mtu)
Set ATT_MTU size.