Harshit Aghera | 09f6f2c | 2025-05-07 16:20:16 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & |
| 3 | * AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 |
| 4 | */ |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "MctpRequester.hpp" |
| 9 | |
| 10 | #include <cstdint> |
| 11 | #include <functional> |
| 12 | #include <memory> |
| 13 | #include <vector> |
| 14 | |
| 15 | /** @brief Read thermal parameters for multiple sensors in a batch operation |
| 16 | * |
| 17 | * @param[in] eid - Endpoint ID |
| 18 | * @param[in] ids - Shared pointer to vector of sensor IDs to read |
| 19 | * @param[in] mctpRequester - Reference to MCTP requester |
| 20 | * @param[in] callback - Callback function to process results |
| 21 | * Takes sensor ID and vector of threshold values |
| 22 | */ |
| 23 | void readThermalParametersBatched( |
| 24 | uint8_t eid, const std::shared_ptr<std::vector<uint8_t>>& ids, |
| 25 | mctp::MctpRequester& mctpRequester, |
| 26 | const std::function<void(uint8_t, std::vector<int32_t>)>& callback); |