1 /* 2 * Copyright 2017, NXP 3 * All rights reserved. 4 * 5 * 6 * SPDX-License-Identifier: BSD-3-Clause 7 */ 8 9 #ifndef __SRTM_SERVICE_H__ 10 #define __SRTM_SERVICE_H__ 11 12 #include "srtm_defs.h" 13 14 /*! 15 * @addtogroup srtm 16 * @{ 17 */ 18 19 /******************************************************************************* 20 * Definitions 21 ******************************************************************************/ 22 23 /******************************************************************************* 24 * API 25 ******************************************************************************/ 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 30 /*! 31 * @brief Destroy SRTM service. 32 * 33 * @param service SRTM service to destroy. 34 */ 35 void SRTM_Service_Destroy(srtm_service_t service); 36 37 /*! 38 * @brief Call SRTM service for a request. 39 * 40 * @param service SRTM service to call. 41 * @param request SRTM request to process. 42 * @return SRTM_Status_Success on success and others on failure. 43 */ 44 srtm_status_t SRTM_Service_Request(srtm_service_t service, srtm_request_t request); 45 46 /*! 47 * @brief Call SRTM service for a notification. 48 * 49 * @param service SRTM service to call. 50 * @param notification SRTM notification to process. 51 * @return SRTM_Status_Success on success and others on failure. 52 */ 53 srtm_status_t SRTM_Service_Notify(srtm_service_t service, srtm_notification_t notification); 54 55 #ifdef __cplusplus 56 } 57 #endif 58 59 /*! @} */ 60 61 #endif /* __SRTM_SERVICE_H__ */ 62