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

Macros

#define BMR313_READ_VOUT_EXP_VALUE   (1.0 / (1 << 5))
 

Functions

 LOG_MODULE_REGISTER (bmr313)
 
bool bmr313_i2c_read (uint8_t bus, uint8_t addr, uint8_t reg, uint8_t *data, uint8_t len)
 
bool bmr313_get_vr_status (sensor_cfg *cfg, uint8_t rail, uint8_t vr_status_rail, uint16_t *vr_status)
 
bool bmr313_clear_vr_status (sensor_cfg *cfg, uint8_t rail)
 
uint8_t bmr313_read (sensor_cfg *cfg, int *reading)
 
uint8_t bmr313_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ BMR313_READ_VOUT_EXP_VALUE

#define BMR313_READ_VOUT_EXP_VALUE   (1.0 / (1 << 5))

Function Documentation

◆ bmr313_clear_vr_status()

bool bmr313_clear_vr_status ( sensor_cfg cfg,
uint8_t  rail 
)
Here is the call graph for this function:

◆ bmr313_get_vr_status()

bool bmr313_get_vr_status ( sensor_cfg cfg,
uint8_t  rail,
uint8_t  vr_status_rail,
uint16_t *  vr_status 
)
Here is the call graph for this function:

◆ bmr313_i2c_read()

bool bmr313_i2c_read ( uint8_t  bus,
uint8_t  addr,
uint8_t  reg,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ bmr313_init()

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

◆ bmr313_read()

uint8_t bmr313_read ( sensor_cfg cfg,
int *  reading 
)
Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( bmr313  )