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
{
25
NVPSB_PSS_SOURCE
,
26
NVPSB_PSS_SINK
,
27
NVPSB_PSS_DAEMON
,
28
NVPSB_PSD_CLIENT
29
}
NvPSBEndpoint
;
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
41
}
NvPSBLogLevel
;
42
48
typedef
enum
NvPSBErr
49
{
50
NVPSB_SUCCESS
,
51
NVPSB_FAIL
,
52
NVPSB_NO_RSP
,
53
NVPSB_UNINITIALIZED
54
}
NvPSBErr
;
55
66
NvPSBErr
NvPSBInitialize
(
const
char
* ident,
NvPSBEndpoint
endpoint);
67
77
NvPSBErr
NvPSBWriteData
(
NvPSBLogLevel
level,
const
std::string data,
const
std::string additionalInfo);
78
84
NvPSBErr
NvPSBExit
();
85
86
87
// Functions for exchanging heartbeat messages
88
89
#ifdef __cplusplus
90
}
91
#endif
92
93
#endif
NvPSBExit
NvPSBErr NvPSBExit()
Exits NvPSB.
NvPSBInitialize
NvPSBErr NvPSBInitialize(const char *ident, NvPSBEndpoint endpoint)
Initializes NvPSB.
NvPSBWriteData
NvPSBErr NvPSBWriteData(NvPSBLogLevel level, const std::string data, const std::string additionalInfo)
Writes data via PSB to the secure storage.
NvPSBEndpoint
NvPSBEndpoint
Definition:
NvPSB.h:24
NVPSB_PSS_SINK
@ NVPSB_PSS_SINK
Definition:
NvPSB.h:26
NVPSB_PSS_SOURCE
@ NVPSB_PSS_SOURCE
Definition:
NvPSB.h:25
NVPSB_PSD_CLIENT
@ NVPSB_PSD_CLIENT
Definition:
NvPSB.h:28
NVPSB_PSS_DAEMON
@ NVPSB_PSS_DAEMON
Definition:
NvPSB.h:27
NvPSBLogLevel
NvPSBLogLevel
Definition:
NvPSB.h:32
NVPSB_LOG_ALERT
@ NVPSB_LOG_ALERT
Definition:
NvPSB.h:34
NVPSB_LOG_INFO
@ NVPSB_LOG_INFO
Definition:
NvPSB.h:39
NVPSB_LOG_NOTICE
@ NVPSB_LOG_NOTICE
Definition:
NvPSB.h:38
NVPSB_LOG_DEBUG
@ NVPSB_LOG_DEBUG
Definition:
NvPSB.h:40
NVPSB_LOG_CRIT
@ NVPSB_LOG_CRIT
Definition:
NvPSB.h:35
NVPSB_LOG_WARNING
@ NVPSB_LOG_WARNING
Definition:
NvPSB.h:37
NVPSB_LOG_EMERG
@ NVPSB_LOG_EMERG
Definition:
NvPSB.h:33
NVPSB_LOG_ERR
@ NVPSB_LOG_ERR
Definition:
NvPSB.h:36
NvPSBErr
NvPSBErr
Enumeration of PSB error codes.
Definition:
NvPSB.h:49
NVPSB_SUCCESS
@ NVPSB_SUCCESS
Definition:
NvPSB.h:50
NVPSB_NO_RSP
@ NVPSB_NO_RSP
Definition:
NvPSB.h:52
NVPSB_UNINITIALIZED
@ NVPSB_UNINITIALIZED
Definition:
NvPSB.h:53
NVPSB_FAIL
@ NVPSB_FAIL
Definition:
NvPSB.h:51
psb
include
NvPSB.h
Generated by
1.9.1