TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
|
#include "avs.h"
#include "telemetry_internal.h"
#include "regulator.h"
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/tenstorrent/pvt_tt_bh.h>
Functions | |
void | ReadTelemetryInternal (int64_t max_staleness, TelemetryInternalData *data) |
Read telemetry values that are shared by multiple components. |
Variables | |
static int64_t | last_update_time |
static TelemetryInternalData | internal_data |
void ReadTelemetryInternal | ( | int64_t | max_staleness, |
TelemetryInternalData * | data ) |
Read telemetry values that are shared by multiple components.
This function will update the cached TelemetryInternalData values if necessary. Then return a copy of the values through the *data pointer.
max_staleness | Maximum time interval in milliseconds since the last update |
data | Pointer to the TelemetryInternalData struct to fill with the values |
|
static |
|
static |