Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
swym
firmware
Commits
048196e6
Verified
Commit
048196e6
authored
5 years ago
by
schneider
Committed by
rahix
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(ble): Remove offending svc_core.h copy
parent
bebf7b0e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/sdk/Libraries/BTLE/stack/ble-host/include/svc_core.h
+0
-171
0 additions, 171 deletions
lib/sdk/Libraries/BTLE/stack/ble-host/include/svc_core.h
with
0 additions
and
171 deletions
lib/sdk/Libraries/BTLE/stack/ble-host/include/svc_core.h
deleted
100644 → 0
+
0
−
171
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 */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment