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

Macros

#define E50SN12051_READ_VOUT_EXP_VALUE   (1.0 / (1 << 9))
 

Functions

 LOG_MODULE_REGISTER (e50sn12051)
 
uint8_t e50sn12051_read (sensor_cfg *cfg, int *reading)
 
uint8_t e50sn12051_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ E50SN12051_READ_VOUT_EXP_VALUE

#define E50SN12051_READ_VOUT_EXP_VALUE   (1.0 / (1 << 9))

Function Documentation

◆ e50sn12051_init()

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

◆ e50sn12051_read()

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

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( e50sn12051  )