Cordio Stack and Cordio Profiles  r2p3-02rel0
svc_scpss.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file
4  *
5  * \brief Example Scan Parameter Service Server implementation.
6  *
7  * Copyright (c) 2016-2018 Arm Ltd. All Rights Reserved.
8  * Arm Ltd. confidential and proprietary.
9  *
10  * IMPORTANT. Your use of this file is governed by a Software License Agreement
11  * ("Agreement") that must be accepted in order to download or otherwise receive a
12  * copy of this file. You may not use or copy this file for any purpose other than
13  * as described in the Agreement. If you do not agree to all of the terms of the
14  * Agreement do not use this file and delete all copies in your possession or control;
15  * if you do not have a copy of the Agreement, you must contact Arm Ltd. prior
16  * to any use, copying or further distribution of this software.
17  */
18 /*************************************************************************************************/
19 
20 #ifndef SVC_SCPSS_H
21 #define SVC_SCPSS_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /*! \addtogroup SCAN_PARAMETER_SERVICE
28  * \{ */
29 
30 /**************************************************************************************************
31  Handle Ranges
32 **************************************************************************************************/
33 
34 /** \name Scan Parameter Service Handles
35  *
36  */
37 /**@{*/
38 #define SCPSS_START_HDL 0x0300 /*!< \brief Start handle. */
39 #define SCPSS_END_HDL (SCPSS_MAX_HDL - 1) /*!< \brief End handle. */
40 
41 /**************************************************************************************************
42  Handles
43 **************************************************************************************************/
44 
45 /*! \brief Scan Parameter Service Handles */
46 enum
47 {
48  SCPSS_SVC_HDL = SCPSS_START_HDL, /*!< \brief Scan Parameter Server Service declaration */
49  SCPSS_SIW_CH_HDL, /*!< \brief Scan Interval Window characteristic */
50  SCPSS_SIW_HDL, /*!< \brief Scan Interval Window */
51  SCPSS_MAX_HDL /*!< \brief Maximum handle. */
52 };
53 /**@}*/
54 
55 /**************************************************************************************************
56  Function Declarations
57 **************************************************************************************************/
58 
59 /*************************************************************************************************/
60 /*!
61  * \brief Add the services to the attribute server.
62  *
63  * \return None.
64  */
65 /*************************************************************************************************/
66 void SvcScpssAddGroup(void);
67 
68 /*************************************************************************************************/
69 /*!
70  * \brief Remove the services from the attribute server.
71  *
72  * \return None.
73  */
74 /*************************************************************************************************/
75 void SvcScpssRemoveGroup(void);
76 
77 /*************************************************************************************************/
78 /*!
79  * \brief Register callbacks for the service.
80  *
81  * \param writeCback Write callback function.
82  *
83  * \return None.
84  */
85 /*************************************************************************************************/
87 
88 /*! \} */ /* SCAN_PARAMETER_SERVICE */
89 
90 #ifdef __cplusplus
91 };
92 #endif
93 
94 #endif /* SVC_SCPSS_H */
void SvcScpssRemoveGroup(void)
Remove the services from the attribute server.
void SvcScpssAddGroup(void)
Add the services to the attribute server.
uint8_t(* attsWriteCback_t)(dmConnId_t connId, uint16_t handle, uint8_t operation, uint16_t offset, uint16_t len, uint8_t *pValue, attsAttr_t *pAttr)
Attribute group write callback.
Definition: att_api.h:237
#define SCPSS_START_HDL
Start handle.
Definition: svc_scpss.h:38
Scan Interval Window characteristic.
Definition: svc_scpss.h:49
Maximum handle.
Definition: svc_scpss.h:51
Scan Parameter Server Service declaration.
Definition: svc_scpss.h:48
void SvcScpssCbackRegister(attsWriteCback_t writeCback)
Register callbacks for the service.
Scan Interval Window.
Definition: svc_scpss.h:50