Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
048196e6
Verified
Commit
048196e6
authored
Jul 30, 2019
by
schneider
Committed by
Rahix
Aug 06, 2019
Browse files
fix(ble): Remove offending svc_core.h copy
parent
bebf7b0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/sdk/Libraries/BTLE/stack/ble-host/include/svc_core.h
deleted
100644 → 0
View file @
bebf7b0e
/* Copyright (c) 2009-2019 Arm Limited
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*************************************************************************************************/
/*!
* \brief Example GATT and GAP service implementations.
*/
/*************************************************************************************************/
#ifndef SVC_CORE_H
#define SVC_CORE_H
#ifdef __cplusplus
extern
"C"
{
#endif
/*! \addtogroup GATT_AND_GAP_SERVICE
* \{ */
/**************************************************************************************************
Handle Ranges
**************************************************************************************************/
/** \name GAP Service Handles
* \note GAP -- RPAO characterstic added only when DM Privacy enabled
*/
/**@{*/
#define GAP_START_HDL 0x01
/*!< \brief GAP start handle */
#define GAP_END_HDL (GAP_MAX_HDL - 3)
/*!< \brief GAP end handle */
/**@}*/
/** \name GATT Service Handles
*
*/
/**@{*/
#define GATT_START_HDL 0x10
/*!< \brief GATT start handle */
#define GATT_END_HDL (GATT_MAX_HDL - 1)
/*!< \brief GATT end handle */
/**@}*/
/**************************************************************************************************
Handles
**************************************************************************************************/
/** \name GAP Service Handles
*
*/
/**@{*/
/*! \brief GAP service handle */
enum
{
GAP_SVC_HDL
=
GAP_START_HDL
,
/*!< \brief GAP service declaration */
GAP_DN_CH_HDL
,
/*!< \brief Device name characteristic */
GAP_DN_HDL
,
/*!< \brief Device name */
GAP_AP_CH_HDL
,
/*!< \brief Appearance characteristic */
GAP_AP_HDL
,
/*!< \brief Appearance */
GAP_CAR_CH_HDL
,
/*!< \brief Central address resolution characteristic */
GAP_CAR_HDL
,
/*!< \brief Central address resolution */
GAP_RPAO_CH_HDL
,
/*!< \brief Resolvable private address only characteristic */
GAP_RPAO_HDL
,
/*!< \brief Resolvable private address only */
GAP_MAX_HDL
/*!< \brief GAP maximum handle */
};
/**@}*/
/** \name GATT Service Handles
*
*/
/**@{*/
/*! \brief GATT service handles */
enum
{
GATT_SVC_HDL
=
GATT_START_HDL
,
/*!< \brief GATT service declaration */
GATT_SC_CH_HDL
,
/*!< \brief Service changed characteristic */
GATT_SC_HDL
,
/*!< \brief Service changed */
GATT_SC_CH_CCC_HDL
,
/*!< \brief Service changed client characteristic configuration descriptor */
GATT_CSF_CH_HDL
,
/*!< \brief Client supported features characteristic */
GATT_CSF_HDL
,
/*!< \brief Client supported features */
GATT_DBH_CH_HDL
,
/*!< \brief Database hash characteristic */
GATT_DBH_HDL
,
/*!< \brief Database hash */
GATT_MAX_HDL
/*!< \brief GATT maximum handle */
};
/**@}*/
/**************************************************************************************************
Function Declarations
**************************************************************************************************/
/*************************************************************************************************/
/*!
* \brief Add the services to the attribute server.
*
* \return None.
*/
/*************************************************************************************************/
void
SvcCoreAddGroup
(
void
);
/*************************************************************************************************/
/*!
* \brief Remove the services from the attribute server.
*
* \return None.
*/
/*************************************************************************************************/
void
SvcCoreRemoveGroup
(
void
);
/*************************************************************************************************/
/*!
* \brief Register callbacks for the service.
*
* \param readCback Read callback function.
* \param writeCback Write callback function.
*
* \return None.
*/
/*************************************************************************************************/
void
SvcCoreGattCbackRegister
(
attsReadCback_t
readCback
,
attsWriteCback_t
writeCback
);
/*************************************************************************************************/
/*!
* \brief Register callbacks for the service.
*
* \param readCback Read callback function.
* \param writeCback Write callback function.
*
* \return None.
*/
/*************************************************************************************************/
void
SvcCoreGapCbackRegister
(
attsReadCback_t
readCback
,
attsWriteCback_t
writeCback
);
/*************************************************************************************************/
/*!
* \brief Update the central address resolution attribute value.
*
* \param value New value.
*
* \return None.
*/
/*************************************************************************************************/
void
SvcCoreGapCentAddrResUpdate
(
bool_t
value
);
/*************************************************************************************************/
/*!
* \brief Add the Resolvable Private Address Only (RPAO) characteristic to the GAP service.
* The RPAO characteristic should be added only when DM Privacy is enabled.
*
* \return None.
*/
/*************************************************************************************************/
void
SvcCoreGapAddRpaoCh
(
void
);
/*! \} */
/* GATT_AND_GAP_SERVICE */
#ifdef __cplusplus
};
#endif
#endif
/* SVC_CORE_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment