/*************************************************************************************************/ /*! * \file * * \brief Example temperature service profile. * * Copyright (c) 2015-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 TEMP_API_H #define TEMP_API_H #ifdef __cplusplus extern "C" { #endif /*! \addtogroup TEMPERATURE_SERVICE_PROFILE * \{ */ #include "wsf_types.h" #include "wsf_os.h" /*************************************************************************************************/ /*! * \brief Start service. * * \param handlerId Handler ID. * \param timerEvt Timer message event. * * \return None. */ /*************************************************************************************************/ void TempStart(wsfHandlerId_t handlerId, uint8_t timerEvt); /*************************************************************************************************/ /*! * \brief Stop service. * * \return None. */ /*************************************************************************************************/ void TempStop(void); /*************************************************************************************************/ /*! * \brief Measurement stop handler. * * \return None. */ /*************************************************************************************************/ void TempMeasStop(void); /*************************************************************************************************/ /*! * \brief Measurement start handler. * * \return None. */ /*************************************************************************************************/ void TempMeasStart(void); /*************************************************************************************************/ /*! * \brief Measurement complete handler. * * \param connId Connection ID. * \param temp Temperature reading. * * \return None. */ /*************************************************************************************************/ void TempMeasComplete(dmConnId_t connId, int16_t temp); /*! \} */ /* TEMPERATURE_SERVICE_PROFILE */ #ifdef __cplusplus }; #endif #endif /* TEMP_API_H */