OpenBIC
OpenSource Bridge-IC
ddr5_temp.c File Reference
#include <stdio.h>
#include <logging/log.h>
#include "sensor.h"
#include "hal_i2c.h"
Include dependency graph for ddr5_temp.c:

Macros

#define TS0_LID   0b0010
 
#define TS1_LID   0b0110
 
#define TS_SENSE_OFFSET   0x31
 

Functions

 LOG_MODULE_REGISTER (dev_ddr5_temp)
 
uint8_t ddr5_temp_read (sensor_cfg *cfg, int *reading)
 
uint8_t ddr5_temp_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ TS0_LID

#define TS0_LID   0b0010

◆ TS1_LID

#define TS1_LID   0b0110

◆ TS_SENSE_OFFSET

#define TS_SENSE_OFFSET   0x31

Function Documentation

◆ ddr5_temp_init()

uint8_t ddr5_temp_init ( sensor_cfg cfg)
Here is the call graph for this function:

◆ ddr5_temp_read()

uint8_t ddr5_temp_read ( sensor_cfg cfg,
int *  reading 
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_ddr5_temp  )