OpenBIC
OpenSource Bridge-IC
mp2856gut.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 mp2856gut.c:

Macros

#define MFR_VR_CONFIG2_VOUT_MODE_BIT   BIT(11)
 
#define MFR_VR_CONFIG2   0x5E
 

Functions

 LOG_MODULE_REGISTER (mp2856gut)
 
uint8_t mp2856gut_read (sensor_cfg *cfg, int *reading)
 
uint8_t mp2856gut_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ MFR_VR_CONFIG2

#define MFR_VR_CONFIG2   0x5E

◆ MFR_VR_CONFIG2_VOUT_MODE_BIT

#define MFR_VR_CONFIG2_VOUT_MODE_BIT   BIT(11)

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( mp2856gut  )

◆ mp2856gut_init()

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

◆ mp2856gut_read()

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