Cordio Stack and Cordio Profiles  r2p3-02rel0
svc_ipss.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file
4  *
5  * \brief Example Internet Profile Support Service 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_IPSS_H
21 #define SVC_IPSS_H
22 
23 #include "att_api.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 /*! \addtogroup INTERNET_PROFILE_SUPPORT_SERVICE
30  * \{ */
31 
32 /**************************************************************************************************
33  Handle Ranges
34 **************************************************************************************************/
35 
36 /** \name IP Support Service Handles
37  *
38  */
39 /**@{*/
40 #define IPSS_START_HDL 0x0600 /*!< \brief Start handle. */
41 #define IPSS_END_HDL (IPSS_MAX_HDL - 1) /*!< \brief End handle. */
42 
43 /**************************************************************************************************
44  Handles
45 **************************************************************************************************/
46 
47 /*! \brief IP Support Service Handles */
48 enum
49 {
50  IPSS_SVC_HDL = IPSS_START_HDL, /*!< \brief IP Support Server Service declaration */
51  IPSS_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 SvcIpssAddGroup(void);
67 
68 /*************************************************************************************************/
69 /*!
70  * \brief Remove the services from the attribute server.
71  *
72  * \return None.
73  */
74 /*************************************************************************************************/
75 void SvcIpssRemoveGroup(void);
76 
77 /*************************************************************************************************/
78 /*!
79  * \brief Register callbacks for the service.
80  *
81  * \param readCback Read callback function.
82  * \param writeCback Write callback function.
83  *
84  * \return None.
85  */
86 /*************************************************************************************************/
87 void SvcIpssCbackRegister(attsReadCback_t readCback, attsWriteCback_t writeCback);
88 
89 /*! \} */ /* INTERNET_PROFILE_SUPPORT_SERVICE */
90 
91 #ifdef __cplusplus
92 };
93 #endif
94 
95 #endif /* SVC_IPSS_H */
void SvcIpssCbackRegister(attsReadCback_t readCback, attsWriteCback_t writeCback)
Register callbacks for the service.
void SvcIpssRemoveGroup(void)
Remove the services from 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
Maximum handle.
Definition: svc_ipss.h:51
void SvcIpssAddGroup(void)
Add the services to the attribute server.
uint8_t(* attsReadCback_t)(dmConnId_t connId, uint16_t handle, uint8_t operation, uint16_t offset, attsAttr_t *pAttr)
Attribute group read callback.
Definition: att_api.h:218
Attribute protocol client and server API.
#define IPSS_START_HDL
Start handle.
Definition: svc_ipss.h:40
IP Support Server Service declaration.
Definition: svc_ipss.h:50