TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
pvt_tt_bh.h File Reference

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

Enumeration Type Documentation

◆ pvt_tt_bh_attribute

Enumerator
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  

◆ 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  

◆ ReadStatus

enum ReadStatus
Enumerator
ReadOk 
SampleFault 
IncorrectSampleType 
SdifTimeout 

Function Documentation

◆ pvt_tt_bh_delay_chain_set()

void pvt_tt_bh_delay_chain_set ( uint32_t new_delay_chain_)

◆ pvt_tt_bh_float_to_sensor_value()

void pvt_tt_bh_float_to_sensor_value ( float data,
struct sensor_value * val )

◆ pvt_tt_bh_freq_to_raw()

uint16_t pvt_tt_bh_freq_to_raw ( const struct sensor_value * value)

◆ pvt_tt_bh_get_decoder()

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

◆ 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_submit()

void pvt_tt_bh_submit ( const struct device * sensor,
struct rtio_iodev_sqe * sqe )

◆ pvt_tt_bh_temp_to_raw()

uint16_t pvt_tt_bh_temp_to_raw ( const struct sensor_value * value)

◆ pvt_tt_bh_volt_to_raw()

uint16_t pvt_tt_bh_volt_to_raw ( const struct sensor_value * value)