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

Macros

#define LM75BD118_TEMP_REG   0x00
 
#define LM75BD118_TEMP_DATA_UNIT   0.125
 
#define LM75BD118_TEMP_INTEGER_INDEX   0
 
#define LM75BD118_TEMP_FRACTION_INDEX   1
 
#define LM75BD118_TEMP_DATA_OFFSET   5
 

Functions

 LOG_MODULE_REGISTER (dev_lm75bd118)
 
uint8_t lm75bd118_read (sensor_cfg *cfg, int *reading)
 
uint8_t lm75bd118_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ LM75BD118_TEMP_DATA_OFFSET

#define LM75BD118_TEMP_DATA_OFFSET   5

◆ LM75BD118_TEMP_DATA_UNIT

#define LM75BD118_TEMP_DATA_UNIT   0.125

◆ LM75BD118_TEMP_FRACTION_INDEX

#define LM75BD118_TEMP_FRACTION_INDEX   1

◆ LM75BD118_TEMP_INTEGER_INDEX

#define LM75BD118_TEMP_INTEGER_INDEX   0

◆ LM75BD118_TEMP_REG

#define LM75BD118_TEMP_REG   0x00

Function Documentation

◆ lm75bd118_init()

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

◆ lm75bd118_read()

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

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_lm75bd118  )