Proactive Safety Framework  1.0
NvPSB.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 NVPSB_H
14 #define NVPSB_H
15 
16 
17 #include <string>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 typedef enum NvPSBEndpoint_t
24 {
30 
31 typedef enum NvPSBLogLevel_t
32 {
33  NVPSB_LOG_EMERG, //system is unusable
34  NVPSB_LOG_ALERT, //action must be taken immediately
35  NVPSB_LOG_CRIT, //critical conditions
36  NVPSB_LOG_ERR, //error conditions
37  NVPSB_LOG_WARNING, //warning conditions
38  NVPSB_LOG_NOTICE, //normal, but significant, condition
39  NVPSB_LOG_INFO, //informational message
40  NVPSB_LOG_DEBUG //debug-level message
42 
48 typedef enum NvPSBErr
49 {
55 
66 NvPSBErr NvPSBInitialize(const char* ident, NvPSBEndpoint endpoint);
67 
77 NvPSBErr NvPSBWriteData(NvPSBLogLevel level, const std::string data, const std::string additionalInfo);
78 
85 
86 
87 // Functions for exchanging heartbeat messages
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif
NvPSBErr NvPSBExit()
Exits NvPSB.
NvPSBErr NvPSBInitialize(const char *ident, NvPSBEndpoint endpoint)
Initializes NvPSB.
NvPSBErr NvPSBWriteData(NvPSBLogLevel level, const std::string data, const std::string additionalInfo)
Writes data via PSB to the secure storage.
NvPSBEndpoint
Definition: NvPSB.h:24
@ NVPSB_PSS_SINK
Definition: NvPSB.h:26
@ NVPSB_PSS_SOURCE
Definition: NvPSB.h:25
@ NVPSB_PSD_CLIENT
Definition: NvPSB.h:28
@ NVPSB_PSS_DAEMON
Definition: NvPSB.h:27
NvPSBLogLevel
Definition: NvPSB.h:32
@ NVPSB_LOG_ALERT
Definition: NvPSB.h:34
@ NVPSB_LOG_INFO
Definition: NvPSB.h:39
@ NVPSB_LOG_NOTICE
Definition: NvPSB.h:38
@ NVPSB_LOG_DEBUG
Definition: NvPSB.h:40
@ NVPSB_LOG_CRIT
Definition: NvPSB.h:35
@ NVPSB_LOG_WARNING
Definition: NvPSB.h:37
@ NVPSB_LOG_EMERG
Definition: NvPSB.h:33
@ NVPSB_LOG_ERR
Definition: NvPSB.h:36
NvPSBErr
Enumeration of PSB error codes.
Definition: NvPSB.h:49
@ NVPSB_SUCCESS
Definition: NvPSB.h:50
@ NVPSB_NO_RSP
Definition: NvPSB.h:52
@ NVPSB_UNINITIALIZED
Definition: NvPSB.h:53
@ NVPSB_FAIL
Definition: NvPSB.h:51