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

Functions

 LOG_MODULE_REGISTER (util_pmbus)
 
float slinear11_to_float (uint16_t read_value)
 
bool get_exponent_from_vout_mode (sensor_cfg *cfg, float *exponent)
 
int pmbus_read_command (uint8_t bus, uint8_t addr, uint8_t command, uint8_t *result, uint8_t read_len)
 
int pmbus_set_page (uint8_t bus, uint8_t addr, uint8_t page)
 

Variables

const float slinear11_exponents [32]
 

Function Documentation

◆ get_exponent_from_vout_mode()

bool get_exponent_from_vout_mode ( sensor_cfg cfg,
float *  exponent 
)
Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( util_pmbus  )

◆ pmbus_read_command()

int pmbus_read_command ( uint8_t  bus,
uint8_t  addr,
uint8_t  command,
uint8_t *  result,
uint8_t  read_len 
)
Here is the call graph for this function:

◆ pmbus_set_page()

int pmbus_set_page ( uint8_t  bus,
uint8_t  addr,
uint8_t  page 
)
Here is the call graph for this function:

◆ slinear11_to_float()

float slinear11_to_float ( uint16_t  read_value)

Variable Documentation

◆ slinear11_exponents

const float slinear11_exponents[32]