Loading...
Searching...
No Matches

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
 
#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.
 

Macro Definition Documentation

◆ CONFIG_FAULT_QUEUE

#define CONFIG_FAULT_QUEUE   FAULT_1

One Fault is the default.

Definition at line 95 of file lm75_params.h.

◆ 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.

◆ CONFIG_OPERATION_MODE

#define CONFIG_OPERATION_MODE   NORMAL_MODE

Normal Mode is the default.

Definition at line 50 of file lm75_params.h.

◆ CONFIG_OS_POLARITY

#define CONFIG_OS_POLARITY   OS_ACTIVE_LOW

OS pin active on low is the default.

Definition at line 74 of file lm75_params.h.

◆ CONFIG_THERMOSTAT_MODE

#define CONFIG_THERMOSTAT_MODE   COMPARATOR_MODE

Comparator Mode is the default.

Definition at line 62 of file lm75_params.h.

◆ CONFIG_TMP1075_CONV_RATE_REG

#define CONFIG_TMP1075_CONV_RATE_REG   TMP1075_CONV_RATE_REG_27H

Default conv rate is 27.5ms.

Definition at line 135 of file lm75_params.h.

◆ LM75_PARAM_I2C

#define LM75_PARAM_I2C   I2C_DEV(0)

I2C BUS used.

Definition at line 32 of file lm75_params.h.

◆ LM75_PARAM_INT

#define LM75_PARAM_INT   GPIO_UNDEF

Pin used for Interrupts defined by the board.

Definition at line 100 of file lm75_params.h.

◆ LM75A_CONV_RATE

#define LM75A_CONV_RATE   (100)

temperature register updated every 100ms

Definition at line 103 of file lm75_params.h.

◆ LM75A_OS_MULT

#define LM75A_OS_MULT   (10)

Must multiply by 10 to get temp in ºC.

Definition at line 106 of file lm75_params.h.

◆ LM75A_OS_RES

#define LM75A_OS_RES   (5)

resolution in 0.5ºC

Definition at line 105 of file lm75_params.h.

◆ LM75A_OS_SHIFT

#define LM75A_OS_SHIFT   (7)

Only the 9 most significant bits are needed.

Definition at line 107 of file lm75_params.h.

◆ LM75A_TEMP_MULT

#define LM75A_TEMP_MULT   (1000)

Must multiply by 1000 to get temp in ºC.

Definition at line 109 of file lm75_params.h.

◆ LM75A_TEMP_RES

#define LM75A_TEMP_RES   (125)

resolution in 0.125ºC

Definition at line 108 of file lm75_params.h.

◆ LM75A_TEMP_SHIFT

#define LM75A_TEMP_SHIFT   (5)

Only the 11 most significant bits are needed.

Definition at line 110 of file lm75_params.h.

◆ TMP1075_CONV_RATE

#define TMP1075_CONV_RATE   (28)

Default conversion rate is 27.5 ms.

Definition at line 136 of file lm75_params.h.

◆ TMP1075_OS_MULT

#define TMP1075_OS_MULT   (10000)

Must multiply by 10000 to get temp in ºC.

Definition at line 113 of file lm75_params.h.

◆ TMP1075_OS_RES

#define TMP1075_OS_RES   (625)

resolution in 0.0625ºC

Definition at line 112 of file lm75_params.h.

◆ TMP1075_OS_SHIFT

#define TMP1075_OS_SHIFT   (4)

Only the 12 most significant bits are needed.

Definition at line 114 of file lm75_params.h.

◆ TMP1075_TEMP_MULT

#define TMP1075_TEMP_MULT   (10000)

Must multiply by 10000 to get temp in ºC.

Definition at line 116 of file lm75_params.h.

◆ TMP1075_TEMP_RES

#define TMP1075_TEMP_RES   (625)

resolution in 0.0625ºC

Definition at line 115 of file lm75_params.h.

◆ TMP1075_TEMP_SHIFT

#define TMP1075_TEMP_SHIFT   (4)

Only the 12 most significant bits are needed.

Definition at line 117 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.