OpenBIC
OpenSource Bridge-IC
rtq6056.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <logging/log.h>
#include "sensor.h"
#include "pmbus.h"
#include "hal_i2c.h"
#include "rtq6056.h"
Include dependency graph for rtq6056.c:

Macros

#define RTQ6056_BUS_VOLTAGE_LSB   0.00125
 

Functions

 LOG_MODULE_REGISTER (dev_rtq6056)
 
uint8_t rtq6056_read (sensor_cfg *cfg, int *reading)
 
uint8_t rtq6056_init (sensor_cfg *cfg)
 

Variables

uint8_t RTQ6056_DEVICE_ID [2] = { 0x12, 0x14 }
 

Macro Definition Documentation

◆ RTQ6056_BUS_VOLTAGE_LSB

#define RTQ6056_BUS_VOLTAGE_LSB   0.00125

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_rtq6056  )

◆ rtq6056_init()

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

◆ rtq6056_read()

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

Variable Documentation

◆ RTQ6056_DEVICE_ID

uint8_t RTQ6056_DEVICE_ID[2] = { 0x12, 0x14 }