|
TT Zephyr Platforms 19.5.0-rc1
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 | |
| SENSOR_DT_READ_IODEV (ts_avg_iodev, DT_NODELABEL(pvt), {SENSOR_CHAN_PVT_TT_BH_TS_AVG, 0}) | |
| RTIO_DEFINE (ts_avg_ctx, 1, 1) | |
| 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 |
| static const struct device *const | pvt = DEVICE_DT_GET(DT_NODELABEL(pvt)) |
| static uint8_t | ts_avg_buf [sizeof(struct sensor_value)] |
| 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 |
| RTIO_DEFINE | ( | ts_avg_ctx | , |
| 1 | , | ||
| 1 | ) |
| SENSOR_DT_READ_IODEV | ( | ts_avg_iodev | , |
| DT_NODELABEL(pvt) | , | ||
| {SENSOR_CHAN_PVT_TT_BH_TS_AVG, 0} | ) |
|
static |
|
static |
|
static |
|
static |