OpenBIC
OpenSource Bridge-IC
mp2971.h File Reference
#include "stdint.h"
#include "sensor.h"
Include dependency graph for mp2971.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool mp2971_fwupdate (uint8_t bus, uint8_t addr, uint8_t *img_buff, uint32_t img_size)
 
bool mp2971_get_vout_max (sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
 
bool mp2971_get_vout_min (sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
 
bool mp2971_set_vout_max (sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
 
bool mp2971_set_vout_min (sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
 
bool mp2971_get_checksum (uint8_t bus, uint8_t addr, uint32_t *checksum)
 
bool mp2971_get_vout_command (sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
 
bool mp2971_set_vout_command (sensor_cfg *cfg, uint8_t rail, uint16_t *millivolt)
 
bool mp2971_get_vr_status (sensor_cfg *cfg, uint8_t rail, uint8_t vr_status_rail, uint16_t *vr_status)
 
bool mp2971_clear_vr_status (sensor_cfg *cfg, uint8_t rail)
 
bool mp2971_get_vout_offset (sensor_cfg *cfg, uint8_t rail, uint16_t *vout_offset)
 
bool mp2971_get_total_ocp (sensor_cfg *cfg, uint8_t rail, uint16_t *total_ocp)
 
bool mp2971_set_total_ocp (sensor_cfg *cfg, uint8_t rail, uint16_t total_ocp)
 
bool mp2971_get_ovp_1 (sensor_cfg *cfg, uint8_t rail, uint16_t *ovp_1_mv)
 
bool mp2971_set_ovp_1 (sensor_cfg *cfg, uint8_t rail, uint16_t *ovp_1_mv)
 
bool mp2971_get_ovp_2 (sensor_cfg *cfg, uint8_t rail, uint16_t *ovp_1_mv)
 
bool mp2971_get_uvp (sensor_cfg *cfg, uint8_t rail, uint16_t *uvp_mv)
 
bool mp2971_set_ovp2_action_mode (sensor_cfg *cfg, uint8_t rail, uint8_t *mode)
 
bool mp2971_get_ovp2_action_mode (sensor_cfg *cfg, uint8_t rail, uint8_t *mode)
 
bool mp2971_set_thres_div_en (sensor_cfg *cfg, uint8_t rail, const uint16_t *enable)
 
bool mp2971_set_uvp_threshold (sensor_cfg *cfg, uint8_t rail, uint16_t *write_uvp_threshold)
 

Function Documentation

◆ mp2971_clear_vr_status()

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

◆ mp2971_fwupdate()

bool mp2971_fwupdate ( uint8_t  bus,
uint8_t  addr,
uint8_t *  img_buff,
uint32_t  img_size 
)

◆ mp2971_get_checksum()

bool mp2971_get_checksum ( uint8_t  bus,
uint8_t  addr,
uint32_t *  checksum 
)

◆ mp2971_get_ovp2_action_mode()

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

◆ mp2971_get_ovp_1()

bool mp2971_get_ovp_1 ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  ovp_1_mv 
)
Here is the call graph for this function:

◆ mp2971_get_ovp_2()

bool mp2971_get_ovp_2 ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  ovp_1_mv 
)
Here is the call graph for this function:

◆ mp2971_get_total_ocp()

bool mp2971_get_total_ocp ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  total_ocp 
)
Here is the call graph for this function:

◆ mp2971_get_uvp()

bool mp2971_get_uvp ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  uvp_mv 
)
Here is the call graph for this function:

◆ mp2971_get_vout_command()

bool mp2971_get_vout_command ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  millivolt 
)
Here is the call graph for this function:

◆ mp2971_get_vout_max()

bool mp2971_get_vout_max ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  millivolt 
)
Here is the call graph for this function:

◆ mp2971_get_vout_min()

bool mp2971_get_vout_min ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  millivolt 
)
Here is the call graph for this function:

◆ mp2971_get_vout_offset()

bool mp2971_get_vout_offset ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  vout_offset 
)
Here is the call graph for this function:

◆ mp2971_get_vr_status()

bool mp2971_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:

◆ mp2971_set_ovp2_action_mode()

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

◆ mp2971_set_ovp_1()

bool mp2971_set_ovp_1 ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  ovp_1_mv 
)
Here is the call graph for this function:

◆ mp2971_set_thres_div_en()

bool mp2971_set_thres_div_en ( sensor_cfg cfg,
uint8_t  rail,
const uint16_t *  enable 
)

◆ mp2971_set_total_ocp()

bool mp2971_set_total_ocp ( sensor_cfg cfg,
uint8_t  rail,
uint16_t  total_ocp 
)

◆ mp2971_set_uvp_threshold()

bool mp2971_set_uvp_threshold ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  write_uvp_threshold 
)

◆ mp2971_set_vout_command()

bool mp2971_set_vout_command ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  millivolt 
)
Here is the call graph for this function:

◆ mp2971_set_vout_max()

bool mp2971_set_vout_max ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  millivolt 
)
Here is the call graph for this function:

◆ mp2971_set_vout_min()

bool mp2971_set_vout_min ( sensor_cfg cfg,
uint8_t  rail,
uint16_t *  millivolt 
)
Here is the call graph for this function: