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 #ifndef __USER_APP_H__ 17 #define __USER_APP_H__ 18 19 #include "gr55xx_sys.h" 20 21 /* 22 * GLOBAL FUNCTION DECLARATION 23 ***************************************************************************************** 24 */ 25 /** 26 ***************************************************************************************** 27 * @brief This callback will be called when ble stack initialized completely 28 ***************************************************************************************** 29 */ 30 void ble_init_cmp_callback(void); 31 32 /** 33 ***************************************************************************************** 34 * @brief Function for deal device connect. 35 ***************************************************************************************** 36 */ 37 void app_connected_handler(uint8_t conn_idx, const gap_conn_cmp_t *p_param); 38 39 /** 40 ***************************************************************************************** 41 * @brief Function for deal disconnect. 42 ***************************************************************************************** 43 */ 44 void app_disconnected_handler(uint8_t conn_idx, uint8_t reason); 45 46 #endif 47 48