/*************************************************************************************************/ /*! * \file * * \brief Example Pulse Oximiter Service Server implementation. * * Copyright (c) 2016-2018 Arm Ltd. * * Copyright (c) 2019 Packetcraft, Inc. * * 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. */ /*************************************************************************************************/ #ifndef SVC_PLXS_H #define SVC_PLXS_H #include "att_api.h" #ifdef __cplusplus extern "C" { #endif /*! \addtogroup PULSE_OXIMITER_SERVICE * \{ */ /************************************************************************************************** Handle Ranges **************************************************************************************************/ /** \name Pulse Oximiter Service Handles * */ /**@{*/ #define PLXS_START_HDL 0x04A0 /*!< \brief Start handle. */ #define PLXS_END_HDL (PLXS_MAX_HDL - 1) /*!< \brief End handle. */ /************************************************************************************************** Handles **************************************************************************************************/ /*! \brief Pulse Oximiter Service Handles */ enum { PLXS_SVC_HDL = PLXS_START_HDL, /*!< \brief Pulse Oximiter Server Service declaration */ PLXS_FEATURES_CH_HDL, /*!< \brief Pulse Oximiter Features characteristic */ PLXS_FEATURES_HDL, /*!< \brief Pulse Oximiter Features */ PLXS_SPOT_CHECK_CH_HDL, /*!< \brief Pulse Oximiter Spot Check Measurement characteristic */ PLXS_SPOT_CHECK_HDL, /*!< \brief Pulse Oximiter Spot Check Measurement */ PLXS_SPOT_CHECK_CH_CCC_HDL, /*!< \brief Pulse Oximiter Spot Check Measurement Client Characteristic Configuration Descriptor */ PLXS_CONTINUOUS_CH_HDL, /*!< \brief Pulse Oximiter Continuous Measurement characteristic */ PLXS_CONTINUOUS_HDL, /*!< \brief Pulse Oximiter Continuous Measurement */ PLXS_CONTINUOUS_CH_CCC_HDL, /*!< \brief Pulse Oximiter Continuous Measurement Client Characteristic Configuration Descriptor */ PLXS_RECORD_ACCESS_CH_HDL, /*!< \brief Pulse Oximiter Record Access Control Point characteristic */ PLXS_RECORD_ACCESS_HDL, /*!< \brief Pulse Oximiter Record Access Control Point */ PLXS_RECORD_ACCESS_CH_CCC_HDL, /*!< \brief Pulse Oximiter Record Access Control Point Client Characteristic Configuration Descriptor */ PLXS_MAX_HDL /*!< \brief Maximum handle. */ }; /**@}*/ /************************************************************************************************** Function Declarations **************************************************************************************************/ /*************************************************************************************************/ /*! * \brief Add the services to the attribute server. * * \return None. */ /*************************************************************************************************/ void SvcPlxsAddGroup(void); /*************************************************************************************************/ /*! * \brief Remove the services from the attribute server. * * \return None. */ /*************************************************************************************************/ void SvcPlxsRemoveGroup(void); /*************************************************************************************************/ /*! * \brief Register callbacks for the service. * * \param readCback Read callback function. * \param writeCback Write callback function. * * \return None. */ /*************************************************************************************************/ void SvcPlxsCbackRegister(attsReadCback_t readCback, attsWriteCback_t writeCback); /*! \} */ /* PULSE_OXIMITER_SERVICE */ #ifdef __cplusplus }; #endif #endif /* SVC_PLXS_H */