sdk/modules/bluetooth/bluetooth_le_gatt.c
/****************************************************************************
 * Name: ble_gatt_register_hal
 *
 * Description:
 *   Bluetooth LE GATT function HAL register
 *
 ****************************************************************************/
ble_gatt_register_hal
Description:
Bluetooth LE GATT function HAL register
ble_gatt_register_hal Description : Bluetooth LE GATT function HAL register
int ble_gatt_register_hal(struct ble_hal_gatt_ops_s *ble_hal_gatt_ops)
{
  if (!ble_hal_gatt_ops)
    {
      _err("%s [BLE][GATT] Set HAL callback failed.\n", __func__);
      return BT_FAIL;
    }
  g_ble_gatt_state.ble_hal_gatt_ops = ble_hal_gatt_ops;
  return BT_SUCCESS;
}
int ble_gatt_register_hal ( struct ble_hal_gatt_ops_s * ble_hal_gatt_ops ) { if ( ! ble_hal_gatt_ops ) { _err ( " \n " , __func__ ) ; return BT_FAIL ; } g_ble_gatt_state . ble_hal_gatt_ops = ble_hal_gatt_ops ; return BT_SUCCESS ; }
Name: ble_gatt_register_hal
 Description:
   Bluetooth LE GATT function HAL register
Name : ble_gatt_register_hal Description : Bluetooth LE GATT function HAL register