Proactive Safety Framework  1.0
NvPSSDRPCMsg.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11 */
12 
13 #ifndef NVPSSD_RPC_MSGS_H
14 #define NVPSSD_RPC_MSGS_H
15 
16 #include <cstring>
17 #include <utility>
18 
19 #define MAX_RPC_MSG_SIZE 512
20 
21 typedef enum NvPSSDRPCBackend_t
22 {
23  SOCKET=0,
24  NVSCI
26 
27 typedef enum NvPSSDRPCMsg_t
28 {
34 
35 typedef struct NvPSSDRPCMsgReq_t
36 {
38  uint64_t reqSeqNo;
39  uint16_t size;
40  uint8_t reqPayload[MAX_RPC_MSG_SIZE];
42 
43 typedef struct NvPSSDRPCMsgResp_t
44 {
45  uint64_t respSeqNo;
46  uint8_t size;
47  uint8_t respPayload[MAX_RPC_MSG_SIZE];
49 
50 #endif
#define MAX_RPC_MSG_SIZE
Definition: NvPSSDRPCMsg.h:19
NvPSSDRPCBackend
Definition: NvPSSDRPCMsg.h:22
@ SOCKET
Definition: NvPSSDRPCMsg.h:23
@ NVSCI
Definition: NvPSSDRPCMsg.h:24
NvPSSDRPCMsg
Definition: NvPSSDRPCMsg.h:28
@ REGISTER_CLIENT
Definition: NvPSSDRPCMsg.h:29
@ REPORT_SENSOR_FAILURE
Definition: NvPSSDRPCMsg.h:32
@ TERMINATE_CLIENT
Definition: NvPSSDRPCMsg.h:30
@ REPORT_SAFETY_EVENT
Definition: NvPSSDRPCMsg.h:31
Definition: NvPSSDRPCMsg.h:36
uint64_t reqSeqNo
Definition: NvPSSDRPCMsg.h:38
uint16_t size
Definition: NvPSSDRPCMsg.h:39
NvPSSDRPCMsg msg
Definition: NvPSSDRPCMsg.h:37
Definition: NvPSSDRPCMsg.h:44
uint8_t size
Definition: NvPSSDRPCMsg.h:46
uint64_t respSeqNo
Definition: NvPSSDRPCMsg.h:45