Default configuration parameters for the lm75 sensors. More...

Detailed Description

Default configuration parameters for the lm75 sensors.

Author
Vitor Batista vitor.nosp@m..bat.nosp@m.ista@.nosp@m.ml-p.nosp@m.a.com

Definition in file lm75_params.h.

#include "board.h"
#include "lm75.h"
#include "lm75_regs.h"
#include "kernel_defines.h"
+ Include dependency graph for lm75_params.h:

Go to the source code of this file.

#define LM75_PARAM_I2C   I2C_DEV(0)
 I2C BUS used.
 
#define CONFIG_LM75_I2C_ADDR   (0x48)
 7-bit I2C slave address: 1-0-0-1-A2-A1-A0, where the last three bits A2, A1, A0 are defined by the voltage level on the ADDR pin More...
 
#define CONFIG_OPERATION_MODE   NORMAL_MODE
 Normal Mode is the default.
 
#define CONFIG_THERMOSTAT_MODE   COMPARATOR_MODE
 Comparator Mode is the default.
 
#define CONFIG_OS_POLARITY   OS_ACTIVE_LOW
 OS pin active on low is the default.
 
#define CONFIG_FAULT_QUEUE   FAULT_1
 One Fault is the default.
 
#define LM75_PARAM_INT   GPIO_UNDEF
 Pin used for Interrupts defined by the board.
 
#define LM75A_CONV_RATE   (100)
 temperature register updated every 100ms
 
#define LM75A_OS_RES   (5)
 resolution in 0.5ºC
 
#define LM75A_OS_MULT   (10)
 Must multiply by 10 to get temp in ºC.
 
#define LM75A_OS_SHIFT   (7)
 Only the 9 most significant bits are needed.
 
#define LM75A_TEMP_RES   (125)
 resolution in 0.125ºC
 
#define LM75A_TEMP_MULT   (1000)
 Must multiply by 1000 to get temp in ºC.
 
#define LM75A_TEMP_SHIFT   (5)
 Only the 11 most significant bits are needed.
 
#define TMP1075_OS_RES   (625)
 resolution in 0.0625ºC
 
#define TMP1075_OS_MULT   (10000)
 Must multiply by 10000 to get temp in ºC.
 
#define TMP1075_OS_SHIFT   (4)
 Only the 12 most significant bits are needed.
 
#define TMP1075_TEMP_RES   (625)
 resolution in 0.0625ºC
 
#define TMP1075_TEMP_MULT   (10000)
 Must multiply by 10000 to get temp in ºC.
 
#define TMP1075_TEMP_SHIFT   (4)
 Only the 12 most significant bits are needed.
 
#define CONFIG_TMP1075_CONV_RATE_REG   TMP1075_CONV_RATE_REG_27H
 Default conv rate is 27.5ms.
 
#define TMP1075_CONV_RATE   (28)
 Default conversion rate is 27.5 ms.
 
static const lm75_params_t lm75_params []
 LM75 power-up configuration. More...
 

Macro Definition Documentation

◆ CONFIG_LM75_I2C_ADDR

#define CONFIG_LM75_I2C_ADDR   (0x48)

7-bit I2C slave address: 1-0-0-1-A2-A1-A0, where the last three bits A2, A1, A0 are defined by the voltage level on the ADDR pin

Default I2C address

Definition at line 39 of file lm75_params.h.

Variable Documentation

◆ lm75_params

const lm75_params_t lm75_params[]
static
Initial value:
=
{
LM75_PARAMS
}

LM75 power-up configuration.

Definition at line 171 of file lm75_params.h.