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

Functions

 LOG_MODULE_REGISTER (dev_q50sn120a1)
 
int q50sn120a1_get_status_word (uint8_t bus, uint8_t addr, uint16_t *status)
 
int q50sn120a1_read_pout (sensor_cfg *cfg, float *pout_value)
 
uint8_t q50sn120a1_read (sensor_cfg *cfg, int *reading)
 
uint8_t q50sn120a1_init (sensor_cfg *cfg)
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_q50sn120a1  )

◆ q50sn120a1_get_status_word()

int q50sn120a1_get_status_word ( uint8_t  bus,
uint8_t  addr,
uint16_t *  status 
)
Here is the call graph for this function:

◆ q50sn120a1_init()

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

◆ q50sn120a1_read()

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

◆ q50sn120a1_read_pout()

int q50sn120a1_read_pout ( sensor_cfg cfg,
float *  pout_value 
)
Here is the call graph for this function: