![]() |
TT-System-Firmware APIs 19.13.99
Tenstorrent Firmware
|
#include <zephyr/device.h>#include <zephyr/drivers/sensor.h>#include <zephyr/drivers/smbus.h>#include <zephyr/logging/log.h>#include <zephyr/rtio/rtio.h>#include <zephyr/rtio/work.h>#include <zephyr/sys/byteorder.h>#include <zephyr/sys/util.h>#include <tenstorrent/tt_smbus_regs.h>#include <errno.h>#include <telemetry.h>
Data Structures | |
| struct | bh_arc_telem_config |
| struct | bh_arc_telem_map |
| struct | bh_arc_telem_rtio_data |
Macros | |
| #define | DT_DRV_COMPAT tenstorrent_bh_arc_telemetry |
| #define | BH_ARC_TELEM_RCV_BUF_LEN 7U |
| #define | BH_ARC_TELEM_MAP_ENTRY(node_id) |
| #define | BH_ARC_TELEM_MAP_COUNT(inst) |
| #define | BH_ARC_TELEM_DEFINE(inst) |
Functions | |
| LOG_MODULE_REGISTER (bh_arc_telem, CONFIG_SENSOR_LOG_LEVEL) | |
| static int | bh_arc_telem_raw_to_sensor_value (uint8_t telem_tag, int32_t scale_micro, uint32_t raw, struct sensor_value *val) |
| static const struct bh_arc_telem_map * | bh_arc_telem_find_map (const struct bh_arc_telem_config *cfg, enum sensor_channel channel, uint8_t channel_index) |
| static int | bh_arc_telem_read_raw (const struct bh_arc_telem_config *cfg, const struct bh_arc_telem_map *map, uint32_t *raw) |
| static int | bh_arc_telem_decoder_get_frame_count (const uint8_t *buffer, struct sensor_chan_spec chan_spec, uint16_t *frame_count) |
| static int | bh_arc_telem_decoder_get_size_info (struct sensor_chan_spec channel, size_t *base_size, size_t *frame_size) |
| static int | bh_arc_telem_decoder_decode (const uint8_t *buffer, struct sensor_chan_spec chan_spec, uint32_t *fit, uint16_t max_count, void *data_out) |
| static bool | bh_arc_telem_decoder_has_trigger (const uint8_t *buffer, enum sensor_trigger_type trig) |
| SENSOR_DECODER_API_DT_DEFINE () | |
| static int | bh_arc_telem_get_decoder (const struct device *dev, const struct sensor_decoder_api **decoder) |
| static void | bh_arc_telem_submit_sample (struct rtio_iodev_sqe *iodev_sqe) |
| static void | bh_arc_telem_submit (const struct device *sensor, struct rtio_iodev_sqe *sqe) |
| static int | bh_arc_telem_init (const struct device *dev) |
| static | DEVICE_API (sensor, bh_arc_telem_api) |
| #define BH_ARC_TELEM_DEFINE | ( | inst | ) |
| #define BH_ARC_TELEM_MAP_COUNT | ( | inst | ) |
| #define BH_ARC_TELEM_MAP_ENTRY | ( | node_id | ) |
| #define BH_ARC_TELEM_RCV_BUF_LEN 7U |
| #define DT_DRV_COMPAT tenstorrent_bh_arc_telemetry |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| LOG_MODULE_REGISTER | ( | bh_arc_telem | , |
| CONFIG_SENSOR_LOG_LEVEL | ) |
| SENSOR_DECODER_API_DT_DEFINE | ( | ) |