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_h_) |
| 16 | #define _tfm_erpc_h_ |
Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 17 | |
| 18 | #include <stdbool.h> |
| 19 | #include <stddef.h> |
| 20 | #include <stdint.h> |
| 21 | #include "erpc_version.h" |
| 22 | #include "psa/client.h" |
| 23 | |
| 24 | #if 10901 != ERPC_VERSION_NUMBER |
| 25 | #error "The generated shim code version is different to the rest of eRPC code." |
| 26 | #endif |
| 27 | |
| 28 | #if !defined(ERPC_TYPE_DEFINITIONS) |
| 29 | #define ERPC_TYPE_DEFINITIONS |
| 30 | |
| 31 | // Aliases data types declarations |
| 32 | typedef struct list_binary_1_t list_binary_1_t; |
| 33 | typedef struct binary_t binary_t; |
| 34 | |
| 35 | // Structures/unions data types declarations |
| 36 | struct list_binary_1_t |
| 37 | { |
| 38 | binary_t * elements; |
| 39 | uint32_t elementsCount; |
| 40 | }; |
| 41 | |
| 42 | struct binary_t |
| 43 | { |
| 44 | uint8_t * data; |
| 45 | uint32_t dataLength; |
| 46 | }; |
| 47 | |
| 48 | |
| 49 | #endif // ERPC_TYPE_DEFINITIONS |
| 50 | |
| 51 | /*! @brief psa_client_api identifiers */ |
| 52 | enum _psa_client_api_ids |
| 53 | { |
| 54 | kpsa_client_api_service_id = 1, |
| 55 | kpsa_client_api_psa_framework_version_id = 1, |
| 56 | kpsa_client_api_psa_version_id = 2, |
| 57 | kpsa_client_api_erpc_psa_call_id = 3, |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame^] | 58 | kpsa_client_api_psa_connect_id = 4, |
| 59 | kpsa_client_api_psa_close_id = 5, |
Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 60 | }; |
| 61 | |
| 62 | #if defined(__cplusplus) |
| 63 | extern "C" { |
| 64 | #endif |
| 65 | |
| 66 | //! @name psa_client_api |
| 67 | //@{ |
| 68 | uint32_t psa_framework_version(void); |
| 69 | |
| 70 | uint32_t psa_version(uint32_t sid); |
| 71 | |
| 72 | psa_status_t erpc_psa_call(psa_handle_t handle, int32_t t, const list_binary_1_t * erpc_in_vec, list_binary_1_t * erpc_out_vec); |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame^] | 73 | |
| 74 | psa_handle_t psa_connect(uint32_t sid, uint32_t ver); |
| 75 | |
| 76 | void psa_close(psa_handle_t handle); |
Summer Qin | 153f3df | 2022-11-17 15:51:02 +0800 | [diff] [blame] | 77 | //@} |
| 78 | |
| 79 | #if defined(__cplusplus) |
| 80 | } |
| 81 | #endif |
| 82 | |
Kevin Peng | 0eca5ea | 2023-07-21 17:32:31 +0800 | [diff] [blame^] | 83 | #endif // _tfm_erpc_h_ |