![]() |
TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
|
#include <zephyr/drivers/sensor/tenstorrent/pvt_tt_bh.h>#include <zephyr/drivers/sensor.h>#include <zephyr/logging/log.h>#include <math.h>
Macros | |
| #define | VM_VREF 1.2207f |
Functions | |
| LOG_MODULE_DECLARE (pvt_tt_bh) | |
| float | pvt_tt_bh_raw_to_temp (uint16_t raw) |
| uint16_t | pvt_tt_bh_temp_to_raw (float temp) |
| float | pvt_tt_bh_raw_to_volt (uint16_t raw) |
| uint16_t | pvt_tt_bh_volt_to_raw (float volt) |
| float | pvt_tt_bh_raw_to_freq (uint16_t raw) |
| uint16_t | pvt_tt_bh_freq_to_raw (float freq) |
| static int | pvt_tt_bh_decode_sample (const uint8_t *buf, struct sensor_chan_spec chan_spec, uint32_t *fit, uint16_t max_count, void *data_out) |
| static int | pvt_tt_bh_decoder_decode (const uint8_t *buf, struct sensor_chan_spec chan_spec, uint32_t *fit, uint16_t max_count, void *data_out) |
| SENSOR_DECODER_API_DT_DEFINE () | |
| int | pvt_tt_bh_get_decoder (const struct device *dev, const struct sensor_decoder_api **decoder) |
| #define VM_VREF 1.2207f |
| LOG_MODULE_DECLARE | ( | pvt_tt_bh | ) |
|
static |
|
static |
| uint16_t pvt_tt_bh_freq_to_raw | ( | float | freq | ) |
| int pvt_tt_bh_get_decoder | ( | const struct device * | dev, |
| const struct sensor_decoder_api ** | decoder ) |
| 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 | ) |
| uint16_t pvt_tt_bh_temp_to_raw | ( | float | temp | ) |
| uint16_t pvt_tt_bh_volt_to_raw | ( | float | volt | ) |
| SENSOR_DECODER_API_DT_DEFINE | ( | ) |