System Task Manager SDK Reference  5.22
stm_manager.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019-2023 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
31#ifndef STM_MANAGER_H_
32#define STM_MANAGER_H_
33
34#if __GNUC__ >= 4
35#define STM_API __attribute__((visibility("default")))
36#endif
37
38#include <stdint.h>
39#include "stm_error.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
56STM_API stmErrorCode_t stmScheduleManagerInit(const char* scheduleManagerName);
57
73STM_API stmErrorCode_t stmScheduleManagerInitWithDiscriminator(const char* scheduleManagerName, int32_t discriminator);
83
93STM_API stmErrorCode_t stmStartSchedule(uint16_t scheduleId);
94
105STM_API stmErrorCode_t stmStopSchedule(uint16_t scheduleId);
106
120STM_API stmErrorCode_t stmRollOverSchedule(uint16_t startScheduleId, uint16_t stopScheduleId);
121
122#ifdef __cplusplus
123}
124#endif
125
126#endif //STM_MANAGER_H_
Return/error codes for all STM functions.
stmErrorCode_t
Return/error codes for all STM functions.
Definition: stm_error.h:47
STM_API stmErrorCode_t stmStartSchedule(uint16_t scheduleId)
Schedule Management API for starting Schedule Execution.
STM_API stmErrorCode_t stmScheduleManagerExit(void)
Cleans up STM schedule Manager context. No STM APIs can be called after this.
STM_API stmErrorCode_t stmStopSchedule(uint16_t scheduleId)
Schedule Management API for stopping Schedule Execution.
STM_API stmErrorCode_t stmScheduleManagerInit(const char *scheduleManagerName)
Initialize STM schedule manager context.
STM_API stmErrorCode_t stmScheduleManagerInitWithDiscriminator(const char *scheduleManagerName, int32_t discriminator)
Initialize STM schedule manager context with a discriminator.
STM_API stmErrorCode_t stmRollOverSchedule(uint16_t startScheduleId, uint16_t stopScheduleId)
Schedule Management API for stopping current Schedule Execution and starting a new one in a per-hyper...