µracoli Manual Version foo

- µracoli
- User Guide
- Reference Guide

LM73 - Temperature Sensor
Sensor Drivers

## Detailed Description

±1°C Temperature Sensor with I2C/SMBus Interface

- Product: http://www.ti.com/product/lm73
- Datasheet: http://www.ti.com/lit/ds/symlink/lm73.pdf

## Functions

static uint8_t sensor_create_lm73 | ( | void * | pdata,
|  | bool | raw,
|  | uint8_t | addr,
|  | int8_t | temp_offset
| ) |  |
| static

Create an instance of a LM73 sensor and initialize the sensor.

If the parameter pdata != NULL, the sensor is also initialized. In case that the initialization fails, the variable drv.last_error is set to SENSOR_ERR_INIT.

Parameters

  pdata | pointer to memory, where the sensor data is stored.
  raw | if true the get function will return the register values, otherwise a physical value is returned (temperature in degC a float)
  addr | i2c address of the sensor
  temp_offset | offset of the measurement value.

Returns
  sizeof(lm73_ctx_t)

Examples:
  xmpl_lm73.c.

Definition at line 270 of file lm73.h.

## Defines

#define LM73_ADDR_0 (0x48)

LM3-0, ADDR pin is floating

Definition at line 55 of file lm73.h.

#define LM73_ADDR_1 (0x49)

LM3-0, ADDR pin is pulled to GND

Definition at line 56 of file lm73.h.

#define LM73_ADDR_2 (0x4A)

LM3-0, ADDR pin is pulled to VDD

Definition at line 57 of file lm73.h.

#define LM73_ADDR_3 (0x4C)

LM3-1, ADDR pin is floating

Definition at line 59 of file lm73.h.

#define LM73_ADDR_4 (0x4D)

LM3-1, ADDR pin is pulled to GND

Definition at line 60 of file lm73.h.

#define LM73_ADDR_5 (0x4E)

LM3-1, ADDR pin is pulled to VDD

Definition at line 61 of file lm73.h.

#define LM73_T_BUS_FREE_US (8)

This value is the time between a stop-start cycle of the LM73. It is speced as tBuf = 1.2us min, but on mesh bean it was found that 8us ensure stable behaviour.

Examples:
  xmpl_lm73.c.

Definition at line 88 of file lm73.h.