TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
pvt_tt_bh_decoder.c File Reference
Include dependency graph for pvt_tt_bh_decoder.c:

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)

Macro Definition Documentation

◆ VM_VREF

#define VM_VREF   1.2207f

Function Documentation

◆ LOG_MODULE_DECLARE()

LOG_MODULE_DECLARE ( pvt_tt_bh )

◆ pvt_tt_bh_decode_sample()

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

◆ pvt_tt_bh_decoder_decode()

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 )
static

◆ pvt_tt_bh_freq_to_raw()

uint16_t pvt_tt_bh_freq_to_raw ( float freq)

◆ pvt_tt_bh_get_decoder()

int pvt_tt_bh_get_decoder ( const struct device * dev,
const struct sensor_decoder_api ** decoder )

◆ pvt_tt_bh_raw_to_freq()

float pvt_tt_bh_raw_to_freq ( uint16_t raw)

◆ pvt_tt_bh_raw_to_temp()

float pvt_tt_bh_raw_to_temp ( uint16_t raw)

◆ pvt_tt_bh_raw_to_volt()

float pvt_tt_bh_raw_to_volt ( uint16_t raw)

◆ pvt_tt_bh_temp_to_raw()

uint16_t pvt_tt_bh_temp_to_raw ( float temp)

◆ pvt_tt_bh_volt_to_raw()

uint16_t pvt_tt_bh_volt_to_raw ( float volt)

◆ SENSOR_DECODER_API_DT_DEFINE()

SENSOR_DECODER_API_DT_DEFINE ( )