OpenBIC
OpenSource Bridge-IC
|
#include "tmp431.h"
#include <stdio.h>
#include <stdlib.h>
#include "sensor.h"
#include "hal_i2c.h"
#include "libutil.h"
#include <logging/log.h>
Macros | |
#define | I2C_DATA_SIZE 5 |
#define | RANGE_0_127 0 |
#define | RANGE_m55_150 1 |
Functions | |
LOG_MODULE_REGISTER (dev_tmp431) | |
uint8_t | tmp431_read (sensor_cfg *cfg, int *reading) |
uint8_t | tmp431_init (sensor_cfg *cfg) |
#define I2C_DATA_SIZE 5 |
#define RANGE_0_127 0 |
#define RANGE_m55_150 1 |
LOG_MODULE_REGISTER | ( | dev_tmp431 | ) |
uint8_t tmp431_init | ( | sensor_cfg * | cfg | ) |
uint8_t tmp431_read | ( | sensor_cfg * | cfg, |
int * | reading | ||
) |