System Task Manager SDK Reference  5.10
stm_error.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021-2022 NVIDIA CORPORATION. All Rights Reserved.
3 *
4 * NVIDIA CORPORATION and its licensors retain all intellectual property
5 * and proprietary rights in and to this software, related documentation
6 * and any modifications thereto. Any use, reproduction, disclosure or
7 * distribution of this software and related documentation without an express
8 * license agreement from NVIDIA CORPORATION is strictly prohibited.
9 *
10 */
11
25#ifndef STM_ERROR_H_
26#define STM_ERROR_H_
27
28#if __GNUC__ >= 4
29#define STM_API __attribute__((visibility("default")))
30#endif
31
32#include <stdint.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
47typedef enum stmErrorCode_t {
84 /* Error in establishing TCP scoket connection */
86 /* Error in Unknown clock source setup */
88 /* Error in reading timestamp */
90 /* Error unknown scheduling state */
92 /* Error state transition not possible between current and next state */
94 /* Error schedule id invalid */
98
99extern const char* stmErrorCodeNames[];
100
107static inline const char* stmErrorCodeToString(stmErrorCode_t err)
108{
109 return stmErrorCodeNames[(uint32_t)err];
110}
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif //STM_ERROR_H_
stmErrorCode_t
Return/error codes for all STM functions.
Definition: stm_error.h:47
@ STM_ERROR_PVA
Definition: stm_error.h:81
@ STM_ERROR_BAD_VALUE
Definition: stm_error.h:65
@ STM_ERROR_SYNC
Definition: stm_error.h:69
@ STM_ERROR_CONNECTION
Definition: stm_error.h:85
@ STM_ERROR_NOT_FOUND
Definition: stm_error.h:59
@ STM_ERROR_INSUFFICIENT_MEMORY
Definition: stm_error.h:75
@ STM_ERROR_BAD_STATE_TRANSITION
Definition: stm_error.h:93
@ STM_ERROR_BAD_PARAMETER
Definition: stm_error.h:53
@ STM_ERROR_GENERIC
Definition: stm_error.h:63
@ STM_ERROR_TIMEOUT
Definition: stm_error.h:57
@ STM_ERROR_CUDLA
Definition: stm_error.h:79
@ STM_ERROR_CUDA
Definition: stm_error.h:73
@ STM_ERROR_NVSCISYNC
Definition: stm_error.h:67
@ STM_ERROR_UNKNOWN_CLOCK
Definition: stm_error.h:87
@ STM_ERROR_MQ_FULL
Definition: stm_error.h:83
@ STM_NUM_ERROR_CODES
Definition: stm_error.h:96
@ STM_ERROR_NVSCISYNC_TIMEOUT
Definition: stm_error.h:71
@ STM_ERROR_INVALID_STATE
Definition: stm_error.h:61
@ STM_SUCCESS
Definition: stm_error.h:49
@ STM_ERROR_SCHEDULE_ID_INVALID
Definition: stm_error.h:95
@ STM_ERROR_UNKNOWN_STATE
Definition: stm_error.h:91
@ STM_ERROR_NOT_SUPPORTED
Definition: stm_error.h:55
@ STM_ERROR_NVMEDIA_DLA
Definition: stm_error.h:77
@ STM_ERROR_FAILED_READING_TIMESTAMPS
Definition: stm_error.h:89
@ STM_ERROR_NOT_INITIALIZED
Definition: stm_error.h:51
const char * stmErrorCodeNames[]
static const char * stmErrorCodeToString(stmErrorCode_t err)
Convert STM error code to string representation.
Definition: stm_error.h:107