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

Macros

#define RAA228238_READ_TEMPERATURE_1_RESOLUTION   1
 
#define RAA228238_READ_VOUT_RESOLUTION   0.001
 
#define RAA228238_READ_IOUT_RESOLUTION   0.1
 
#define RAA228238_READ_POUT_RESOLUTION   1
 

Functions

 LOG_MODULE_REGISTER (raa228238)
 
uint8_t raa228238_read (sensor_cfg *cfg, int *reading)
 
uint8_t raa228238_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ RAA228238_READ_IOUT_RESOLUTION

#define RAA228238_READ_IOUT_RESOLUTION   0.1

◆ RAA228238_READ_POUT_RESOLUTION

#define RAA228238_READ_POUT_RESOLUTION   1

◆ RAA228238_READ_TEMPERATURE_1_RESOLUTION

#define RAA228238_READ_TEMPERATURE_1_RESOLUTION   1

◆ RAA228238_READ_VOUT_RESOLUTION

#define RAA228238_READ_VOUT_RESOLUTION   0.001

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( raa228238  )

◆ raa228238_init()

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

◆ raa228238_read()

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