TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
|
#include <zephyr/drivers/sensor.h>
Go to the source code of this file.
Data Structures | |
struct | pvt_tt_bh_config |
struct | pvt_tt_bh_data |
struct | pvt_tt_bh_rtio_data |
Enumerations | |
enum | pvt_tt_bh_attribute { SENSOR_ATTR_PVT_TT_BH_NUM_PD = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_PVT_TT_BH_NUM_VM , SENSOR_ATTR_PVT_TT_BH_NUM_TS } |
enum | pvt_tt_bh_channel { SENSOR_CHAN_PVT_TT_BH_PD = SENSOR_CHAN_PRIV_START , SENSOR_CHAN_PVT_TT_BH_VM , SENSOR_CHAN_PVT_TT_BH_TS , SENSOR_CHAN_PVT_TT_BH_TS_AVG } |
enum | ReadStatus { ReadOk = 0 , SampleFault = 1 , IncorrectSampleType = 2 , SdifTimeout = 3 } |
Functions | |
float | pvt_tt_bh_raw_to_temp (uint16_t raw) |
uint16_t | pvt_tt_bh_temp_to_raw (const struct sensor_value *value) |
float | pvt_tt_bh_raw_to_volt (uint16_t raw) |
uint16_t | pvt_tt_bh_volt_to_raw (const struct sensor_value *value) |
float | pvt_tt_bh_raw_to_freq (uint16_t raw) |
uint16_t | pvt_tt_bh_freq_to_raw (const struct sensor_value *value) |
void | pvt_tt_bh_float_to_sensor_value (float data, struct sensor_value *val) |
int | pvt_tt_bh_get_decoder (const struct device *dev, const struct sensor_decoder_api **api) |
void | pvt_tt_bh_submit (const struct device *sensor, struct rtio_iodev_sqe *sqe) |
void | pvt_tt_bh_delay_chain_set (uint32_t new_delay_chain_) |
enum pvt_tt_bh_attribute |
enum pvt_tt_bh_channel |
Information for each device will be stored as a struct sensor_chan_spec, which contains the channel (TS, VM or PD) and the index.
Enumerator | ||
---|---|---|
SENSOR_CHAN_PVT_TT_BH_PD | SENSOR_CHAN_PRIV_START | |
SENSOR_CHAN_PVT_TT_BH_VM | ||
SENSOR_CHAN_PVT_TT_BH_TS | ||
SENSOR_CHAN_PVT_TT_BH_TS_AVG |
enum ReadStatus |
void pvt_tt_bh_delay_chain_set | ( | uint32_t | new_delay_chain_ | ) |
void pvt_tt_bh_float_to_sensor_value | ( | float | data, |
struct sensor_value * | val ) |
uint16_t pvt_tt_bh_freq_to_raw | ( | const struct sensor_value * | value | ) |
int pvt_tt_bh_get_decoder | ( | const struct device * | dev, |
const struct sensor_decoder_api ** | api ) |
float pvt_tt_bh_raw_to_freq | ( | uint16_t | raw | ) |
float pvt_tt_bh_raw_to_temp | ( | uint16_t | raw | ) |
float pvt_tt_bh_raw_to_volt | ( | uint16_t | raw | ) |
void pvt_tt_bh_submit | ( | const struct device * | sensor, |
struct rtio_iodev_sqe * | sqe ) |
uint16_t pvt_tt_bh_temp_to_raw | ( | const struct sensor_value * | value | ) |
uint16_t pvt_tt_bh_volt_to_raw | ( | const struct sensor_value * | value | ) |