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

Macros

#define VSNS_CFG_REG   0xD4
 
#define ISNS_CFG_REG   0xD5
 
#define VSNS_CFG_RESET_VAL   0x28
 
#define ISNS_CFG_RESET_VAL   0xB418
 

Functions

 LOG_MODULE_REGISTER (dev_xdp710)
 
uint8_t xdp710_read (sensor_cfg *cfg, int *reading)
 
uint8_t xdp710_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ ISNS_CFG_REG

#define ISNS_CFG_REG   0xD5

◆ ISNS_CFG_RESET_VAL

#define ISNS_CFG_RESET_VAL   0xB418

◆ VSNS_CFG_REG

#define VSNS_CFG_REG   0xD4

◆ VSNS_CFG_RESET_VAL

#define VSNS_CFG_RESET_VAL   0x28

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_xdp710  )

◆ xdp710_init()

uint8_t xdp710_init ( sensor_cfg cfg)

◆ xdp710_read()

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