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

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)
 

Macro Definition Documentation

◆ I2C_DATA_SIZE

#define I2C_DATA_SIZE   5

◆ RANGE_0_127

#define RANGE_0_127   0

◆ RANGE_m55_150

#define RANGE_m55_150   1

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_tmp431  )

◆ tmp431_init()

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

◆ tmp431_read()

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