1 /*
2 * Copyright (c) 2021 GOODIX.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 /*
17 * INCLUDE FILES
18 *****************************************************************************************
19 */
20 #include "gr55xx_sys.h"
21
22 /*
23 * LOCAL FUNCTION DECLARATION
24 *****************************************************************************************
25 */
26 static void app_gatt_mtu_exchange_cb(uint8_t conn_idx, uint8_t status, uint16_t mtu);
27
28 /*
29 * GLOBAL VARIABLE DEFINITIONS
30 *****************************************************************************************
31 */
32 const gatt_common_cb_fun_t app_gatt_common_callback = {
33 .app_gatt_mtu_exchange_cb = app_gatt_mtu_exchange_cb,
34 };
35
36 /*
37 * LOCAL FUNCTION DEFINITIONS
38 *****************************************************************************************
39 */
40 /**
41 *****************************************************************************************
42 * @brief This callback function will be called when the mtu has been exchanged.
43 *
44 * @param[in] conn_idx: The connection index.
45 * @param[in] status: The status of GATT operation.
46 * @param[in] mtu: The value of exchanged mtu.
47 *****************************************************************************************
48 */
app_gatt_mtu_exchange_cb(uint8_t conn_idx,uint8_t status,uint16_t mtu)49 static void app_gatt_mtu_exchange_cb(uint8_t conn_idx, uint8_t status, uint16_t mtu)
50 {
51 }
52