Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 1 | /* |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame] | 2 | * Copyright (c) 2023, Arm Limited. All rights reserved. |
Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | /* |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame] | 9 | * Generated by erpcgen 1.9.1 on Fri Jul 21 17:28:31 2023. |
Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 10 | * |
| 11 | * AUTOGENERATED - DO NOT EDIT |
| 12 | */ |
| 13 | |
| 14 | |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame] | 15 | #if !defined(_tfm_erpc_server_h_) |
| 16 | #define _tfm_erpc_server_h_ |
Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 17 | |
| 18 | #ifdef __cplusplus |
| 19 | #include "erpc_server.h" |
| 20 | #include "erpc_codec.h" |
| 21 | extern "C" |
| 22 | { |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame] | 23 | #include "tfm_erpc.h" |
Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 24 | #include <stdint.h> |
| 25 | #include <stdbool.h> |
| 26 | } |
| 27 | |
| 28 | #if 10901 != ERPC_VERSION_NUMBER |
| 29 | #error "The generated shim code version is different to the rest of eRPC code." |
| 30 | #endif |
| 31 | |
| 32 | |
| 33 | /*! |
| 34 | * @brief Service subclass for psa_client_api. |
| 35 | */ |
| 36 | class psa_client_api_service : public erpc::Service |
| 37 | { |
| 38 | public: |
| 39 | psa_client_api_service() : Service(kpsa_client_api_service_id) {} |
| 40 | |
| 41 | /*! @brief Call the correct server shim based on method unique ID. */ |
| 42 | virtual erpc_status_t handleInvocation(uint32_t methodId, uint32_t sequence, erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory); |
| 43 | |
| 44 | private: |
| 45 | /*! @brief Server shim for psa_framework_version of psa_client_api interface. */ |
| 46 | erpc_status_t psa_framework_version_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence); |
| 47 | |
| 48 | /*! @brief Server shim for psa_version of psa_client_api interface. */ |
| 49 | erpc_status_t psa_version_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence); |
| 50 | |
| 51 | /*! @brief Server shim for erpc_psa_call of psa_client_api interface. */ |
| 52 | erpc_status_t erpc_psa_call_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence); |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame] | 53 | |
| 54 | /*! @brief Server shim for psa_connect of psa_client_api interface. */ |
| 55 | erpc_status_t psa_connect_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence); |
| 56 | |
| 57 | /*! @brief Server shim for psa_close of psa_client_api interface. */ |
| 58 | erpc_status_t psa_close_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence); |
Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 59 | }; |
| 60 | |
| 61 | extern "C" { |
| 62 | #else |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame] | 63 | #include "tfm_erpc.h" |
Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 64 | #endif // __cplusplus |
| 65 | |
| 66 | typedef void * erpc_service_t; |
| 67 | |
| 68 | erpc_service_t create_psa_client_api_service(void); |
| 69 | |
| 70 | #if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
| 71 | void destroy_psa_client_api_service(erpc_service_t service); |
| 72 | #elif ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_STATIC |
| 73 | void destroy_psa_client_api_service(void); |
| 74 | #else |
| 75 | #warning "Unknown eRPC allocation policy!" |
| 76 | #endif |
| 77 | |
| 78 | #ifdef __cplusplus |
| 79 | } |
| 80 | #endif // __cplusplus |
| 81 | |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame] | 82 | #endif // _tfm_erpc_server_h_ |