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

Functions

 LOG_MODULE_REGISTER (dev_ltc2991)
 
int ltc2991_read_optional_to_register (uint8_t read_optional, uint8_t *msb_register, uint8_t *lsb_register, float *parameter, uint8_t *channel)
 
uint8_t ltc2991_read (sensor_cfg *cfg, int *reading)
 
uint8_t ltc2991_init (sensor_cfg *cfg)
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_ltc2991  )

◆ ltc2991_init()

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

◆ ltc2991_read()

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

◆ ltc2991_read_optional_to_register()

int ltc2991_read_optional_to_register ( uint8_t  read_optional,
uint8_t *  msb_register,
uint8_t *  lsb_register,
float *  parameter,
uint8_t *  channel 
)