OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <logging/log.h>
#include "libutil.h"
#include "sensor.h"
#include "hal_i2c.h"
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) |
#define LM75BD118_TEMP_DATA_OFFSET 5 |
#define LM75BD118_TEMP_DATA_UNIT 0.125 |
#define LM75BD118_TEMP_FRACTION_INDEX 1 |
#define LM75BD118_TEMP_INTEGER_INDEX 0 |
#define LM75BD118_TEMP_REG 0x00 |
uint8_t lm75bd118_init | ( | sensor_cfg * | cfg | ) |
uint8_t lm75bd118_read | ( | sensor_cfg * | cfg, |
int * | reading | ||
) |
LOG_MODULE_REGISTER | ( | dev_lm75bd118 | ) |