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

Macros

#define PMIC_LID   0b1001
 
#define PMIC_POWER_REG   0x0C
 

Functions

 LOG_MODULE_REGISTER (dev_ddr5_power)
 
uint8_t ddr5_power_read (sensor_cfg *cfg, int *reading)
 
uint8_t ddr5_power_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ PMIC_LID

#define PMIC_LID   0b1001

◆ PMIC_POWER_REG

#define PMIC_POWER_REG   0x0C

Function Documentation

◆ ddr5_power_init()

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

◆ ddr5_power_read()

uint8_t ddr5_power_read ( sensor_cfg cfg,
int *  reading 
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_ddr5_power  )